CentOS LAMP 安装

来自通约智库
江南讨论 | 贡献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...”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

   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 https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  12  rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  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