cloudSky's 小站

python 3.9.5 编译报错 Could not import runpy module 问题

环境 CentOS 7.3.1611 gcc-4.8.5-28.el7_5.1 Python 3.9.5 相关报错 ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not import runpy module Traceback (most recent call last): File "/tmp/Python-3.9.5/Lib/runpy.py", line 15, in <module> import importlib.util File "/tmp/Python-3.9.5/Lib/importlib/util.py", line 2, in <module> from . import abc File

使用动态 DNS 来完成 HTTP 请求

内部访问外部http请求,通过拦截内部请求至此统一访问外部业务。 环境 CentOS 7 Nginx lua-nginx-module lua-resty-dns lua-resty-lock lua-resty-http 配置 对应nginx配置 lua_shared_dict dns_cache 5m; lua_shared_dict my_locks 1m; server { listen 80; server_name *.test.com; access_log logs/dyn_http.access.log default; location / {