centos + apache + mysql + php
- apache
yum install -y httpd
systemctl start httpd.service
systemctl status httpd.service
systemclt enable httpd.service
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-ports
- mysql
yum localinstall https://repo.mysql.com//mysql80-release-el7-1.noarch.rpm
yum install mysql-server
service mysqld start
service mysqld status
alter user 'root'@'localhost' identified with mysql_native_password by '123456';
flush privileges;
- php
yum -y install php
yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel
- swoole
yum install -y openssl
yum install -y openssl-devel
yum install php-devel
pecl install swoole
重启php-fpm
kill -USR2 pid
- nginx
yum install nginx -y
nginx