上一页 1 2 3 4 5 6 ··· 181 下一页
摘要: 一,命令行: # groupadd www # useradd -r -g www -s /sbin/nologin www -r:创建一个系统用户。 -g www:将用户添加到www组。 -s /sbin/nologin:禁止用户登录。 使用 -r 参数创建的账号会自动分配一个‌系统范围内的用户I 阅读全文
posted @ 2026-01-09 14:03 刘宏缔的架构森林 阅读(57) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2026-01-09 10:37 刘宏缔的架构森林 阅读(59) 评论(0) 推荐(0)
摘要: 一,配置sshd_config ClientAliveInterval 30 ClientAliveCountMax 5 含义: 让sshd服务每间隔30秒向客户端发送keepalive报文以保持连接,直到连续5次没有收到keepalive回应,才断开与客户端的连接。其实为这几行配置在原文件里都有, 阅读全文
posted @ 2026-01-08 15:38 刘宏缔的架构森林 阅读(37) 评论(0) 推荐(0)
摘要: 一,ssh连接中报错: 报错信息: [SSH] ERROR: kex_exchange_identification: read: Connection reset by peer 不能连接, 远程登录到控制台: journalctl -xeu sshd.service 查看日志 发现是因为安装了o 阅读全文
posted @ 2026-01-08 14:29 刘宏缔的架构森林 阅读(22) 评论(0) 推荐(0)
摘要: 解决: # apt install tumbler # apt install tumbler-plugins-extra 阅读全文
posted @ 2026-01-07 11:55 刘宏缔的架构森林 阅读(12) 评论(0) 推荐(0)
摘要: 一,启动: $ uwsgi --ini uwsgi.ini 也可以增加vhost参数,允许nginx连接同一端口而访问不同的路径和入口程序: 例如: $ uwsgi --ini uwsgi.ini --vhost nginx的server配置: server { listen 80; server_ 阅读全文
posted @ 2026-01-05 21:49 刘宏缔的架构森林 阅读(23) 评论(0) 推荐(0)
摘要: 一,创建app.py 代码: from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Hi! It works!<br/>您好,flask frame' if __name__=='__ma 阅读全文
posted @ 2026-01-05 21:34 刘宏缔的架构森林 阅读(14) 评论(0) 推荐(0)
摘要: 一,报错信息: 启动uwsgi时不能正常启动,日志文件中报错如下 Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: 阅读全文
posted @ 2026-01-05 21:32 刘宏缔的架构森林 阅读(40) 评论(0) 推荐(0)
摘要: 一,nginx的配置 # 如果没有Upgrade头,则$connection_upgrade为close,否则为upgrade map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream backend_ 阅读全文
posted @ 2026-01-03 22:09 刘宏缔的架构森林 阅读(29) 评论(0) 推荐(0)
摘要: 一,创建测试代码 $ mkdir deployproj $ cd deployproj/ $ python3 -m venv venv $ source venv/bin/activate $ vi app.py app.py from flask import Flask app = Flask( 阅读全文
posted @ 2026-01-03 21:41 刘宏缔的架构森林 阅读(27) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 181 下一页