lamp安装网站

[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# setenforce 0
  

[root@localhost ~]# yum -y install lrzsz


[root@localhost ~]# rz


[root@localhost ~]# yum -y install unzip


[root@localhost ~]# unzip ranzhi.4.0.zip


[root@localhost ~]# yum -y install httpd* mariadb* php*


[root@localhost ~]# vi /etc/httpd/conf/httpd.conf


AddType application/x-httpd-php .php


DirectoryIndex index.html index.php
 
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl start mariadb


[root@localhost ~]# cd ranzhi
[root@localhost ranzhi]# mv * /var/www/html/

[root@localhost ranzhi]# chmod 777 /var/www/html/

测试

 
原文地址:https://www.cnblogs.com/leiguilong/p/6396599.html