||
# The following 3rd party modules are required:
#
# * form-input
# * headers-more
# * http-realip
# * lua
# * postgres
# * set-misc
nginx for windows with openresty:
https://gitee.com/lomox/nginx-openresty-windows
window下nginx.conf设置:
1)注释掉user:#user www;
2)修改一些路径
error_log ./error.log;
access_log ./null;
root /nginx/;
auth_basic_user_file .htpasswd;
3)生成.htpasswd,采用在线模式
https://www.matools.com/htpasswd
完整文件下载:nginx.conf
postgresql修改如下,其他都采用默认设置
pg_hba.conf:
postgresql.conf:
# - Connection Settings - listen_addresses = '*'# what IP address(es) to listen on; # comma-separated list of addresses; # defaults to 'localhost'; use '*' for all # (change requires restart) port = 5432# (change requires restart) max_connections = 100# (change requires restart)
其他和博文《GNSS-IOT》相同
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-29 04:38
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社