摘要: 1 [root@zenghui expect]# cat ssh_dsa.exp 2 #!/usr/bin/expect 3 set ip [lindex $argv 0] 4 set pass [lindex $argv 1] 5 set port [lindex $argv 2] 6 set ... 阅读全文
posted @ 2015-05-22 07:47 zenghui940 阅读(759) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一个问题:nginx反向代理tomcatlocattion / {proxy_passhttp://192.168.1.12:11080/iloadsdev-web/;proxy_set_headerHost$host;proxy_set_headerRemote_Addr$remote_a... 阅读全文
posted @ 2015-05-12 08:08 zenghui940 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/bash 2 TEMP=`getopt -o hm: --long aai:,mai: -n 'getopts.sh' -- "$@"` 3 eval set -- "$TEMP" 4 while true 5 do 6 case "$1" in 7 -h|--aai... 阅读全文
posted @ 2015-05-02 16:07 zenghui940 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 今天运行一个命令wget(wg再使用tab键无法使用),如下提示-bash: /usr/bin/wget: 权限不够[root@www /]# ls -Z /usr/bin/wget-rw-r--r--. root root system_u:object_r:bin_t:s0 /usr/bin/w... 阅读全文
posted @ 2015-04-27 11:27 zenghui940 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/bash 2 ########################################### 3 # 4 # version: 3.0.0 5 # creator: zenghui 6 # d... 阅读全文
posted @ 2015-04-16 13:44 zenghui940 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1、Linux命令行下将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn://192.168.1.1/pro/domain简写:svn co2、Linux命令行下往版本库中添加新的文件svn add file例如:sv... 阅读全文
posted @ 2015-03-26 17:31 zenghui940 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 最近遇到一个很奇怪的事情由于数据人员的需求,现在需要修改mysql的sql_modesql_mode默认是sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES这时候我在/etc/my.cnf配置如下sql_mode=NO_ENGINE_SUBSTIT... 阅读全文
posted @ 2015-03-24 09:59 zenghui940 阅读(9592) 评论(0) 推荐(0) 编辑
摘要: centos6.5mysql5.6主从复制主mysqlvi/etc/my.cnf[client]default-character-set=utf8port=3306socket=/usr/local/mysql/mysql.sock[mysqld]server-id=1log-bin=mysqlm... 阅读全文
posted @ 2015-03-22 16:20 zenghui940 阅读(207) 评论(0) 推荐(0) 编辑
摘要: mount -t cifs -o username=root,password=wdzj201445 //192.168.10.250/share /share/ 阅读全文
posted @ 2015-03-20 17:38 zenghui940 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1,机器详情如下:Master192.168.11.100slave192.168.11.1011.1下面在每台机器上执行vi /etc/hostsMaster 192.168.11.100slave 192.168.11.101vi /etc/sysconfig/networkHOST... 阅读全文
posted @ 2015-03-10 14:01 zenghui940 阅读(470) 评论(0) 推荐(0) 编辑