一个在腾讯云Debian系统上自动搭建LNMP环境的脚本。
A script for automatically building LNMP environment on Tencent cloud Debian system.
在腾讯云广州服务器debian8.2(64位)运行良好
2018年6月30日测试,百度云苏州服务器debian 8.1.0 amd64(64位)系统同样可用,但由于网络链路不同,下载mysql的速度较慢
- 首先在腾讯云服务器上安装debian 8.2(64位)
- 用FTP上传autoInstallLNMP.sh或者用wget的方式,把脚本文件传到服务器上:
wget "https://github.com/BEWINDOWEB/automatically-install-LNMP-environment-in-debian-8-on-the-tencent-cloud/archive/master.zip"
- 运行脚本
chmod 755 autoInstallLNMP.sh
./autoInstallLNMP.sh
- 在运行过程中,你可以选择mysql-server的版本 5.6/5.7/8.0 , 推荐使用5.6版本,默认是最新版本8.0
- 在运行过程中,你需要设置mysql-server的登录密码
- 如果你顺利安装,它会提示:"Finished! Please Input your IP address in the browser,and then you can see the result."
- 你可以在浏览器地址栏输入ip地址,预期应该能看到如下页面:
==========================================
information
nginx,php7.0,php-fpm:OK
mysql: You need to test it by yourself :)
==========================================
What i have done except installing nginx,php,php-fpm,mysql?
1) add source package: check it at /etc/apt/sources.list and /etc/apt/sources.list.d/tencent.list
2) add nginx configure file:check it at /etc/nginx/sites-enabled/bewindoweb_test.conf
3) add test phpfile:check it at /tmp/testweb/index.php
==========================================
you can follow me on
personal website and github
欢迎提交issues,个人网站www.bewindoweb.com 或者 www.bewindoweb.cn
- be sure you have installed the debian 8.2(64 bit) on the tencent cloud server
- upload the autoInstallLNMP.sh to the server by ftp OR use
wget "https://github.com/BEWINDOWEB/automatically-install-LNMP-environment-in-debian-8-on-the-tencent-cloud.git"
- run the shell
chmod 755 autoInstallLNMP.sh
./autoInstallLNMP.sh
- during running the shell, you can choose mysql-server version 5.6/5.7/8.0 , ver5.6 is recommended, ver8.0 is the newest and default option
- during running the shell, you have to set your mysql-server password
- if the installation is smooth, it will show "Finished! Please Input your IP address in the browser,and then you can see the result."
- you can input our IP address in the browser ,and you may see:
==========================================
information
nginx,php7.0,php-fpm:OK
mysql: You need to test it by yourself :)
==========================================
What i have done except installing nginx,php,php-fpm,mysql?
1) add source package: check it at /etc/apt/sources.list and /etc/apt/sources.list.d/tencent.list
2) add nginx configure file:check it at /etc/nginx/sites-enabled/bewindoweb_test.conf
3) add test phpfile:check it at /tmp/testweb/index.php
==========================================
you can follow me on
personal website and github
welcome to propose issues, and forgive me for poor English, my website is www.bewindoweb.com or www.bewindoweb.cn