标签:hit param pass nbsp div img 守护 重启 for
http://www.centoscn.com/image-text/install/2014/1209/4281.html
启用ssh
如果安装centos7 需要选择centos 64!!!!!!!!!!!!!!!!
安装nignx php 环境
http://www.thinkphp.cn/code/992.html
安装报错 安装 GCC
http://www.rjkfw.com/s_3059.html(database disk image is malformed)
开机自启nginx echo "/data/soft/nginx/nginx" >> /etc/rc.local
openssl的安装,下载不了,先下载在安装
虚拟机上很多wege 访问不了主机,需要,在实体机上下载传上去
./configure --sbin-path=/data/soft/nginx/nginx \--conf-path=/data/soft/nginx/nginx.conf \--pid-path=/data/soft/nginx/nginx.pid \--with-http_ssl_module \--with-pcre=/data/soft/src/pcre-8.37 \--with-zlib=/data/soft/src/zlib-1.2.8 \--with-openssl=/data/soft/src/openssl-1.0.1h
开放80端口
./configure --prefix=/data/soft/php --enable-fpm --with-mcrypt \--enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath \--enable-inline-optimization --with-bz2 --with-zlib --enable-sockets \--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \--with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli \--with-gd --with-jpeg-dir --with-config-file-path=/etc
cp php.ini-dist /usr/local/php/lib/php.ini
报错
http://www.nginx.cn/2196.html(mcrypt.h not found. Please reinstall libmcrypt.)
修改根目录
location / {
root /data/www;
index index.html index.htm index.php;
}
location ~ \.php$ {
root /data/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
mysql 启动报权限不够
chmod a+wrx /etc/init.d/mysqld
重启php的问题
那个pid文件是需要vi php-fpm.conf 去掉里面那个 pid = run/php-fpm.pid 前面的分号然后再启动php-fpm才能自动生成的 呵呵,我也是有同样的疑问研究了下才弄出来的 网上确实没大有说明这个问题的
netstat -apn | grep 9000
kill -HUP pid 关闭进程(守护京城)
重启nginx
/data/soft/nginx/nginx -s reload
重启php kill -USR2 `cat /data/soft/php/var/run/php-fpm.pid`
关闭图片界面
vim /etc/inittab 将
改为3(以前是5)
安装memcached 扩展
./configure -enable-memcached -with-php-config=/data/soft/php/bin/php-config -with-zlib-dir -with-libmemcached-dir=/data/soft/libmemcached -prefix=/data/soft/phpmemcached
chmod -R 777 /data/www
修改开发目录为最高权限
这个报错
Fatal error: Call to undefined function _() in /data/www/uya/admin/library/configs/system.config.php on line 8
缺少gettext扩展,到php的源码目录
cd /data/soft/src/php-5.6.2
./configure --with-php-config=/data/soft/php/bin/php-config
netstat –apn | grep 8080 查看端口占用
kill -9 PID 关闭进程
centos
标签:hit param pass nbsp div img 守护 重启 for
原文地址:http://www.cnblogs.com/kinmos/p/6829871.html