linux网页上线

1、下载安扎ung包到/var/www/westos.com/bbs/html/Discuz_X3.2_SC_UTF8.zip(文件需要新建)
2、解压 unzip Discuz_X3.2_SC_UTF8.zip   出现3个文件

3、根据要求修改权限
 cd readme/
    less readme.txt


4、修改权限
    cd upload/
    ls
    chmod -R 777 config
    chmod -R 777 data
    cd upload/
    chmod 777 uc_client uc_server -R

5、开启服务
  getsebool -a | grep httpd
  setsebool -P httpd_anon_write on
  setsebool -P httpd_sys_script_anon_write on


7、建立文件
  cd /etc/httpd/conf.d/
  ls
  cp music.conf bbs.conf
  vim bbs.conf
修改:%s/music/bbs/g


8、安装数据库
  yum install mariadb-server.x86_64 -y
 systemctl start mariadb
 systemctl enable mariadb.service


  vim /etc/my.cnf
添加:skip-networking=1
    systemctl restart mariadb.service


9、安装PHP
    yum install php-mysql.x86_64 -y
  systemctl restart httpd.service


10、修改警告模式
setenforce 0


11、systemctl restart httpd.service

测试:bbs.westos.com/upload

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值