搭建LNMP环境(CentOS 6)
最终软件版本
nginx-1.10.2
php-5.6.28
mysql-5.7.19
参考文档
http://blog.sina.com.cn/s/blog_6272e6b20102wlc4.html
https://yq.aliyun.com/articles/161062
https://yq.aliyun.com/articles/65213
目录规划
/var/www/html/
phpMyAdmin <-----------------phpMyAdmin
your-project <-----------------项目
your-project2
/usr/local/
mysql <-----------------自编译软件
nginx
/opt/
soft <-----------------软件资料
data/mysql <-----------------数据库文件
基本流程我有几张阿里云幸运券分享给你,用券购买或者升级阿里云相应产品会有特惠惊喜哦!把想要买的产品的幸运券都领走吧!快下手,马上就要抢光了。
啊啊啊
下载软件
nginx
# wget http://nginx.org/download/nginx-1.10.2.tar.gz
使用云服务器 ECS 搭建LNMP平台的操作步骤如下:
- 准备编译环境
- 安装nginx
- 安装mysql
- 安装php-fpm
- 测试访问