摘要:
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
阅读(134)
评论(0)
推荐(0)
摘要:
配置虚拟主机安装discuz[root@tyrr www]# cd[root@tyrr ~]# mkdir -p /data/www[root@tyrr ~]# cd /data/www/[root@tyrr www]# unzip Discuz_X3.2_SC_GBK.zip... 阅读全文
posted @ 2017-03-25 11:51
aallennty
阅读(348)
评论(0)
推荐(0)
摘要:
apache日志切割apache日志格式配置文件中的设置vim /usr/local/apache2/conf/httpd.conf # # The following directives define some format nicknames for use... 阅读全文
posted @ 2017-03-25 11:51
aallennty
阅读(118)
评论(0)
推荐(0)
摘要:
访问控制[root@tyrr apache2]# vim conf/extra/httpd-vhosts.conf ... AllowOverride None Options None Order allow,deny ... 阅读全文
posted @ 2017-03-25 11:51
aallennty
阅读(270)
评论(0)
推荐(0)
摘要:
查询文件空行所在的行号[root@tyzz ~]# awk '{if ($0~/^$/)print NR}' test 368[root@tyzz ~]# grep -n ^$ test 3:6:8:[root@tyzz ~]# grep -n ^$ test |tr... 阅读全文
posted @ 2017-03-25 11:51
aallennty
阅读(129)
评论(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
阅读(162)
评论(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
阅读(119)
评论(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
阅读(115)
评论(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
阅读(258)
评论(0)
推荐(0)
摘要:
要求:将该文件中的域名截取出来,统计重复域名出现的次数,然后按次数进行降序排列[root@tyzZ SHELL]# cat file http://www.linuxidc.com/index.htmlhttp://www.google.com/index.htmlhttp:/... 阅读全文
posted @ 2017-03-25 11:50
aallennty
阅读(118)
评论(0)
推荐(0)

浙公网安备 33010602011771号