1: View environment:
2: Turn off the firewall
3: Configure CentOS 6.0 third-party yum source (there is no nginx package in the default standard source of CentOS)
5: Uninstall installed apache, mysql, php
6: Install nginx
7:安装mysql
Also Provide a method to change the database user password:
mysqladmin -u root password "123456" //Set a password for the root user
service
mysqld restart
8: Install php
//Install php and required components to make PHP support MySQL and FastCGI mode
9: Configure nginx to support PHP 7
8
9
Original address: http://www.cnblogs.com/xiaoit/p/3991037.html
The above introduces how to build LNMP on CentOS65, including all aspects. I hope it will be helpful to friends who are interested in PHP tutorials.