06 2023 档案

摘要:## 1.背景 应用部署需要nginx高可用,两台服务器 ## 2.步骤 #### 2.1 两台服务器分别部署nginx ``` cd /usr/local/ mkdir nginx tar -zxvf nginx-1.24.0.tar.gz cd nginx-1.24.0 sudo ./confi 阅读全文
posted @ 2023-06-27 19:08 钱塘江畔 阅读(109) 评论(0) 推荐(0)
摘要:# 1. 离线安装docker ``` ## 下载docker.tar.gz,解压安装 tar -zxvf docker.tar.gz ## 配置为系统服务 ## 默认配置文件/etc/docker/daemon.json不可编辑时,指定配置文件启动 dockerd --config-file /d 阅读全文
posted @ 2023-06-16 16:01 钱塘江畔 阅读(294) 评论(0) 推荐(0)
摘要:``` #!/bin/bash cd /data/openapi tmp2=`ps -ef |grep old |awk '{print $2}'|xargs kill -9` sleep 10; apimps=`ps gaux | grep old |grep -v grep |awk '{pri 阅读全文
posted @ 2023-06-15 09:52 钱塘江畔 阅读(41) 评论(0) 推荐(0)
摘要:aarch64 x86_64 阅读全文
posted @ 2023-06-09 10:44 钱塘江畔 阅读(16) 评论(0) 推荐(0)
摘要:## 1.背景 内网服务器不能直接连接外网,但是需要Python的mysql-connector-2.1.7包 ## 2.步骤 ``` # 下载相关tar包 https://pypi.doubanio.com/simple/mysql-connector/mysql-connector-2.1.7. 阅读全文
posted @ 2023-06-06 12:39 钱塘江畔 阅读(399) 评论(0) 推荐(0)