centos7设置sshd端口,firewall,selinux设置
2024-10-21 13:39:43
https://blog.csdn.net/qq_31927797/article/details/81095829
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#查看防火墙状态
firewall-cmd --state
#临时关闭selunx
setenforce 0
#关闭selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g';
# 安装iptables
yum install iptables-services
最新文章
- SQL Server数据库性能优化技巧
- OC整理1
- struts2的DevMode模式
- js模版引擎handlebars.js实用教程——另一种Helper用法
- (原创) cocos2dx使用Curl连接网络(客户端)
- puppy-language
- Another app is currently holding the yum lock; waiting for it to exit... 怎么解决
- vim: 远程登陆服务器时可能出现的: 方向键,回退符不能正常使用
- Ubuntu iptables 设置
- delphi的TFileStream 内存流
- Visual Studio 2017 for Mac 体验之Android.Form
- H5取经之路——添加hover实现特定效果
- java mysql连接时出现的问题
- Docker 三剑客之 Docker Compose
- Yahoo Programming Contest 2019 自闭记
- Spotlight LGWR1 一直告警
- vs 基本验证控件使用
- 『PyTorch x TensorFlow』第六弹_从最小二乘法看自动求导
- ZooKeeper Installation(Dev)
- Xamarin iOS教程之视图显示图像
热门文章
- POJ3692【二分匹配】
- P5175 数列(矩阵加速)
- [Xcode 实际操作]九、实用进阶-(25)使用Storyboard(故事版)的约束功能,使项目快速适配各种分辨率的设备
- 16.join 用法(拼接列表时里面必须为str类型)
- python异常之EOFError: Ran out of input
- django_logging
- Tinghua Data Mining 7
- 找回phpstorm删除文件/文件夹(phpstorm删除文件/文件夹的恢复)
- springMVC-接收数据-参数绑定
- python入门之排序,文件操作