User-Profile-Image
hankin
  • 5
  • 首页
  • 分类
    • Windows
    • Web
    • VoIP
    • Virtualization
    • Trading
    • Smart Home
    • SEO
    • Security
    • Python
    • Program
    • PHP
    • OSX
    • OS
    • OpenSource
    • Nginx
    • MySQL
    • Mood
    • Linux
    • Life
    • Injection
    • Hosting
    • Finance
    • Exploits
    • CDN
  • 页面
    • About
  • 友链
    • 维酷科技
Help?

Please contact us on our email for need any support

Support
  • 首页
    首页   ›   OS   ›   Linux   ›   正文
Linux

CentOS7 Minimal安装后的基本设置

2015-10-01 22:35:30
2746  0 0

关闭SElinux
修改配置文件/etc/selinux/config,将SELINUX置为disabled

重启生效

sestatus
查看状态

CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。

1、关闭并禁止firewall开机启动:

停止

systemctl stop firewalld.service

禁止开机启动

systemctl disable firewalld.service

2、安装iptables防火墙

yum install iptables-services

编辑防火墙配置文件打开指定的端口号使用udp协议打开52100端口:

vi /etc/sysconfig/iptables

保存退出

:wq

最后重启防火墙使配置生效

systemctl restart iptables.service

设置防火墙开机启动

systemctl enable iptables.service

评论 (0)

Click here to cancel reply.

欢迎您 游客  

    ProdigYu
    181文章 43评论 5点赞 736698浏览
    随机文章
    最近弄的一个网站
    14年前
    访问aspx文件出现404错误
    16年前
    CentOS/Ubuntu/Debian等Linux查看端口占用
    10年前
    Debian,CentOS临时更改网卡MTU值
    3年前
    Discuz! 7.1 & 7.2 远程代码执行漏洞
    16年前
    Tags
    Apache CentOS CMD DDOS Debian DNS Docker FastCGI Google IIS IP iptables Linux Mac MySQL Nginx Opensource PHP Python Skill SSH Ubuntu Vim VMware VPN web.py Windows 删除 命令 命令提示符 安装 开源 技巧 插件 漏洞 百度 系统 组件 终端 缓存 网络电话 脚本 自建 详解 错误
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2026
    主页
    页面
    • About
    博主
    ProdigYu 管理员
    Something about myself
    181 文章 43 评论 736698 浏览
    测试
    测试