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
  • 友链
    • 维酷科技
    • Tesra超算网络
Help?

Please contact us on our email for need any support

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

CentOS7 Minimal安装后的基本设置

2015-10-01 22:35:30
2169  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
    180文章 77评论 4点赞 554015浏览
    随机文章
    配置Nginx+uwsgi更方便地部署Python应用
    15年前
    Mac连接安卓手机导入数据
    5年前
    CentOS7\Ubuntu安装VMware Workstation 12
    9年前
    CentOS配置VNCServer以及远程桌面连接
    12年前
    Ubuntu系统下apt-get命令常用参数
    15年前
    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
    180 文章 77 评论 554015 浏览
    测试
    测试