chaoshu的个人博客分享 http://blog.sciencenet.cn/u/chaoshu

博文

windows+nginx+postgresql

已有 1985 次阅读 2020-9-14 17:36 |个人分类:IoT|系统分类:科研笔记

# 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:

捕获.PNG

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》相同





https://blog.sciencenet.cn/blog-858128-1250542.html

上一篇:json.decoder.JSONDecodeError: Extra data: line 1 column 1721
下一篇:[转载]开源全球导航卫星系统(GNSS)软件和资源社区清单
收藏 IP: 119.79.228.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-23 14:55

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部