寻觅生命中的那一片浅草......

CentOS5.3上配置Nginx的几个问题

安装MySQL5.1.34时,提示
checking for termcap functions library… configure: error: No curses/termcap library found

安装ncurses-devel解决问题
yum -y install ncurses-devel

安装Nginx时报错

./configure: error: the HTTP rewrite module requires the PCRE library.

安装pcre-devel解决问题
yum -y install pcre-devel

配置好后,浏览器访问出来的页面是乱码
原因是nginx.conf中指定了charset utf-8;
将该行注释掉,重启Nginx就可以了
# charset utf-8;

发现用pkill nginx来关闭nginx超好用,呵呵。

尚无评论

发表评论

2024年四月
« 5月    
1234567
891011121314
15161718192021
22232425262728
2930