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
2969  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文章 120评论 6点赞 825619浏览
    随机文章
    Ubuntu tmp目录overflow只有1M
    11年前
    Debian,CentOS临时更改网卡MTU值
    4年前
    VestaCP小百科
    10年前
    Mac中如何像windows快速浏览多张图片
    7年前
    WordPress在宝塔安装FTP环境中后台升级功能不能正常运行
    7年前
    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 文章 120 评论 825619 浏览
    测试
    测试