03 2017 档案

摘要: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) 编辑
摘要:#!/usr/bin/expect set user [lindex $argv 0] #参数1:用户名 set ip [lindex $argv 1] #参数2:ip set password [lindex $argv 2] #参数3:密码 spawn ssh ${user}@$ip expec 阅读全文
posted @ 2017-03-08 16:46 puer633 阅读(543) 评论(0) 推荐(0) 编辑