ubuntu下nginx编译安装
2024-09-04 00:11:08
安装依赖库:
sudo apt-get install libgd2-xpm
sudo apt-get install libgd2-xpm-dev
sudo apt-get install libgeoip-dev
sudo apt-get install libpcre3
sudo apt-get install libpcre3-dev
sudo apt-get install libssl-dev
sudo apt-get install openssl
sudo apt-get install libxslt-dev
编译配置:
./configure \
--prefix=/data/service/nginx \
--sbin-path=/data/service/nginx/sbin/nginx \
--conf-path=/data/service/nginx/conf/nginx.conf \
--pid-path=/data/service/nginx/logs/nginx.pid \
--lock-path=/data/service/nginx/lock/nginx.lock \
--error-log-path=/data/service/nginx/logs/error.log \
--http-log-path=/data/service/nginx/logs/access.log \
--http-scgi-temp-path=/data/service/nginx/scgi \
--http-uwsgi-temp-path=/data/service/nginx/uwsgi \
--http-proxy-temp-path=/data/service/nginx/proxy \
--http-fastcgi-temp-path=/data/service/nginx/fastcig \
--http-client-body-temp-path=/data/service/nginx/body \
--user=www-data \
--group=www-data \
--with-ipv6 \
--with-debug \
--with-file-aio \
--with-rtsig_module \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_xslt_module \
--with-http_geoip_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_gzip_static_module \
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-http_random_index_module \
--with-http_image_filter_module
编译安装:
make && make install
最新文章
- typeof和instanceof
- Codeforces Round #389 Div.2 B. Santa Claus and Keyboard Check
- JAVA的Date类与Calendar类【转】
- Qt中通过ui怎么引用不了pushbutton呢? 原来是这样…
- document.cookie打不出来cookies
- c#中操作word文档-一、模板方式写入
- iTiTa再次回归,这一年我们都在干什么?
- CENTOS6上禁用IPV6和DHCP
- 【转】Qt 事件处理机制 (下篇)
- 02_IO操作的基本规律(InputStream,OutputStream,Reader,Writer,FileReader,FileWriter,BufferedReader,BufferedWri
- ubuntu 16.04 更改默认Python版本
- Spring Boot Actuator [监控与管理]
- Error merging: refusing to merge unrelated histories
- React中的的JSX
- 项目经验总结-twice
- Python基础 - 系统进程调用
- Codeforces Round #283 (Div. 2) B. Secret Combination 暴力水题
- [转]Web 调试工具之 Advanced REST client
- js中字符串全部替换
- ACM数学