If require separate installation. please follow the link below:
Install MySQL 5.7.17 on CentOS 7
Install nginx 1.12.0 on CentOS 7
Install php 7.1.3 on CentOS 7


Stop and disable firewalld:



#check out freetype.2.7.1, jpeg.6 and libpng.1.2.50 installed successful, if not rerun the install_env_php.sh

2.Install dependency

3.Add user and group

4.Make directory

5.Install mysql 5.7.17

6.Copy conf file and init-script


7.Install nginx 1.12.0

8.Copy conf file and init-script

#If you are setting multiple webs on one server, you can copy your_domain_here.conf to vhost directory and modify them as you want.

#Modify nginx.conf and your_domain_here.conf

9.Install PHP 7.1.3

10.Copy conf file and init-script

#extension_dir = “/Data/server/php/lib/php/extensions/no-debug-non-zts-20160303/”
#Adjust to yours if it needs.

11.Add path


电子邮件地址不会被公开。 必填项已用*标注