First, install httpd
1、yum install httpd -y
2, start the service: systemctl start httpd
3, set the boot: systemctl enable
Second, the installation mariadb
1、yum groupinstall mariadb
2, start the service: systemctl start mariadb
3, set the boot: systemctl enable mariadb
Third, install php
1、yum install php
2、yum install php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash
3, restart the service: systemctl restart httpd, systemctl restart httpd
Fourth, the installation ngnix
1, the installation dependencies: yum install gcc-c ++ pcre pcre-devel zlib zlib-devel -y
2. Download nginx: wget http://nginx.org/download/nginx-1.9.8
3, unzip the file: tar -zxvf nginx1.9.8.tar.gz
4、cd /nginx1.9.8
5,. / Configure, followed by make, make install
6, start the service: / usr / local / nginx / sbin / nginx, and then view the start situation: ps -aux | grep
Fifth, add a firewall
1、firewall-cmd --permanent --add-rich-rule="rule family=ipv4 service name=http source address=10.0.0.0/24 accept"
2、firewall-cmd --reload
Six test page production:
1, / var / www / html / add files in index.php, and then add the code to create in it: <php echo "hello wolrd"??>
Seven, windows next visit: http://10.0.0.21/index.php