1.nginx安装:
yum install nginx
systemctl enable nginx (设置开机自启)
systemctl start|stop|status nginx
2.mysql 8.0安装和配置密码:
yum localinstall https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm
yum install mysql-community-server
service mysqld start
sudo grep 'temporary password' /var/log/mysqld.log (查看初始密码)
mysql -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED BY '密码'; (修改密码)
systemctl enable mysqld
systemctl start|stop|status mysqld
3.php 7.2安装:
yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum -yinstallphp72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
systemctl enable php-fpm.service
systemctl start php-fpm.service
systemctl stop php-fpm.service