MENU

#脚本#LookingGlass一键安装脚本

May 27, 2018 • Read: 1854 • 网络笔记

LookingGlass如果大家不知道的话请百度一下,就像很多VPS厂商一样,为了更好的让客户知道他们的VPS的性能,例如Ping或者路由啊等情况可以允许公众用户代表你的VPS服务器执行一些网络命令,比如host、mtr、ping、traceroute、下载速度测试等。

LookingGlass-空白网络

一键安装

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

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

运行命令:

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

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

请输入你的LookingGlass域名信息: lg.aihoom.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网站环境的。

安装Web环境

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

请进入相应的安装界面进行操作,只需要安装Nginx、PHP。

宝塔面板:https://www.bt.cn/bbs/thread-1186-1-1.html
OneinStack:https://oneinstack.com/auto

安装LookingGlass

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

进入网站目录

cd /www/xx.com
PHP5.x下载
wget https://img.99xin.me/yuanma/LookingGlass_php5.zip
PHP7.x下载
wget https://img.99xin.me/yuanma/LookingGlass_php7.zip
解压,如果是5.x,就将7改成5
unzip LookingGlass_php7.zip && mv LookingG/* ..
开始配置LookingGlass
cd LookingGlass && bash configure.sh
Last Modified: June 4, 2018
Archives QR Code Tip
QR Code for this page
Tipping QR Code