约定几个目录/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.ini一,php-fpm的启动参数#测试php-fpm配置/usr/local/php/sbin/php-fpm -t/usr...
分类:
Web程序 时间:
2014-06-28 23:23:28
阅读次数:
365
fdisk –l查看dos/win/ext2分区(partiton,不是slice,slice是solaris分区)[root@localhost etc]# /sbin/fdisk -lDisk /dev/hda: 80.0 GB, 80026361856 bytes255 heads, 63 s...
1. 直接打 ifconfig ,显示 bash: ifconfig: command not found
打入全路径,查看IP /sbin/ifconfig
2. 主机ping不通虚拟机, 配置NAT
到适配器设置中,开启网卡
再次 ping 虚拟机IP 测试
3. 接下来设置 SecureCRTPortable, 这样的话,就能从...
分类:
系统相关 时间:
2014-06-25 00:10:08
阅读次数:
338
操作系统:redhat5.5前端服务器:varnishcache2.1.5监听端口8080后端服务器:tengine1.4.6监听端口80接着,建立varnish用户以及用户组,并且创建Varnish缓存目录和日志目录:[root@varnish-server~]#useradd-s/sbin/nologinvarnish[root@varnish-server~]#mkdir/data/varnish/c..
分类:
其他好文 时间:
2014-06-24 16:33:51
阅读次数:
331
检查HP服务器内存状态脚本脚本1(如有问题则发邮件通知):#vidisk.sh按a或i进入编辑模式#!/bin/bashName=`hostname`Date=`date+%m%d%y`Num=`dmidecode|grep-i‘serialnumber‘|head-n1`Mem=`/sbin/hpasmcli-s"showdimm"|grepStatus|awk-F[:""]+‘{print$2}‘‘`#echo$Diski=1;forOK..
分类:
其他好文 时间:
2014-06-24 16:11:12
阅读次数:
293
apt-get install lib32z1 如果libz.so.1: cannot open shared object file: No such file or directory在/etc/ld.so.conf中加入/usr/lib 增加类库所有路径 /sbin/ldconfig –v」来...
分类:
其他好文 时间:
2014-06-23 07:44:47
阅读次数:
306
nginx作为web服务器,wordpress上传主题报错 413 Request Entity Too Large
解决:
vim /usr/local/nginx/conf/nginx.conf ’编辑nginx配置文件
client_max_body_size 20m; ‘在http段落里添加这一句后保存退出
/usr/local/nginx/sbin/nginx -s reload...
分类:
其他好文 时间:
2014-06-22 14:38:34
阅读次数:
203
一.setuid:以reboot为例u+s[rhce01@demo~]$rebootreboot:mustbesuperuser[rhce01@demo~]$[rhce01@demo~]$exit[root@demoaaa]#[root@demoaaa]#whichreboot/sbin/reboot[root@demoaaa]#[root@demoaaa]#ll/sbin/reboot-rwxr-xr-x.1rootroot14832Mar202012/sbin/reboot[root@demoa..
分类:
系统相关 时间:
2014-06-22 11:17:04
阅读次数:
354
方式1: /sbin/iptables -I INPUT -p tcp --dport 8011 -j ACCEPT #开启8011端口 /etc/rc.d/init.d/iptables save #保存配置 /etc/rc.d/init.d/iptab...
分类:
系统相关 时间:
2014-06-18 13:03:30
阅读次数:
262
Vsftpd服务配置服务程序和运行脚本:服务程序:、/user/sbin/vsftpd系统服务脚本:/etc/init.d/vsftpd配置目录/etc/vsftpd/主配置文件:Vsftpd.conf黑名单文件:ftpusers黑/白名单文件:user_list1.1确认安装vsftpd软件包[root@~]#yum-yinstallvsftpdPackagevsftpd-2.0.5-28.el5..
分类:
其他好文 时间:
2014-06-17 17:01:09
阅读次数:
489