Linux 系统管理
来源:互联网 发布:project是什么软件 编辑:程序博客网 时间:2024/06/16 17:32
用户管理
新增用户
adduser ${username}
修改用户密码
passwd ${username} New password: ${newPassword} Retype new password: ${newPassword}
删除用户
#前提必须把用户踢下线userdel ${username}
锁定用户(无法登录)
#锁定usermod -L ${username}#解锁usermod -U ${username}
登陆状态管理
#查看所有连接终端w#踢下某个终端pkill -kill -t ${TTY}
防火墙管理
firewall防火墙
# 停止systemctl stop firewalld.service# 禁止启动systemctl disable firewalld.service # 启动systemctl start firewalld# 状态 systemctl status firewalld # 开启一个端口firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,没有此参数重启后失效)# 重新载入firewall-cmd --reload# 查看firewall-cmd --zone= public --query-port=80/tcp# 删除firewall-cmd --zone= public --remove-port=80/tcp --permanent
iptables防火墙(正在废弃)
# 启动systemctl start iptables service# 重启systemctl restart iptables service#停止systemctl stop iptables service
阅读全文
0 0
- 【系统管理】LINUX系统管理相关
- Linux系统管理
- linux系统管理
- linux系统管理
- Linux系统管理
- linux系统管理
- 【linux】系统管理
- LINux系统管理
- linux系统管理
- linux系统管理
- linux系统管理
- linux 系统管理
- Linux系统管理
- Linux系统管理
- Linux系统管理
- linux系统管理
- Linux系统管理
- linux系统管理
- Redis 学习笔记(五)之列表类型
- Android6.0 显示系统(一) Surface创建
- 机器学习中的一些COST函数的说明
- C51汇编伪指令 CSEG DSEG
- tp5导出Excel表格
- Linux 系统管理
- AQS CAS简单详解(写的比较好)
- 【cocos2d-x 3.x 学习与应用总结】4: 理解CC_CALLBACK_0, CC_CALLBACK_1, CC_CALLBACK_2, CC_CALLBACK_3
- mysql 常见查询优化别优化错了
- EasyUI中的dialog修改样式
- 阿里云80 端口别阿里云盾占用
- ssm框架整合maven02
- 防止表单重复提交
- ZooKeeper 安装Windows环境