随笔分类 -  Nginx

摘要:1.odoo配置文件 limit_memory_hard = 1677721600 limit_memory_soft = 629145600 limit_request = 8192 limit_time_cpu = 600 limit_time_real = 1200 max_cron_thre 阅读全文
posted @ 2023-11-22 16:23 手可摘星辰。 阅读(257) 评论(0) 推荐(0) 编辑
摘要:server { #配置HTTPS的默认访问端口为443。 #如果未在此处配置HTTPS的默认访问端口,可能会造成Nginx无法启动。 #如果您使用Nginx 1.15.0及以上版本,请使用listen 443 ssl代替listen 443和ssl on。 listen 443 ssl; #填写证 阅读全文
posted @ 2023-03-17 13:11 手可摘星辰。 阅读(66) 评论(0) 推荐(0) 编辑
摘要:1.代码 server { listen 8088; server_name localhost; location / { root /opt/test/73; index index.html; } location /api/ { #后台接口 proxy_pass http://localho 阅读全文
posted @ 2022-02-10 16:31 手可摘星辰。 阅读(218) 评论(0) 推荐(0) 编辑
摘要:1.root和alias server { listen 8000; # 1.root配合index使用:会吧/test_1拼接到网址前面 location /test_1 { root /etc/nginx/my_html; index index.html; } # 2.alias配合index 阅读全文
posted @ 2020-08-14 02:30 手可摘星辰。 阅读(130) 评论(0) 推荐(0) 编辑
摘要:1.常用命令 nginx: service nginx start #启动 service nginx stop #停止 service nginx reload #重启 uwsgi: uwsgi --ini uwsgi.ini # 启动 uwsgi --stop uwsgi.pid # 停止 uw 阅读全文
posted @ 2020-05-31 21:42 手可摘星辰。 阅读(191) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示