摘要: 以下内容来源网络http://www.jb51.net/article/40807.html 以下是对Linux中top命令的用法进行了详细的介绍,需要的朋友可以过来参考下 查看多核CPU命令mpstat -P ALL 和 sar -P ALL 说明:sar -P ALL > aaa.txt 重定向 阅读全文
posted @ 2017-07-17 21:26 puer633 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 #coding=utf-8 2 import os 3 import time 4 while 1: 5 os.system('ls') 6 oldfilename=raw_input("input file's name which you want backup:") 7 if os.path.exists(oldfilename): 8 ... 阅读全文
posted @ 2017-04-10 22:14 puer633 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1 #coding=utf-8 2 import MySQLdb 3 import getpass 4 import time 5 import re 6 7 8 9 10 def db_insert(a,b,c=0):#新建用户 11 cur.execute(sqli,(a,b,c)) 12 conn.commit() 13 ... 阅读全文
posted @ 2017-04-10 21:25 puer633 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/bash/python 2 #coding=utf-8 3 import getpass 4 import time 5 import re 6 import os 7 #Logintime=time.asctime(time.localtime(time.time())) 8 dic={"fentiao":"westos","wang":"wa... 阅读全文
posted @ 2017-03-27 20:59 puer633 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1 __author__ = 'root' 2 count = input("input total number of name:") 3 name=[] 4 i=1 5 errortimes=1 6 while i = 5 and b != a and c == 1 and b != 0 and a-b > 2 : 12 #输入字符最短长度为5(xx,xx);“,”... 阅读全文
posted @ 2017-03-26 21:16 puer633 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 【IPV6】 IPv6是Internet Protocol Version 6的缩写,其中Internet Protocol译为“互联网协议”。 IPv6是IETF(互联网工程任务组,Internet Engineering Task Force)设计的用于替代现行版本IP协议(IPv4)的下一代I 阅读全文
posted @ 2017-03-15 21:53 puer633 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: 本单元涵盖的主题: *基本电子邮件配置 *空壳电子邮件服务器配置 *邮件群发 *空壳邮件 *【postfix+dovecot+mysql】 ________________________________________________________________________________ 阅读全文
posted @ 2017-03-14 12:49 puer633 阅读(355) 评论(0) 推荐(0) 编辑
摘要: mysql(mariadb) yum install mariadb-server systemctl restart mariadb mysqladmin -uroot -predhat password westos #修改本地mysql root密码 mysqladmin -uroot -pr 阅读全文
posted @ 2017-03-10 23:19 puer633 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Apache web 服务 1.Apache基本配置 Apache主配置文件:/etc/httpd/conf/httpd.conf ServerRoot "/etc/httpd" 用于指定Apache的运行目录 Listen 80 监听端口 User apache Group apache 运行ap 阅读全文
posted @ 2017-03-10 15:24 puer633 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #在“/”下创建username和password两个文件,分别存放用户名和密码.格式为:username中每行一个用户名;password中每行一个密码,与username中的user一一对应。 #!/bin/bash #判断文件是否存在 if [ ! -f /username ]; then e 阅读全文
posted @ 2017-03-08 17:01 puer633 阅读(2164) 评论(0) 推荐(0) 编辑