【特惠产品】 买2年送1年,北京BGP核心机房,最低19元每月 >>点击购买 X

帮助与文档

帮助与文档 >  云服务器 > centos 安装网站

centos 安装网站

1.  yum install httpd -y

2.在 /etc/httpd/conf/httpd.conf配置文件里修改 Listen 80 为 Listen 8088 

sed -i 's/Listen 80/Listen 8088/' /etc/httpd/conf/httpd.conf

3. firewall-cmd --permanent --add-port=12345/tcp --permanent

4.systemctl start firewalld

 systemctl start httpd  //打开服务器

 systemctl enable httpd  // 开机自启服务器