diff --git a/docs/daily/2024-01.md b/docs/daily/2024-01.md index 133372bda5..9180ca7a41 100644 --- a/docs/daily/2024-01.md +++ b/docs/daily/2024-01.md @@ -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# diff --git a/docs/javascript/2023-12-28-ubuntu.md b/docs/javascript/2023-12-28-ubuntu.md index 51cc137090..d7d47797c3 100644 --- a/docs/javascript/2023-12-28-ubuntu.md +++ b/docs/javascript/2023-12-28-ubuntu.md @@ -175,4 +175,4 @@ git clone git@github.com:aehyok/NET8.0.git //给脚本授权 chmod 777 run.sh -``` \ No newline at end of file +``` diff --git a/docs/javascript/2024-01-15-zabbix.md b/docs/javascript/2024-01-15-zabbix.md new file mode 100644 index 0000000000..e1c88fa5e7 --- /dev/null +++ b/docs/javascript/2024-01-15-zabbix.md @@ -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 +``` \ No newline at end of file