随笔 - 366  文章 - 0  评论 - 101  阅读 - 30万
01 2018 档案
mysql 权限管理 grant revoke
摘要:grant all privileges on database.table to 'user'@'ip' identified by 'passwd' with grant option; grant select,insert on mt.* to 'mtp'@'192.168.25.20' i 阅读全文
posted @ 2018-01-30 10:24 寒星12345678999 阅读(162) 评论(0) 推荐(0) 编辑
在 Linux 上实现一段时间后自动登出非活动用户
摘要:参考 编辑 ~/.bashrc 或 ~/.bash_profile 文件: $ vi ~/.bashrc 或, $ vi ~/.bash_profile 将下面行加入其中: TMOUT=100 这会让用户在停止动作 100 秒后自动登出。你可以根据需要定义这个值。保存并关闭文件。 运行下面命令让更改 阅读全文
posted @ 2018-01-20 21:26 寒星12345678999 阅读(438) 评论(0) 推荐(0) 编辑
让 history 命令显示日期和时间
摘要:参考 将 HISTTIMEFORMAT 变量加入 /etc/profile 文件中(或者其他 ~/.bashrc),让它对所有用户永久生效(临时生效用export HISTTIMEFORMAT='%F %T ')。 # echo 'HISTTIMEFORMAT="%F %T "' >> /etc/p 阅读全文
posted @ 2018-01-20 20:55 寒星12345678999 阅读(198) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示