centos之lnmp
2016-08-09 19:03
225 查看
1.安装nginx
2.更改nginx端口号(根据自己需求)
3.访问http://ip:81即可看到nginx首页
4.下一步安装php-fpm
5.更改nginx配置文件识别php
vi /etc/nginx/conf.d/default.conf,把之前的#给去掉就可以了,顺手改一下fastcgi_param
6.
在 /usr/share/nginx/html中新建一个test.php <?php echo 123;?>
访问http://ip:81/test.php即可看到nginx中的php页面
7.负载配置
2.更改nginx端口号(根据自己需求)
3.访问http://ip:81即可看到nginx首页
4.下一步安装php-fpm
5.更改nginx配置文件识别php
vi /etc/nginx/conf.d/default.conf,把之前的#给去掉就可以了,顺手改一下fastcgi_param
6.
在 /usr/share/nginx/html中新建一个test.php <?php echo 123;?>
访问http://ip:81/test.php即可看到nginx中的php页面
7.负载配置
相关文章推荐
- CentOS 6.2 项目管理软件Redmine SVN 集成之LNMP平台准备(上)
- CentOS 7 YUM 安装 LNMP 环境
- 阿里云centos 安装lnmp
- CentOS 6.6 环境下 编译安装LNMP
- 经验回顾:在CentOS下用源码安装LNMP(nginx,mysql,php)
- yum搭建lnmp环境(CentOS6.3)
- CentOS 5.2编译安装LNMP
- CentOS6.5搭建LNMP
- centos6.5 lnmp、lamp、lnmpa一键安装包
- Centos搭建lnmp环境
- centos安装lnmp环境
- LNMP源码编译过程 CentOS-7.3+Nginx-1.11+MySQL-5.7+php-7.1
- centos6.2企业级LNMP环境搭建
- CentOS下 军哥LNMP一键安装包0.9 一键安装命令
- CentOS 6.5安装配置LNMP服务器(Nginx+PHP+MySQL)
- 阿里云centos6.5实践编译安装LNMP架构web环境
- centos 6.5 下LNMP 环境搭建
- CentOS 6.6 LNMP编译安装
- 服务器架设:CentOS搭建LNMP详细教程(转)