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
2377  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文章 17评论 4点赞 602172浏览
    随机文章
    使用Bind 9 的DNS-views实现IP地址分区域解析
    15年前
    头文字D第五季
    13年前
    lnmp一键包nginx加装ngx_cache_purge缓存清理模块
    6年前
    Ubuntu系统下apt-get命令常用参数
    15年前
    Linux和Windows 中查看端口被哪个程序占用
    11年前
    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 © 2025
    主页
    页面
    • About
    博主
    ProdigYu 管理员
    Something about myself
    181 文章 17 评论 602172 浏览
    测试
    测试