分类: IT运维

48 篇文章

Linux开启防火墙并限制开放端口
1、编辑/etc/sysconfig/iptables,若不存在则创建 vi /etc/sysconfig/iptables 2、开启端口1022的iptables内容如下 # Firewall configuration written by system-config-firewall # Manual customization of thi…
Linux修改ssh端口并禁用root登录
1、修改ssh端口 vi /etc/ssh/sshd_config Port 22修改改为Port 1022(或其他自定义的端口) 2、禁用root账号登录 vi /etc/ssh/sshd_config PermitRootLogin no 3、重启sshd服务 service sshd restart 原创内容转载请保留出处GEEK笔记(htt…
Linux添加新用户
1、添加用户server并制定用户目录为/home/server useradd server -d /home/server 2、修改用户server密码为123456 passwd server 然后按提示输入2次新密码。 原创内容转载请保留出处GEEK笔记(http://www.geekapp.cn/)。