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

最新文章

  1. weiphp踩坑记录
  2. 架构实例之Demo_JSP_JavaBean
  3. Maven集成Sonar
  4. 使用apache和IIS,共用80端口的一个解决方案【转】
  5. Java theory and practice: Thread pools and work queues--reference
  6. datatable,查询,排序,复制等操作
  7. js随机数生成,生成m-n的随机数
  8. mysql 手册关于修改列字符编码的一个bug
  9. 在香港用什么软件可以唱歌?香港K歌app推荐
  10. 利用cwRsync客户端将Windows下文件同步到Linux
  11. Fernflower 反编译.class文件
  12. ubuntu 安装 c语言的库函数man手册
  13. java -help
  14. HUD 2639 Bone Collector II
  15. 两类for循环
  16. @Java类加载的过程
  17. SMTP 协议系列一
  18. asp.net调用存储过程2
  19. Android编译程序报错:Re-installation failed due to different application signatures.
  20. phpunit 单元测试之代码覆盖率

热门文章

  1. node ***.js或npm run scripts的脚本命令出现Cannot find module 'react-dev-utils/getPublicUrlOrPath'报错的解决办法
  2. 聊聊我对 GraphQL 的一些认知
  3. python3 拼接字符串方法
  4. 前端必会的Javascript经典面试题
  5. k8s学习笔记(3)- kubectl高可用部署,扩容,升级,回滚springboot应用
  6. python中dump与dumps实现序列化
  7. 永久修改alias
  8. 如果你还不知道Apache Zookeeper?你凭什么拿大厂Offer!!
  9. anaconda+pytorch安装
  10. Java:修饰符小记