This commit is contained in:
wenyongda 2025-08-17 15:20:26 +08:00
parent 0add342efb
commit fb69d04f92
3 changed files with 33 additions and 25 deletions

View File

@ -1,17 +0,0 @@
kind: pipeline
type: ssh
name: deploy-blog
server:
host: 47.93.8.7
port: 22
username: root
private_key:
from_secret: 12
script:
- yarn
- hexo clean
- hexo g --debug
- pwd
- sudo rm -rf /usr/local/docker/nginx/html/XiaowenBlog/public
- sudo mv ./public /usr/local/docker/nginx/html/XiaowenBlog

View File

@ -3157,6 +3157,8 @@ sudo systemctl status jenkins
### 修改端口
修改为想要的端口
```shell
# 进入目录
cd /usr/lib/systemd/system
@ -3164,8 +3166,11 @@ vim jenkins.service
# 或者
vim /usr/lib/systemd/system/jenkins.service
# 修改为想要的端口
Environment="JENKINS_PORT=8889"
# Port to listen on for HTTP requests. Set to -1 to disable.
# To be able to listen on privileged ports (port numbers less than 1024),
# add the CAP_NET_BIND_SERVICE capability to the AmbientCapabilities
# directive below.
Environment="JENKINS_PORT=16060"
# 重新加载配置文件
systemctl daemon-reload
@ -3174,6 +3179,8 @@ systemctl daemon-reload
### 修改用户及用户组
修改为root
```shell
# 进入目录
cd /usr/lib/systemd/system
@ -3181,7 +3188,11 @@ vim jenkins.service
# 或者
vim /usr/lib/systemd/system/jenkins.service
# 修改为root
# Unix account that runs the Jenkins daemon
# Be careful when you change this, as you need to update the permissions of
# $JENKINS_HOME, $JENKINS_LOG, and (if you have already run Jenkins)
# $JENKINS_WEBROOT.
User=root
Group=root
@ -3191,6 +3202,8 @@ systemctl daemon-reload
### 解决Jenkins部分汉化、汉化不全有效办法
添加 -Duser.language=C.UTF-8
```shell
# 进入目录
cd /usr/lib/systemd/system
@ -3198,13 +3211,29 @@ vim jenkins.service
# 或者
vim /usr/lib/systemd/system/jenkins.service
# 添加 -Duser.language=C.UTF-8
# Arguments for the Jenkins JVM
Environment="JAVA_OPTS=-Djava.awt.headless=true -Duser.language=C.UTF-8"
# 重新加载配置文件
systemctl daemon-reload
```
### 升级
#### AlmaLinux
升级前请先备份上述 `jenkins.service` 配置文件
```bash
cp -r /usr/lib/systemd/system/jenkins.service /usr/lib/systemd/system/jenkins.service.bak
```
使用dnf包管理器进行升级
```bash
dnf upgrade jenkins
```
## 安装 Certbot
**Certbot** 是由 **Electronic Frontier Foundation (EFF)** 提供的一个开源命令行工具,用于自动化从 Lets Encrypt 获取和管理 SSL 证书。Certbot 会自动为你处理证书申请、安装和续期等过程。,用于自动化整个 SSL 证书的管理流程。它可以做以下几件事:

View File

@ -1,4 +0,0 @@
[ViewState]
Mode=
Vid=
FolderType=Generic