安装好了。但还是有点问题
安装好了。但还是有点问题启动LNMP出现
Reload LNMP...
Reload Nginx configure...
: directive "rewrite" is not terminated by ";" in /usr/local/nginx/conf/discuzx.conf:3
configuration file /usr/local/nginx/conf/nginx.conf test failed
cat: /usr/local/nginx/logs/nginx.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l
Nginx program is reloding!
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
Shutting down php_fpm . done
Starting php_fpm Failed loading /usr/local/zend/ZendOptimizer.so:/usr/local/zend/ZendOptimizer.so: cannot open shared object file: No such file or directory
done
directive "rewrite" is not terminated by ";" in /usr/local/nginx/conf/discuzx.conf:3
我做了一个DX的静态规则,是不是内容有问题?
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-(+)\.html$ $1/portal.php?mod=view&aid=$2&page={page} last;
rewrite ^([^\.]*)/forum-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-(+)-(+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/(+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
if (!-e $request_filename) {
return 404;
}
已经按照教程 执行: /usr/sbin/setenforce 0了
但好像还是启动不了LNMP啊
[ 本帖最后由 风之翼灵 于 2010-7-12 19:22 编辑 ] 规则解决了
顺便分享下,DX的规则
location / {
index index.php;
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-(+)-(+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/(+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
if (!-e $request_filename) {
return 404;
}
} 但还是ZEND启动不了
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l
Nginx program is reloding!
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
Shutting down php_fpm . done
Starting php_fpm Failed loading /usr/local/zend/ZendOptimizer.so:/usr/local/zend/ZendOptimizer.so: cannot open shared object file: No such file or directory
done
请老大帮帮忙。。。终于快见到阳光了
回复 3# 的帖子
zend opt 没有安装成功 原帖由 licess 于 2010-7-12 19:36 发表 https://bbs.vpser.net/images/common/back.gifzend opt 没有安装成功
我在运行./centos.sh 在重新装一次可以么?
回复 5# 的帖子
按centos.sh 脚本只安装zend opt那些就行
页:
[1]