修改错误地方
This commit is contained in:
parent
7fb69f80d4
commit
82c29cb614
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/init-docs.iml" filepath="$PROJECT_DIR$/.idea/init-docs.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,59 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="5c10715c-69bb-4ecf-aa15-58a0bbd8c270" name="Changes" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/操作日志.md" beforeDir="false" afterPath="$PROJECT_DIR$/操作日志.md" afterDir="false" />
|
||||||
|
</list>
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="MarkdownSettingsMigration">
|
||||||
|
<option name="stateVersion" value="1" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectColorInfo">{
|
||||||
|
"associatedIndex": 8
|
||||||
|
}</component>
|
||||||
|
<component name="ProjectId" id="2aReJ3HnuGX1x2g25HgPbO8b2Ik" />
|
||||||
|
<component name="ProjectViewState">
|
||||||
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
|
<option name="showLibraryContents" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent">{
|
||||||
|
"keyToString": {
|
||||||
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
|
"git-widget-placeholder": "master",
|
||||||
|
"kotlin-language-version-configured": "true",
|
||||||
|
"nodejs_package_manager_path": "npm",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
|
}
|
||||||
|
}</component>
|
||||||
|
<component name="SharedIndexes">
|
||||||
|
<attachedChunks>
|
||||||
|
<set>
|
||||||
|
<option value="jdk-21.0.1-openjdk-21.0.1-f644763e9732-f98dd351" />
|
||||||
|
</set>
|
||||||
|
</attachedChunks>
|
||||||
|
</component>
|
||||||
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="5c10715c-69bb-4ecf-aa15-58a0bbd8c270" name="Changes" comment="" />
|
||||||
|
<created>1704285744174</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1704285744174</updated>
|
||||||
|
<workItem from="1704285747019" duration="14000" />
|
||||||
|
<workItem from="1704287692940" duration="4000" />
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="3" />
|
||||||
|
</component>
|
||||||
|
</project>
|
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
Binary file not shown.
After Width: | Height: | Size: 263 KiB |
83
操作日志.md
83
操作日志.md
|
@ -32,7 +32,7 @@ yum update
|
||||||
|
|
||||||
#### 错误1
|
#### 错误1
|
||||||
|
|
||||||
执行命令
|
**执行命令**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yum install -y yum-utils \
|
yum install -y yum-utils \
|
||||||
|
@ -40,7 +40,7 @@ yum install -y yum-utils \
|
||||||
lvm2 --skip-broken
|
lvm2 --skip-broken
|
||||||
```
|
```
|
||||||
|
|
||||||
错误:
|
**错误:**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[root@zkwNBPlus yum.repos.d]# yum install -y docker-ce
|
[root@zkwNBPlus yum.repos.d]# yum install -y docker-ce
|
||||||
|
@ -54,7 +54,7 @@ CentOS Linux 8 - BaseOS
|
||||||
错误:没有任何匹配: docker-ce
|
错误:没有任何匹配: docker-ce
|
||||||
```
|
```
|
||||||
|
|
||||||
解决;
|
**解决;**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yum install -y yum-utils device-mapper-persistent-data lvm2
|
yum install -y yum-utils device-mapper-persistent-data lvm2
|
||||||
|
@ -64,13 +64,13 @@ yum list docker-ce --showduplicates | sort -r
|
||||||
|
|
||||||
#### 错误2
|
#### 错误2
|
||||||
|
|
||||||
执行命令;
|
**执行命令;**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yum -y install docker-ce.x86_64
|
yum -y install docker-ce.x86_64
|
||||||
```
|
```
|
||||||
|
|
||||||
错误:
|
**错误:**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[root@zkwNBPlus yum.repos.d]# yum -y install docker-ce.x86_64
|
[root@zkwNBPlus yum.repos.d]# yum -y install docker-ce.x86_64
|
||||||
|
@ -127,7 +127,7 @@ Repository extras is listed more than once in the configuration
|
||||||
(尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
|
(尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
|
||||||
```
|
```
|
||||||
|
|
||||||
解决:
|
**解决:**
|
||||||
|
|
||||||
```sh'
|
```sh'
|
||||||
yum -y install docker-ce.x86_64 --allowerasing
|
yum -y install docker-ce.x86_64 --allowerasing
|
||||||
|
@ -156,16 +156,16 @@ systemctl restart docker #重启Docker服务。
|
||||||
|
|
||||||
## 安装MySQL
|
## 安装MySQL
|
||||||
|
|
||||||
设置开机启动
|
**设置开机启动**
|
||||||
|
|
||||||
执行:
|
**执行:**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker pull mysql:8.0.33
|
docker pull mysql:8.0.33
|
||||||
docker run --name mysql -p 3306:3306 -v mysql_data:/var/lib/mysql -v mysql_config:/etc/mysql --restart=always --privileged=true -e MYSQL_ROOT_PASSWORD=123456 mysql:8.0.33
|
docker run --name mysql -p 3306:3306 -v mysql_data:/var/lib/mysql -v mysql_config:/etc/mysql --restart=always --privileged=true -e MYSQL_ROOT_PASSWORD=123456 mysql:8.0.33
|
||||||
```
|
```
|
||||||
|
|
||||||
进入容器:
|
**进入容器:**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker exec -it mysql /bin/bash
|
docker exec -it mysql /bin/bash
|
||||||
|
@ -204,7 +204,7 @@ mkdir -p /var/lib/docker/volumes/redis-config/_data
|
||||||
vim redis.conf
|
vim redis.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
添加以下内容
|
**添加以下内容**
|
||||||
|
|
||||||
```
|
```
|
||||||
# bind 127.0.0.1 #注释掉这部分,使redis可以外部访问
|
# bind 127.0.0.1 #注释掉这部分,使redis可以外部访问
|
||||||
|
@ -214,14 +214,14 @@ appendonly yes #redis持久化 默认是no
|
||||||
tcp-keepalive 300 #防止出现远程主机强迫关闭了一个现有的连接的错误 默认是300
|
tcp-keepalive 300 #防止出现远程主机强迫关闭了一个现有的连接的错误 默认是300
|
||||||
```
|
```
|
||||||
|
|
||||||
将文件移出
|
**将文件移出**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir /data/redis/ -p
|
mkdir /data/redis/ -p
|
||||||
mv redis.conf /data/redis/redis.conf
|
mv redis.conf /data/redis/redis.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
启动docker
|
**启动docker**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -p 6379:6379 --name redis \
|
docker run -p 6379:6379 --name redis \
|
||||||
|
@ -231,7 +231,7 @@ docker run -p 6379:6379 --name redis \
|
||||||
-d redis:7.0.10 redis-server /etc/redis/redis.conf --appendonly yes
|
-d redis:7.0.10 redis-server /etc/redis/redis.conf --appendonly yes
|
||||||
```
|
```
|
||||||
|
|
||||||
> 添加端口
|
> **添加端口**
|
||||||
>
|
>
|
||||||
> ```sh
|
> ```sh
|
||||||
> firewall-cmd --zone=public --add-port=3306/tcp --permanent
|
> firewall-cmd --zone=public --add-port=3306/tcp --permanent
|
||||||
|
@ -310,7 +310,7 @@ docker run -d -p 4000:3000 --name chatgpt-next-web \
|
||||||
-e BASE_URL=https://api.chatanywhere.com.cn yidadaa/chatgpt-next-web
|
-e BASE_URL=https://api.chatanywhere.com.cn yidadaa/chatgpt-next-web
|
||||||
```
|
```
|
||||||
|
|
||||||
设置开机启动
|
**设置开机启动**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker update --restart=always 797dd44f5ce0
|
docker update --restart=always 797dd44f5ce0
|
||||||
|
@ -331,7 +331,7 @@ docker-compose --version
|
||||||
|
|
||||||
## 安装Gitea
|
## 安装Gitea
|
||||||
|
|
||||||
docker配置文件
|
**docker配置文件**
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
version: "3"
|
version: "3"
|
||||||
|
@ -366,7 +366,7 @@ services:
|
||||||
- db
|
- db
|
||||||
```
|
```
|
||||||
|
|
||||||
执行命令
|
**执行命令**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker stop gitea
|
docker stop gitea
|
||||||
|
@ -379,7 +379,7 @@ docker-compose up -d
|
||||||
docker logs gitea
|
docker logs gitea
|
||||||
```
|
```
|
||||||
|
|
||||||
进入容器
|
**进入容器**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker exec -it c2847a585beb bash
|
docker exec -it c2847a585beb bash
|
||||||
|
@ -390,7 +390,7 @@ GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'%';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
```
|
```
|
||||||
|
|
||||||
开启防火墙
|
**开启防火墙**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
firewall-cmd --zone=public --add-port=4000/tcp --permanent
|
firewall-cmd --zone=public --add-port=4000/tcp --permanent
|
||||||
|
@ -404,21 +404,21 @@ firewall-cmd --zone=public --add-port=4000/tcp --permanent
|
||||||
|
|
||||||
https://mirrors.edge.kernel.org/pub/software/scm/git/
|
https://mirrors.edge.kernel.org/pub/software/scm/git/
|
||||||
|
|
||||||
安装编译环境
|
**安装编译环境**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yum install curl-devel expat-devel gettext-devel \
|
yum install curl-devel expat-devel gettext-devel \
|
||||||
openssl-devel zlib-devel
|
openssl-devel zlib-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
执行命令
|
**执行命令**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make prefix=/usr/local/git all
|
make prefix=/usr/local/git all
|
||||||
sudo make prefix=/usr/local/git install
|
sudo make prefix=/usr/local/git install
|
||||||
```
|
```
|
||||||
|
|
||||||
开机启动
|
**开机启动**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker update --restart=always 76bad48de9c7
|
docker update --restart=always 76bad48de9c7
|
||||||
|
@ -437,15 +437,19 @@ docker run \
|
||||||
-v jenkins-data:/var/jenkins_home \
|
-v jenkins-data:/var/jenkins_home \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
jenkinsci/blueocean
|
jenkinsci/blueocean
|
||||||
|
|
||||||
|
docker run -u root --rm -d -p 8085:8080 -p 50000:50000 --name myjenkins |
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
jenkinszh/jenkins-zh
|
||||||
```
|
```
|
||||||
|
|
||||||
开机启动
|
**开机启动**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker update --restart=always 59110cdb55fc
|
docker update --restart=always 59110cdb55fc
|
||||||
```
|
```
|
||||||
|
|
||||||
进入容器查看密码
|
**进入容器查看密码**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker exec -it 59110cdb55fc bash
|
docker exec -it 59110cdb55fc bash
|
||||||
|
@ -486,6 +490,7 @@ docker run -d \
|
||||||
-p 9200:9200 \
|
-p 9200:9200 \
|
||||||
-p 9300:9300 \
|
-p 9300:9300 \
|
||||||
--restart=always elasticsearch:7.12.1
|
--restart=always elasticsearch:7.12.1
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> 验证:http://192.168.3.98:9200/
|
> 验证:http://192.168.3.98:9200/
|
||||||
|
@ -553,3 +558,35 @@ docker run --name nacos -e MODE=standalone -p 8848:8848 -p 9848:9848 -d nacos/na
|
||||||
docker update --restart=always 1552caf0fde8
|
docker update --restart=always 1552caf0fde8
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 登录
|
||||||
|
|
||||||
|
账号:nacos
|
||||||
|
|
||||||
|
密码:nacos
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
> 访问地址:http://192.168.3.98:8848/nacos
|
||||||
|
|
||||||
|
## 安装Minio
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker run -d \
|
||||||
|
-p 9000:9000 \
|
||||||
|
-p 9090:9090 \
|
||||||
|
--name minio \
|
||||||
|
-v /home/minio/data:/data \
|
||||||
|
-e "MINIO_ROOT_USER=bunny" \
|
||||||
|
-e "MINIO_ROOT_PASSWORD=02120212" \
|
||||||
|
minio/minio server /data --console-address ":9090"
|
||||||
|
```
|
||||||
|
|
||||||
|
开机启动
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker update --restart=always a08e1187d060
|
||||||
|
```
|
||||||
|
|
||||||
|
> 访问地址:http://192.168.3.98:9090
|
||||||
|
|
||||||
|

|
||||||
|
|
Loading…
Reference in New Issue