摘要: 在sendmail,命令发送邮件时提示 inux : inet_protocols: IPv6 support is disabled: Address family not supported by protocol vim /etc/postfix/main.cf inet_protocols 阅读全文
posted @ 2017-08-10 10:54 Novicelong 阅读(589) 评论(0) 推荐(0) 编辑
摘要: scp 注意权限 1、client 2、 server ssh-keygen -b 1024 -t rsa Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): 阅读全文
posted @ 2017-07-19 15:58 Novicelong 阅读(449) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python# -*- coding:utf-8 -*-long = 22counter = 0for i in range(10): # 10次循环 print('--> counter:',counter) #打印循环的次数 if counter < 3: #每次小 阅读全文
posted @ 2017-07-18 16:32 Novicelong 阅读(247) 评论(0) 推荐(0) 编辑
摘要: break #跳出整个循环 continue #跳出本次循环简单密码验证 #!/usr/bin/env python# -*- coding:utf-8 -*-user = "long"pwd ="abclong"user_name = input("username:")password = in 阅读全文
posted @ 2017-07-18 16:27 Novicelong 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 官网下载对应版本的mongodb 下载地址 https://www.mongodb.org/downloads#productionmongodb-linux-x86_64-rhel62-3.2.4.gz a) 执行命令tar –zxvf mongodb-linux-x86_64-rhel62-3. 阅读全文
posted @ 2017-05-15 09:28 Novicelong 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 新建组 groupadd sftp 创建用户 指定用户组 useradd -g sftp -d /data/sftp/minshengyidai -s /sbin/nologin msyd 添加密码: passwrd mysd 分配权限: 指定目录权限(组)。chown -R .sftp min/ 阅读全文
posted @ 2017-05-12 11:37 Novicelong 阅读(155) 评论(0) 推荐(0) 编辑