安装时配置的目录前缀
./configure --prefix=xxx
循环强行删除
rm -rf php-5.2.13
查进程号
pgrep, pkill – 查找或者发信号给进程通过名称和其它属性
pgrep searchd
修改檔案:/etc/yum.repos.d/CentOS-Base.repo
在檔案最後我按文章添加了以下設定
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/5/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
cron服务提供crontab命令来设定cron服务的,以下是这个命令的一些参数与说明:
crontab -u //设定某个用户的cron服务,一般root用户在执行这个命令的时候需要此参数
crontab -l //列出某个用户cron服务的详细内容
crontab -r //删除没个用户的cron服务
crontab -e //编辑某个用户的cron服务
比如说root查看自己的cron设置:crontab -u root -l
再例如,root想删除fred的cron设置:crontab -u fred -r
sphinx加入自启动一定要有--config参数与指定的配置文件,否则不能自启动
//查询开机启动
chkconfig --list httpd
//加入开机启动
chkconfig httpd on
先要在/etc/rc.d/init.d下放个脚本(脚本要有755权限),然后再
chkconfig --add filename
配置开机自动启动Nginx
vi /etc/rc.local
在末尾增加以下内容:
/usr/local/webserver/nginx/sbin/nginx
六、在不停止Nginx服务的情况下平滑变更Nginx配置
1、修改/usr/local/webserver/nginx/conf/nginx.conf配置文件后,请执行以下命令检查配置文件是否正确:
/usr/local/webserver/nginx/sbin/nginx -t
如果屏幕显示以下两行信息,说明配置文件正确:
the configuration file /usr/local/webserver/nginx/conf/nginx.conf syntax is ok
the configuration file /usr/local/webserver/nginx/conf/nginx.conf was tested successfully
2、平滑重启:
①、对于Nginx 0.8.x版本,现在平滑重启Nginx配置非常简单,执行以下命令即可:
/usr/local/webserver/nginx/sbin/nginx -s reload
No input file specified的问题是因为fastcgi_param SCRIPT_FILENAME的设置错误了
//改变权限
chmod -R 0777 ./html
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype fr