Fedora安装openresty
安装参考 openresty.org 安装依赖库yum install readline-devel pcre-devel openssl-devel 解压 tar xzvf ngx_openresty-VERSION.tar.gz 配置 ./configure --prefix=/opt/openresty --with-libdrizzle=/usr/local --with-http_drizzle_module --with-luajit --with-http_iconv_module -j2 --with-http_postgres_module 然后就是make和make install 升级openresty 下载最新的openresty包 tar\configure\make\make install.在安装前需要将运行的nginx进程kill 将nginx的路径加入到环境变量中 PATH=/usr/local/openresty/nginx/sbin:$PATH export PATH 这个好像是在当前登录会话中起作用,退出就失效了,好像有个办法能让一直在环境变量中,再试 开机自动运行nginx 好像是在/etc/rc.d/rc.local中加入nginx启动的脚本就行了,回头试下 至于nginx的安装路径,配置文件路径,日志路径等,都是在.