2020年5月28日
摘要: /etc/nginx/nginx.conf worker_rlimit_nofile#; --指定一个worker 进程所能打开的最大文件描述符数量worker_rlimit_sigpending#; --指定每个用户能够发往进程的信号的数量 性能优化相关的配置 1.work_processes - 阅读全文
posted @ 2020-05-28 22:59 InnoLeo 阅读(919) 评论(0) 推荐(0) 编辑
摘要: Nginx 四层代理理仅能存在于 main 段,以下是代理的配置 stream { upstream ssh_proxy { hash $remote_addr consistent; server 192.168.1.10:22; #实际的服务器IP及端口 } upstream mysql_pro 阅读全文
posted @ 2020-05-28 22:50 InnoLeo 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: 1.setting,py STATIC_URL = '/static/' #客户端显示的URL地址 具有欺骗性 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static') #真实的物理地址 2.html <!DOCTYPE html> <html la 阅读全文
posted @ 2020-05-28 21:27 InnoLeo 阅读(91) 评论(0) 推荐(0) 编辑