更改

CentOS LAMP 安装

添加745字节, 2019年10月21日 (一) 23:48
创建页面,内容为“{{4}} 1 yum -y install httpd 2 systemctl start httpd 3 systemctl enable httpd 4 yum -y install mariadb-server mariadb 5 systemctl start mari...”
{{4}}
1 yum -y install httpd
2 systemctl start httpd
3 systemctl enable httpd
4 yum -y install mariadb-server mariadb
5 systemctl start mariadb
6 systemctl restart mariadb
7 systemctl enable mariadb
8 vim /etc/my.cnf
9 vi /etc/my.cnf
10 mysql_secure_installation
11 rpm -Uvh <nowiki>https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</nowiki>
12 rpm -Uvh <nowiki>https://mirror.webtatic.com/yum/el7/webtatic-release.rpm</nowiki>
13 yum search php7
14 yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
15 php -v
16 systemctl restart httpd
314
个编辑