说明:很多人估计都只会安装军哥的lnmp一键包,这样很麻烦,毕竟装lnmp要很长时间,也有很多人写的傻瓜式教程或多或少也会出现点问题,也没啥好方法,就自己想写个几分钟就可以装好的教程,看见外国人写的lowendscript lnmp脚本单独安装nginx和php环境挺快的,也省内存,就用了下,这里说下方法,一般2分钟就装好了,还是挺快的。
注意:该方法只适用于Ubuntu、Debian系统。
1、系统更新和升级
apt-get -y update && apt-get -y upgrade
2、安装Nginx和php环境
登录vps运行下面命令:
wget --no-check-certificate https://raw.github.com/Xeoncross/lowendscript/master/setup-debian.sh && chmod +x setup-debian.sh && ./setup-debian.sh dotdeb && ./setup-debian.sh nginx && ./setup-debian.sh php
3、创建站点目录及下载雅黑探针
如果系统没安装unzip就使用命令:apt-get install unzip安装一下,下面会使用到。
将下面命令中的your_ip改成你的服务器ip再执行命令:
./setup-debian.sh site your_ip && cd /var/www/your_ip/public && wget http://www.yahei.net/tz/tz.zip && unzip tz.zip
也可以将your_ip改成你的某个域名,但域名必须解析到服务器ip上。
最后探针访问地址:http://your_ip/tz.php
提示:如果你不喜欢雅黑探针,可以创建站点目录后,使用WinSCP等ftp工具将其它探针文件上传到/var/www/your_ip/public目录即可!
![[教程]Cursor和VSCode无法写入用户设置 请打开用户设置并清除错误或警告,然后重试](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=https://www.aiwanba.net/wp-content/themes/Git-alpha/assets/img/pic/1.jpg&h=110&w=185&q=90&zc=1&ct=1)
![[教程]17 个全球最佳免费虚拟电话号码(手机、WhatsApp)](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=https://www.aiwanba.net/wp-content/themes/Git-alpha/assets/img/pic/10.jpg&h=110&w=185&q=90&zc=1&ct=1)
![[教程]安装.Net Framework 4.8 时出现未安装成功](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=/image/https://img-blog.csdnimg.cn/20210603091820696.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2d1eXVlbGluMTIz,size_16,color_FFFFFF,t_70#pic_center&h=110&w=185&q=90&zc=1&ct=1)
![[教程]Win7 安装.net Framework 4.8失败,提示:已处理证书链,但是在不受信任提供程序信任的根证书中终止。](https://www.aiwanba.net/wp-content/themes/Git-alpha/timthumb.php?src=https://lexsion.com/usr/uploads/2020/03/1453062917.jpg&h=110&w=185&q=90&zc=1&ct=1)