[root@localhost ~]# systemctl stop firewalld[root@localhost ~]# setenforce 0
![](https://images2015.cnblogs.com/blog/1096705/201702/1096705-20170214103925300-838069695.png)
[root@localhost ~]# yum -y install lrzsz
[root@localhost ~]# rz
![](https://images2015.cnblogs.com/blog/1096705/201702/1096705-20170214104003519-1441641102.png)
[root@localhost ~]# yum -y install unzip
![](https://images2015.cnblogs.com/blog/1096705/201702/1096705-20170214104012644-1181052021.png)
[root@localhost ~]# unzip ranzhi.4.0.zip
![](https://images2015.cnblogs.com/blog/1096705/201702/1096705-20170214104020129-1489561655.png)
[root@localhost ~]# yum -y install httpd* mariadb* php*
![](https://images2015.cnblogs.com/blog/1096705/201702/1096705-20170214104028269-1574617731.png)
[root@localhost ~]# vi /etc/httpd/conf/httpd.conf
![](https://images2015.cnblogs.com/blog/1096705/201702/1096705-20170214104036566-167558002.png)
AddType application/x-httpd-php .php
DirectoryIndex index.html index.php
[root@localhost ~]# systemctl start httpd[root@localhost ~]# systemctl start mariadb
![](https://images2015.cnblogs.com/blog/1096705/201702/1096705-20170214104136879-914843216.png)
[root@localhost ~]# cd ranzhi[root@localhost ranzhi]# mv * /var/www/html/
[root@localhost ranzhi]# chmod 777 /var/www/html/ 测试