linux
Aison_blog
IT
展开
-
Linux 防火墙开放特定端口 (iptables)
查看状态:iptables -L -n下面添加对特定端口开放的方法:使用iptables开放如下端口/sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT保存/etc/rc.d/init.d/iptables save重启服务service iptables restart查看需要打开的端口是否生效?/etc/init.d/iptables st...转载 2018-05-11 16:26:06 · 177 阅读 · 0 评论 -
切换用户-----This account is currently not available.
[root@localhost~]# su - nagios This account is currently not available. vim /etc/passwd shell是“/sbin /nologin”,需要将起改成“/bin/bash” 修改完毕后,保存退出 这 样再 su - nagios就可以很容易进去了...原创 2018-09-14 16:18:19 · 610 阅读 · 0 评论