码迷,mamicode.com
首页 >  
搜索关键字:firewall-cmd    ( 421个结果
CentOS7查看和关闭防火墙
镜像的版本不一样,linux的命令也会有变化。 今天通过windows的navicat访问linux下mysql,需要关闭防火墙。 我用的CentOS 7查看防火墙的命令跟以前的不一样了。 CentOS 7.0默认使用的是firewall作为防火墙 查看防火墙状态 : firewall-cmd -- ...
分类:其他好文   时间:2019-09-27 10:58:44    阅读次数:89
CentOS 7.5 修改SSH 端口号
1、cd/etc/ssh2、cpsshd_configsshd_config_201909013、visshd_config查找Port,修改端口号(可同时支持多个端口)保存退出4、sudosemanageport-a-tssh_port_t-ptcp22225、systemctlrestartsshd6、systemctlstatussshd.service7、firewall-cmd--zon
分类:其他好文   时间:2019-09-23 12:08:55    阅读次数:114
CentOS7修改SSH端口
一、修改ssh配置文件sshd_config [root@bogon ~]# vi /etc/ssh/sshd_config 二、防火墙放行 [root@bogon ~]# firewall-cmd --zone=public --add-port=22345/tcp --permanent [ro ...
分类:其他好文   时间:2019-09-14 10:48:20    阅读次数:108
CentOS7 安装Samba
系统:CentOS7.6 1、 关闭防火墙 查看状态:firewall-cmd --state 关闭: systemctl stop firewalld 开机禁用: systemctl disable firewalld 2、关闭SELinux setenforce 0 3、安装samba和samb... ...
分类:其他好文   时间:2019-09-13 22:05:31    阅读次数:98
防火墙处理
查看对外开放的端口状态查询已开放的端口netstat-anp查询指定端口是否已开firewall-cmd--query-port=666/tcp提示yes,表示开启;no表示未开启。查看防火墙状态查看防火墙状态systemctlstatusfirewalld开启防火墙systemctlstartfirewalld关闭防火墙systemctlstopfirewalld开启防火墙servicefire
分类:其他好文   时间:2019-09-10 18:14:39    阅读次数:150
centos7 mailx当ip改变后发送邮件
配置证书服务查看:https://www.cnblogs.com/yunweis/p/8149242.html 开启25端口: 先查看25端口情况: firewall-cmd --query-port=25/tcp 添加端口: firewall-cmd --add-port=25/tcp --per ...
分类:其他好文   时间:2019-09-04 19:10:11    阅读次数:111
Linux 防火墙开放、查询、关闭端口
1. 开放指定端口 firewall-cmd --zone=public --add-port=5121/tcp --permanent # --permanent 永久生效,如果不加此条,重启后该端口会自动失关闭 2. 查询已开放的端口 netstat -anp 查询指定端口是否已开 firewa ...
分类:系统相关   时间:2019-08-31 10:46:06    阅读次数:108
安装apache
1、安装apache#yum-yinstallhttpd2、启动apache#systemctlstarthttpd(附停止apache命令:systemctlstophttpdsystemctl:系统控制)3、设置开机自动启动apache#systemctlenablehttpd4、防火墙开启http端口,用于外部访问:#firewall-cmd--add-service=http5、验证打开浏
分类:Web程序   时间:2019-08-31 00:55:16    阅读次数:103
如何在CentOS 7下开放8080端口
连接centos7服务器; 连接centos7服务器; 我们可以输入命令查看防火墙的状态; firewall-cmd --state ; 我们可以输入命令查看防火墙的状态; firewall-cmd --state ; 如果上一步处于关闭状态,输入命令: systemctl start firewa ...
分类:其他好文   时间:2019-08-29 18:13:00    阅读次数:107
vsftp 安装配置(被动模式)
vi /etc/vsftpd/vsftpd.conf vsftp配置末尾添加 pasv_enable=YES pasv_min_port=10000 pasv_max_port=10030 防火墙端口配置 firewall-cmd --add-port=21/tcp --permanent fire... ...
分类:其他好文   时间:2019-08-27 12:35:56    阅读次数:90
421条   上一页 1 ... 10 11 12 13 14 ... 43 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!