码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7 相关配置

时间:2019-07-12 18:42:07      阅读:80      评论:0      收藏:0      [点我收藏+]

标签:tar   配置   man   fir   star   安装   install   相关配置   zone   

nginx

1、在线安装nginx

yum install nginx

2、启动nginx服务

systemctl start nginx

3、防火墙设置

打开http防火墙:firewall-cmd --zone=public --permanent --add-service=http

重新加载一下:firewall-cmd --reload

查看开放了几个端口:sudo firewall-cmd --list-service

CentOS7 相关配置

标签:tar   配置   man   fir   star   安装   install   相关配置   zone   

原文地址:https://www.cnblogs.com/hanxiaobei/p/11177669.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!