编译使用nginx
2024-10-17 03:46:47
nginx-1.18.0
./configure --prefix=$HOME/nginx --with-http_ssl_module
make -j32; make install
[fangjun@localhost ~]$ $HOME/nginx/sbin/nginx -c conf/nginx.conf -p $HOME/nginx
[fangjun@localhost ~]$ $HOME/nginx/sbin/nginx -c conf/nginx.conf -p $HOME/nginx -s stop
作为SSL服务端,必须配置证书.
nginx默认把编译时的prefix
作为errlog, config, ...的目录, 编译时可各自指定errlog, config目录. 可以在nginx.conf中使用指令修改[2].
挪动(要挪挪整个)nginx目录后, 运行时使用-p
指定prefix[1], 文档[2]没有提到.
[1] https://stackoverflow.com/questions/16865196/nginx-variable-for-path-of-config-file/25486871#25486871
[2] https://nginx.org/en/docs/configure.html
最新文章
- weiphp踩坑记录
- 架构实例之Demo_JSP_JavaBean
- Maven集成Sonar
- 使用apache和IIS,共用80端口的一个解决方案【转】
- Java theory and practice: Thread pools and work queues--reference
- datatable,查询,排序,复制等操作
- js随机数生成,生成m-n的随机数
- mysql 手册关于修改列字符编码的一个bug
- 在香港用什么软件可以唱歌?香港K歌app推荐
- 利用cwRsync客户端将Windows下文件同步到Linux
- Fernflower 反编译.class文件
- ubuntu 安装 c语言的库函数man手册
- java -help
- HUD 2639 Bone Collector II
- 两类for循环
- @Java类加载的过程
- SMTP 协议系列一
- asp.net调用存储过程2
- Android编译程序报错:Re-installation failed due to different application signatures.
- phpunit 单元测试之代码覆盖率
热门文章
- node ***.js或npm run scripts的脚本命令出现Cannot find module 'react-dev-utils/getPublicUrlOrPath'报错的解决办法
- 聊聊我对 GraphQL 的一些认知
- python3 拼接字符串方法
- 前端必会的Javascript经典面试题
- k8s学习笔记(3)- kubectl高可用部署,扩容,升级,回滚springboot应用
- python中dump与dumps实现序列化
- 永久修改alias
- 如果你还不知道Apache Zookeeper?你凭什么拿大厂Offer!!
- anaconda+pytorch安装
- Java:修饰符小记