nfs挂载报错:mount:wrongfstype,badoption,badsuperblockon根据错误提示,查看/sbin/mount.<type>文件,果然发现没有/sbin/mount.nfs的文件,安装nfs-utils即可yuminstallnfs-utils问题:mount.nfs:rpc.statdisnotrunningbutisrequiredforremotelocking#/etc/init.d/rpc..
分类:
其他好文 时间:
2015-07-15 23:15:08
阅读次数:
394
nginx安装模块:luajiterrorwhileloadingsharedlibraries:libluajit-5.1.so.2解决:在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig–v更新一下配置即可。
分类:
其他好文 时间:
2015-07-15 23:14:36
阅读次数:
148
开机按command+s组合键,进入单一用户模式(singleusermodel)macos10.10在#root>后输入1、/sbin/fsck-y检测磁盘2、/sbin/mount-uaw加载文件系统(读/写)获取读写权限3、rm/var/db/.AppleSetupDone删除账号配置4、reboot重启重启后,重新设置一个账号,进入系统进入系统后..
分类:
系统相关 时间:
2015-07-15 23:05:41
阅读次数:
242
一、编译添加新模块1、查看以前编译安装nginx的信息/usr/local/nginx/sbin/nginx-V2、进入nginx源码目录cdnginx-1.8.03、重新编译代码和模块./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-file-aio--with-http_realip_modu..
分类:
其他好文 时间:
2015-07-15 13:30:15
阅读次数:
261
/:根目录 /bin:保存普通用户可读取的命令的目录 /sbin:保存普通用户可读取的命令的目录 /usr:系统资源保存目录 /bin:保存超级用户可读取的命令的目录 /sbin:保存超级用户可读取的命令的目录 /boot:启动目录 /dev:设备目录 /etc:配置文件目录...
分类:
系统相关 时间:
2015-07-15 13:00:45
阅读次数:
162
#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT 然后保存: #/etc/rc.d/init.d/iptables save 再查看...
分类:
其他好文 时间:
2015-07-15 01:16:50
阅读次数:
205
/bin,/sbin,/usr/bin,/usr/sbin区别/ : this is root directory root 用户根目录/bin : commands in this dir are all system installed user commands 系统的一些指令...
分类:
其他好文 时间:
2015-07-14 22:03:20
阅读次数:
130
1,yuminstallcronolog2.在新Tomcat7.0.47的vim/usr/local/tomcat/bin/catalina.sh文件要用#注释的行是在第370行touch"$CATALINA_OUT"在第384行>>"$CATALINA_OUT"2>&1"&"替换:2>&1|/usr/sbin/cronolog"$CATALINA_BASE/logs/catalina-%Y-%m-%d.out"&am..
分类:
其他好文 时间:
2015-07-14 20:49:16
阅读次数:
171
安装cronolog工具,安装位置默认为:/usr/sbin/cronolog yum?install?cronolog
which?cronolog 修改catalina.sh配置,对于tomcat7的文件,在381-382行、390-391行两处 org.apache.catalina.startup.Bootstra...
分类:
其他好文 时间:
2015-07-14 15:52:24
阅读次数:
119
分享第一个监控脚本,挂载点磁盘空间使用监控:如果使用空间达到了75%则开始报警,发送告警邮件。
在手机上安装网易的邮件客户端,就可以达到实时提醒的效果。
关于mail的配置,见之前的文章:http://blog.csdn.net/rookie_ceo/article/details/46559195
#!/bin/sh
source /etc/profile
IP=`/sbin/ifcon...
分类:
其他好文 时间:
2015-07-14 00:13:10
阅读次数:
239