首页 » 网站推广 » phpstrace对象技巧_LookingGlass搭建教程一个好用的监测做事器回程线路质量的软件

phpstrace对象技巧_LookingGlass搭建教程一个好用的监测做事器回程线路质量的软件

duote123 2024-11-22 0

扫一扫用手机浏览

文章目录 [+]

LookingGlassLookingGlass(修正版)源代码:https://github.com/ILLKX/LookingGlass/

LookingGlass源代码:https://github.com/telephone/LookingGlass

phpstrace对象技巧_LookingGlass搭建教程一个好用的监测做事器回程线路质量的软件

推举利用修正版,修正版不仅增加了对PHP7的支持;traceroute利用的是ipip的besttrace,相较于原版,还能查看回程IP的运营商和归属地。

phpstrace对象技巧_LookingGlass搭建教程一个好用的监测做事器回程线路质量的软件
(图片来自网络侵删)

默认已经安装了HTTP做事端(Nginx、Apache等) PHP 安装这些也很大略,有lnmp、宝塔等,干系教程很多,在此就不赘述了。

安装下载LookingGlass源代码到做事器,建议下载到网站目录中,就不用移动了

wget https://github.com/ILLKX/LookingGlass/archive/master.zip

解压

unzip master.zip

修正文件夹名称

mv LookingGlass-master lg

进行安装:

bash lg/LookingGlass/configure.sh

按照提示进行安装:

########################################## LookingGlass is a user-friendly script# to create a functional Looking Glass# for your network.## Created by Nick Adams (telephone)# http://iamtelephone.com#########################################Do you wish to install LookingGlass? (y/n): y### #### Starting install #### ###

#这一步是检讨干系依赖是否安装 没有安装的话会自动安装的

Checking script requirements:Checking for host...Checking for mtr...Checking for ping...Checking for traceroute...Checking for sqlite3...Checking for previous config:Creating Config.php...Creating test files:Test files already exist...### #### Starting configuration #### ###Running setup:#输入网站的名字,会显示在标题和header上Enter your website name (Header/Logo) []: Xiaomage`s LookingGlass#输入lookingGlass的URL(你想把LG放在哪,包含http协议头)Enter the public URL to this LG (including http://) []: https://bbx.xmgspace.me/lg#做事器位置 可不填Enter the servers location []: San Jose, LA, USA#做事器IP 为了放在IP透露,可不填Enter the test IPv4 address []:#IPv6地址 可不填Enter the test IPv6 address (Re-enter everytime this script is run) []:#天生测速文件的大小 可不填Enter the size of test files in MB (Example: 25 50 100) []:#限定每个IP每小时的测试次数 选n就表示不开启此功能Do you wish to enable rate limiting of network commands? (y/n): n#不选择其他主题,主题就一套Would you like to choose a different theme? (y/n): nCreating Config.php...Creating SQLite database...#输入做事器的用户名或用户组 root一把梭Enter the username of your webserver (E.g. www-data): rootEnter the user group of your webserver (E.g. www-data): rootFixing besttrace permissions...Installation is complete

这样安装过程就完成了。
访问你的网站:http://你的域名/lg就可以看到LookingGlass的主界面了。
可以显示出你的IP,点击你的IP地址,就会自动输入到输入框中。

如果点击开始测试后没有相应,缘故原由可能是由于LookingGlass调用了mtr等系统命令,某些环境会默认禁止这些函数,修正php.ini就可以解除限定。

测试

分辨填写测试的网站或者IP,测试类型,并点击Run Test即可开始测试。

相关文章

探索N900语言的魅力与广泛应用

在当今信息时代,编程语言作为计算机科学的核心组成部分,发挥着至关重要的作用。N900语言作为挪威的官方编程语言,近年来在我国逐渐崭...

网站推广 2024-12-27 阅读0 评论0

探索C语言魅力,从基础到应用

C语言作为一门历史悠久、应用广泛的编程语言,凭借其强大的功能和简洁的语法,吸引了无数编程爱好者和专业人士。本文将从C语言的基础知识...

网站推广 2024-12-27 阅读0 评论0