摘要: 阅读全文
posted @ 2016-12-15 22:09 xuanhui 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 安装 python 连接MySQL数据库的模块:3.x : MySQL-python (pymysql)2.x : PyMySQL (MySQLdb)2.x 安装:报错:pip install MySQL-pythonerror: command 'gcc' failed with exit status 1解决:yum install -y python-develpi... 阅读全文
posted @ 2016-12-15 22:03 xuanhui 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、 命令 全路径 (eg:which mysql) 2、执行脚本 (脚本中加上#!/bin/bash) eg: /bin/bash script.sh 3、 输出信息(>>) 使用全路径 eg: /script/a.txt 阅读全文
posted @ 2016-12-15 21:56 xuanhui 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #密码过期时间180天chage -M 180 rootchage -l rootchage -M 180 gwchage -l gw 阅读全文
posted @ 2016-12-15 21:51 xuanhui 阅读(921) 评论(0) 推荐(0) 编辑
摘要: scp -rp -P22 test.txt root@xxxx:/tmp/ scp -rp -P22 root@xxxx:/tmp/1.txt ./ 阅读全文
posted @ 2016-12-15 21:49 xuanhui 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 由端口到进程: 直接查看进程: 查看本机连接端口: 杀进程: (eg:kill httpd) tskill 1596 阅读全文
posted @ 2016-12-15 21:43 xuanhui 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 安装: yum search mysql """mysql-server mysql mysql-devel mysql-community-server""" 自定义yum安装mysql在配置文件中定义,再启动 密码: the first passwd in : /var/log/mysqld.l 阅读全文
posted @ 2016-12-15 21:29 xuanhui 阅读(348) 评论(0) 推荐(0) 编辑