上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: mysql二进制 包 安装[root@tyrr src]# useradd -s /sbin/nologin -M mysql[root@tyrr src]# id mysqluid=500(mysql) gid=500(mysql) 组=500(mysql)[root@tyr... 阅读全文
posted @ 2017-03-25 11:51 aallennty 阅读(114) 评论(0) 推荐(0)
摘要: [root@tyzz ~]# w 23:13:58 up 11 days, 9:15, 1 user, load average: 0.00, 0.01, 0.05USER TTY LOGIN@ IDLE JCPU PCPU WHATro... 阅读全文
posted @ 2017-03-25 11:51 aallennty 阅读(312) 评论(0) 推荐(0)
摘要: iptables的三张表[root@tyzz ~]# iptables -t filter mangle nat导入导出配置文件[root@tyzz ~]# iptables-save >1.ipt[root@tyzz ~]# cat 1.ipt # Gene... 阅读全文
posted @ 2017-03-25 11:51 aallennty 阅读(75) 评论(0) 推荐(0)
摘要: 多行文件 合并为一行[root@tyzz ~]# echo $aroot:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin ad... 阅读全文
posted @ 2017-03-25 11:51 aallennty 阅读(105) 评论(0) 推荐(0)
摘要: [root@tyzz ~]# w 23:13:58 up 11 days, 9:15, 1 user, load average: 0.00, 0.01, 0.05USER TTY LOGIN@ IDLE JCPU PCPU WHATro... 阅读全文
posted @ 2017-03-25 11:51 aallennty 阅读(202) 评论(0) 推荐(0)
摘要: [root@tyzz ~]# whoami #查看当前用户root[root@tyzz ~]# id #查看当前用户 uid gif groupsuid=0(root) gid=0(root) groups=0(root)[root@tyzz ~]# echo $HOME... 阅读全文
posted @ 2017-03-25 11:50 aallennty 阅读(144) 评论(0) 推荐(0)
摘要: [root@tyzz ~]# mkdir -pv 1/2/3mkdir: created directory '1'mkdir: created directory '1/2'mkdir: created directory '1/2/3'-p 递归 创建多级目录-v 显示过程... 阅读全文
posted @ 2017-03-25 11:50 aallennty 阅读(113) 评论(0) 推荐(0)
摘要: shell中的连接符[root@tyzz ~]# ls 1.txt && ls 2.txt1.txt2.txt[root@tyzz ~]# ls 10.txt && ls 2.txtls: cannot access 10.txt: No such file or direct... 阅读全文
posted @ 2017-03-25 11:50 aallennty 阅读(239) 评论(0) 推荐(0)
摘要: psutil 模块常用函数学习返回当前CPU利用率的百分比In [4]: import psutilIn [5]: psutil.cpu_percent()Out[5]: 0.9 #返回当前CPU利用率的百分比-------获得逻辑(物理)CPU的个数In [6]: psuti... 阅读全文
posted @ 2017-03-25 11:50 aallennty 阅读(100) 评论(0) 推荐(0)
摘要: 启动级别0 关机1 单用户2 多用户模式但带网络但不能远程登录3 不受限多用户模式 TUI4 保留5 图形模式6 重新启动查看启动级别 [root@tyzz ~]# runlevel N 5N是上次的级别,3是当前级别 也就是说机器开机就是3级别切换级别init 3 ... 阅读全文
posted @ 2017-03-25 11:50 aallennty 阅读(100) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页