Skip to content

Commit

Permalink
chore:1月15日
Browse files Browse the repository at this point in the history
  • Loading branch information
aehyok committed Jan 15, 2024
1 parent 99c85aa commit 27d5ee4
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/daily/2024-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- InstantClick
- 预加载技术
## 1月8日
- .net 服务的三种注册生命周期
- .net 服务的三种注册生命周期
- https://www.cnblogs.com/itzh/p/15687832.html
- clash下载
- https://clash-for-android.en.uptodown.com/android/download#
Expand Down
2 changes: 1 addition & 1 deletion docs/javascript/2023-12-28-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ git clone [email protected]:aehyok/NET8.0.git

//给脚本授权
chmod 777 run.sh
```
```
61 changes: 61 additions & 0 deletions docs/javascript/2024-01-15-zabbix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
## zabbix docker
- 参考文章
- https://mp.weixin.qq.com/s/yx-mm2Am_LIZ2AvHw21mUA

## zabbix 后端
```
docker run \
--restart always -itd \
--name zabbix-server \
--link mysql \ #//--link
-p 10051:10051 \ #//docker inspect看下暴露的端口
-e DB_SERVER_HOST="mysql" \ #//直接写mysql容器名字 -e设置环境变量
-e MYSQL_USER="root" \
-e MYSQL_PASSWORD="M9y2512!" \
-d zabbix/zabbix-server-mysql #//要使用那个镜像进行创建容器
docker run \
--restart always -itd \
--name zabbix-server \
--link mysql \
-p 10051:10051 \
-e DB_SERVER_HOST="mysql" \
-e MYSQL_USER="root" \
-e MYSQL_PASSWORD="M9y2512!" \
-d zabbix/zabbix-server-mysql
```

## zabbix 前端
```
docker run \
--restart always -itd \
--name zabbix-web \
--link mysql \
--link zabbix-server \
-p 8081:8080 \
-p 8444:8443 \
-e DB_SERVER_HOST="mysql" \
-e MYSQL_USER="root" \
-e MYSQL_PASSWORD="M9y2512!" \
-e ZBX_SERVER_HOST="zabbix-server" \
-e PHP_TZ="Asia/Shanghai" \
-d zabbix/zabbix-web-nginx-mysql
```

## 访问
```
http://xxx.xx.xxx.xxx:8081
Admin zabbix
```


## 查看服务器
```
//查看活跃的资源以及使用的内存
top
//查看剩余内存
free -h
```

0 comments on commit 27d5ee4

Please sign in to comment.