环境说明
192.168.122.7 web php
192.168.122.220 mysql
编译安装nginx
1 | #tar xf nginx-1.9.2.tar.gz |
二、测试nginx
测试内容如下:
1 | #vim /etc/nginx/nginx.conf |
编译安装PHP
1 | yum -y install libxml2-devel bzip2-devel libcurl-devel libmcrypt-devel |
整合nginx和php
1 | [root@nfs php-5.6.12]# vim /etc/nginx/nginx.conf |
安装phpMyadmin
1 | [root@nfs pma]# unzip phpMyAdmin-4.4.14-all-languages.zip |
然后这两种方式都可;;
http://192.168.122.7/pma
https://192.168.122.7/pma
1 | [root@node1 ~]# cat /etc/rc.d/init.d/nginx |