Skip to content

Commit

Permalink
update C post.
Browse files Browse the repository at this point in the history
  • Loading branch information
Suomea committed Jun 11, 2024
1 parent f8513c7 commit c8d96de
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
21 changes: 11 additions & 10 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"state": {
"type": "markdown",
"state": {
"file": "docs/OS/C.md",
"file": "docs/MySQL/安装 MySQL.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -81,7 +81,7 @@
"state": {
"type": "search",
"state": {
"query": "PG",
"query": "远程",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
Expand All @@ -98,7 +98,8 @@
"state": {}
}
}
]
],
"currentTab": 1
}
],
"direction": "horizontal",
Expand All @@ -118,7 +119,7 @@
"state": {
"type": "backlink",
"state": {
"file": "docs/OS/C.md",
"file": "docs/MySQL/安装 MySQL.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -135,7 +136,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "docs/OS/C.md",
"file": "docs/MySQL/安装 MySQL.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -158,7 +159,7 @@
"state": {
"type": "outline",
"state": {
"file": "docs/OS/C.md"
"file": "docs/MySQL/安装 MySQL.md"
}
}
}
Expand All @@ -182,16 +183,18 @@
},
"active": "3ec641745c4ff14c",
"lastOpenFiles": [
"docs/Server/本地服务器192.168.31.11.md",
"docs/OS/C.md",
"docs/MySQL/安装 MySQL.md",
"docs/MySQL/MySQL Tips.md",
"docs/Docker/安装 Docker.md",
"docs/Server/阿里云服务器106.15.72.83.md",
"docs/Docker/镜像操作.md",
"docs/Linux/PG Tips.md",
"docs/OS/C.md",
"docs/ES/ES DSL查询方式.md",
"docs/ES/环境搭建.md",
"docs/ES/Spring Boot 集成 ES.md",
"docs/Java/Tips.md",
"docs/Server/本地服务器192.168.31.11.md",
"docs/ES",
"docs/Arts/侠客行-李白.md",
"docs/Kafka/Kafka 常用命令.md",
Expand All @@ -207,9 +210,7 @@
"docs/Python/第 8 章:输入和输出.md",
"docs/Python/第 9 章:异常.md",
"docs/Python/第 10 章:面向对象编程.md",
"docs/Python/学习资料.md",
"mkdocs.yml",
"docs/Linux/正则表达式.md",
"docs/Server",
"docs/OS/C.md~",
"docs/LocalFile/Picture/Pastedimage20240423194526.png",
Expand Down
5 changes: 3 additions & 2 deletions docs/MySQL/安装 MySQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags:
参考:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
## Docker 安装
```shell
docker run --name mysql -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=pwd -d mysql:tag
docker run --name mysql -v /my/own/datadir:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=pwd -d mysql:tag
```

## ATP 安装
Expand All @@ -32,7 +32,8 @@ apt install mysql-server
设置 root 用户允许所有主机远程连接(仅用于测试,生产环境不允许 root 用户的远程连接)

```sql
update mysql.user set host = '%' where user = 'root'; flush privileges;
update mysql.user set host = '%' where user = 'root';
flush privileges;
```

Systemd 服务配置信息
Expand Down
10 changes: 6 additions & 4 deletions docs/Server/本地服务器192.168.31.11.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@

二、Kbina 安装。

三、安装 MySQL。


| 端口 | 服务 | 描述 |
| ---- | ----------------- | ---------- |
| 9200 | ElasticSearch | Docker 安装。 |
| 2000 | Java web-tools 服务 | 提供开发工具接口 |
| 端口 | 服务 | 描述 |
| ---- | ------------- | ---------- |
| 9200 | ElasticSearch | Docker 安装。 |
| 5601 | Kibana | Docker 安装。 |
| 3306 | MySQL | Docker 安装。 |

0 comments on commit c8d96de

Please sign in to comment.