摘要: 【http://blog.51yip.com/linux/1462.html#】 #!/usr/bin/expect -f set ip 192.168.1.201 set password meimiao1905 set timeout 10 spawn ssh root@$ip expect { 阅读全文
posted @ 2016-10-24 20:41 浮尘微光 阅读(545) 评论(0) 推荐(0)
摘要: 1.统计某个目录下总共有多少个文件(递归统计所有子目录)ls -lR|grep "^-"|wc -l 阅读全文
posted @ 2016-10-24 20:40 浮尘微光 阅读(214) 评论(0) 推荐(0)
摘要: 【安装chrome浏览器】* 下载(已下载完成):32位:wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb64位:wget https://dl.google.com/linux/direct/ 阅读全文
posted @ 2016-10-24 20:40 浮尘微光 阅读(199) 评论(0) 推荐(0)
摘要: 一:使用CentOS常用命令查看cpumore /proc/cpuinfo | grep "model name" grep "model name" /proc/cpuinfo [root@localhost /]# grep "CPU" /proc/cpuinfo model name : In 阅读全文
posted @ 2016-10-24 20:40 浮尘微光 阅读(458) 评论(0) 推荐(0)
摘要: 【crontab】 #每天6:00 执行a.sh00 6 * * * /bin/sh /home/work/rxShell/a.sh #每天3:20 执行a1.sh20 3 * * * /bin/sh /home/work/rxShell/a1.sh #每隔10分钟 执行b.sh*/10 * * * 阅读全文
posted @ 2016-10-24 20:03 浮尘微光 阅读(453) 评论(0) 推荐(0)
摘要: ./configure --prefix=/usr/local/httpd --enable-module=so --enable-module=rewrite --enable-mods-shared=all 今日编译apache时出错: #./configure --prefix……检查编辑环境 阅读全文
posted @ 2016-10-24 19:59 浮尘微光 阅读(230) 评论(0) 推荐(0)
摘要: 重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之 后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file o 阅读全文
posted @ 2016-10-24 19:58 浮尘微光 阅读(1298) 评论(0) 推荐(0)
摘要: ngx_http_autoindex_module 此模块用于自动生成目录列表,ngx_http_autoindex_module只在 ngx_http_index_module模块未找到索引文件时发出请求. nginx默认是不允许列出整个目录的。 开启目录列表: 打开nginx.conf文件,在l 阅读全文
posted @ 2016-10-24 19:58 浮尘微光 阅读(2650) 评论(0) 推荐(0)
摘要: memcached的1.2.4及以上增加了CAS(Check and Set)协议,对于同一key的多进行程的并发处理问题。这种情况其实根数据库很像,如果同时有几个进程对同一个表的同一数据进行更新的话,那会不会打架呢,哈哈。数据库里面可以锁定整张表,也可以锁定表里面一 行的功能,其实memcache 阅读全文
posted @ 2016-10-24 19:57 浮尘微光 阅读(1128) 评论(0) 推荐(0)
摘要: 【Nginx配置虚拟主机】 每一个 server { listen 80; server_name www.a.com; ..... } 就表示一台虚拟域名, 然后对应的,在 /etc/hosts 修改: vim /etc/hosts 【/usr/local/server/nginx/conf/ng 阅读全文
posted @ 2016-10-24 19:55 浮尘微光 阅读(1277) 评论(0) 推荐(0)