摘要:
在某个用户的家目录下 的 .bashrc 文件,写入如下内容: 例如,work用户写入上面的命令,使用 onlinedb 命令 即可直接登录数据库: 阅读全文
posted @ 2016-10-24 20:44
浮尘微光
阅读(484)
评论(0)
推荐(0)
摘要:
【http://www.centoscn.com/CentOS/help/2014/0805/3430.html】 1、查看、修改Linux时区与时间 一、linux时区的查看与修改 1,查看当前时区 date -R 2,修改设置时区 方法1: tzselect 方法2: 仅限于RedHat Lin 阅读全文
posted @ 2016-10-24 20:41
浮尘微光
阅读(714)
评论(0)
推荐(0)
摘要:
【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
浮尘微光
阅读(528)
评论(0)
推荐(0)
摘要:
1.统计某个目录下总共有多少个文件(递归统计所有子目录)ls -lR|grep "^-"|wc -l 阅读全文
posted @ 2016-10-24 20:40
浮尘微光
阅读(207)
评论(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
浮尘微光
阅读(186)
评论(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
浮尘微光
阅读(442)
评论(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
浮尘微光
阅读(442)
评论(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
浮尘微光
阅读(214)
评论(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
浮尘微光
阅读(1284)
评论(0)
推荐(0)
摘要:
ngx_http_autoindex_module 此模块用于自动生成目录列表,ngx_http_autoindex_module只在 ngx_http_index_module模块未找到索引文件时发出请求. nginx默认是不允许列出整个目录的。 开启目录列表: 打开nginx.conf文件,在l 阅读全文
posted @ 2016-10-24 19:58
浮尘微光
阅读(2622)
评论(0)
推荐(0)