• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

一个可以让用户执行测试命令的Web界面:LookingGlass一键安装脚本

主机教程 Liam 1年前 (2019-05-02) 418次浏览 8个评论 扫描二维码
文章目录[隐藏]

说明:LookingGlass大家可能都有点熟悉,因为很多主机商给的测试界面就是用LookingGlass搭建的,可以允许公众用户代表你的VPS服务器执行一些网络命令,比如hostmtrpingtraceroute、下载速度测试等,可以让人很清楚的知道VPS服务器的网络情况,这里整了个一键脚本,顺便说下手动安装教程。

截图

一个可以让用户执行测试命令的Web界面:LookingGlass一键安装脚本

脚本安装

Github地址:https://github.com/telephone/LookingGlass

脚本适用于Debian 8、9系统,且为纯净无Web环境的系统,本脚本自动签发SSL证书,运行前请先解析好域名到服务器。

运行命令:

wget https://www.moerats.com/usr/shell/LookingGlass_install.sh && bash LookingGlass_install.sh 

期间会要求你输入域名,及LookingGlass配置信息。

请输入你的LookingGlass域名信息: lg.moerats.com  #输入你的域名  Do you wish to install LookingGlass? (y/n): y  #选择y开始安装 Enter your website name (Header/Logo) []:Vultr JP  #设置名称 Enter the public URL to this LG (including http://) []: https:lg.moerats.com  #输入域名网站 Enter the servers location []: Tokyo, Japan  #输入VPS服务器所在地 Enter the test IPv4 address []: 108.61.126.*  #输入服务器IP Enter the test IPv6 address (Re-enter everytime this script is run) []:  #输入IPV6,没有就跳过 Enter the size of test files in MB (Example: 50MB 100MB 1000MB) []:  #输入测试文件大小,可同时输入多个 Do you wish to enable rate limiting of network commands? (y/n): n  #选择n Would you like to choose a different theme? (y/n): y  #输入y选择其他主题 Enter the name of the theme (case sensitive) [bootstrap]:  #直接Enter默认 Enter the username of your webserver (E.g. www-data): root  #选择root Enter the user group of your webserver (E.g. www-data): root  #选择root 

最后等待完成后,打开域名即可。

如果获取SSL证书失败,提示Failed to connect to get.acme.sh port 443: Connection refused,可能是get.acme.sh抽风打不开,这时候我们可以从Github上安装acme.sh

apt-get install git socat netcat -y git clone https://github.com/Neilpang/acme.sh.git cd ./acme.sh ./acme.sh --install

然后再运行脚本即可。

手动安装

该方法适用于任何系统,特别是已经装了Web网站环境的。

1、安装Web环境
如果你已经安装了Web网站环境,则跳过这一步,没有就安装。

#请进入相应的安装界面进行操作,只需要安装Nginx、PHP。 宝塔面板:https://www.bt.cn/bbs/thread-1186-1-1.html OneinStack:https://oneinstack.com/auto 

2、安装LookingGlass
添加域名,然后进入网站根目录。将LookingGlass源码下到根目录。

#进入网站目录 cd /www/xx.com #PHP5.x下载 wget https://www.moerats.com/usr/down/LookingGlass_php5.zip #PHP7.x下载 wget https://www.moerats.com/usr/down/LookingGlass_php7.zip  #解压,如果是5.x,就将7改成5 unzip LookingGlass_php7.zip && mv LookingG/* .. #开始配置LookingGlass cd LookingGlass && bash configure.sh

步骤参考上面,然后打开域名即可。


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:一个可以让用户执行测试命令的Web界面:LookingGlass一键安装脚本
喜欢 (4)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(8)个小伙伴在吐槽
  1. I constantly emailed this weblog post page to all my associates, for the reason that if like to read it then my friends will too.
    hosting services2020-09-05 18:48 回复 Mac OS X | Chrome 67.0.3396.62
  2. This information is invaluable. How can I find out more?
    black mass2020-08-31 11:29 回复 Windows 7 | Internet Explorer 9.0
  3. always i used to read smaller content that as well clear their motive, and that is also happening with this article which I am reading here.
    cheap flights2020-08-27 16:58 回复 Linux | Chrome 67.0.3372.0
  4. Hi just wanted to give you a quick heads up and let you know a few of the images aren't loading correctly. I'm not sure why but I think its a linking issue. I've tried it in two different internet browsers and both show the same outcome.
    cheap flights2020-08-27 13:01 回复 Linux | Firefox浏览器 52.9
  5. Way cool! Some extremely valid points! I appreciate you writing this write-up and also the rest of the website is also very good.
    cheap flights2020-08-27 11:41 回复 Linux | Firefox浏览器 60.0.2
  6. After looking over a few of the blog posts on your website, I honestly appreciate your way of writing a blog. I saved as a favorite it to my bookmark webpage list and will be checking back soon. Please check out my website as well and tell me how you feel. cheap flights 2CSYEon
    cheap flights2020-08-25 15:45 回复 Windows 8.1 | Firefox浏览器 60.0
  7. Hmm it appears like your blog ate my first comment (it was extremely long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog. I as well am an aspiring blog blogger but I'm still new to everything. Do you have any recommendations for newbie blog writers? I'd genuinely appreciate it.
    cheap flights2020-08-24 19:02 回复 Mac OS X | Chrome 65.0.3325.181
  8. For hottest news you have to visit the web and on world-wide-web I found this web page as a finest website for hottest updates.
    web hosting companies2020-08-11 03:11 回复 Linux | Chrome 66.0.3359.158