Compiling and installing LNMP is too cumbersome and difficult to deploy and manage. it is most convenient to install LNMP through the system source. the Centos official source package is relatively small. you need to install the EPEL source first. Install MysQL: 1234yuminstallmysql-server/etc/init. d/mysqldstartchkconfigmys
Compiling and installing LNMP is too cumbersome and difficult to deploy and manage. it is most convenient to install LNMP through the system source. the Centos official source package is relatively small. you need to install the EPEL source first.
Install MysQL:
1234 |
yum install mysql-server/etc/init.d/mysqld startchkconfig mysqld on/usr/bin/mysqladmin -u root password 'newpasswd' |
Install PHP:
123 |
yum install php-fpm php-cli/etc/init.d/php-fpm startchkconfig php-fpm on |
Install Nginx:
123 |
yum install nginx/etc/init.d/nginx startchkconfig nginx on |