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

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超好用,呵呵。

尚无评论

发表评论

2025年二月
« 5月    
 12
3456789
10111213141516
17181920212223
2425262728