centos 7 安装lamp

piaoling  2022-07-05 15:48:57

systemctl stop firewalld
setenforce 0
yum -y install httpd
systemctl start httpd.service
systemctl enable httpd.service
yum install php* -y --skip-broken
systemctl restart httpd
yum install mariadb-server mariadb -y
systemctl start mariadb

mysql_secure_installation

systemctl enable mariadb  #设置开机启动


yum -y install php-mysql --skip-broken
yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel

systemctl restart httpd.service

启用https

yum install mod_ssl

类别 :  默认(748)  |  浏览(2797)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: