systemctl stop firewalld systemctl disable firewalld
sed -i 's/enforcing/disabled/' /etc/selinux/config
cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.bak
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all yum makecache
yum install mysql-server -y
service mysqld restart
/usr/bin/mysqladmin -u root password 'Password'
chkconfig mysqld on
yum install httpd -y
service httpd start
chkconfig httpd on
yum install php php-fpm php-mysql -y
service php-fpm start
netstat -nlpt | grep php-fpm
chkconfig php-fpm on
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
unzip Discuz_X3.2_SC_UTF8.zip
cp -r upload/* /var/www/html/
chmod -R 777 /var/www/html
service httpd restart
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70003733/viewspace-2853919/ ,如需转载,请注明出处,否则将追究法律责任。