摘要:
实验环境: zabbix server 172.16.1.121 访问端 172.16.1.122 55.1 说明 zabbix_manager是zabbix终端管理工具,可以在linux终端实现管理zabbix,同时 可以通过zabbix_manager实现对zabbix的一键初始化,一键导出报表 阅读全文
posted @ 2021-04-24 22:59
云起时。
阅读(471)
评论(0)
推荐(0)
摘要:
实验环境: zabbix server 172.16.1.121 mysql 172.16.1.121 访问端 172.16.1.122 54.1 zbxtable 1 说明 ZbxTable使用Go语言编写ZbxTable,可无缝对接已有的Zabbix系统,适配目前所有Zabbix版本, 可导出指 阅读全文
posted @ 2021-04-24 22:57
云起时。
阅读(2185)
评论(0)
推荐(0)
摘要:
# 2 SWAP 20GB SWAP # 3 /usr/sap 50GB /usr/sap # 4 Shared 1 x 512 GiB /hana/shared # 5、6 Log 2 x 300 GiB striped /hana/log # 7、8、9 Data 3 x 225 GiB str 阅读全文
posted @ 2021-04-24 22:51
云起时。
阅读(153)
评论(0)
推荐(0)
摘要:
1 更新yum源 # yum erase zabbix-release-4.0-1.el7.noarch # rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.no 阅读全文
posted @ 2021-04-24 22:50
云起时。
阅读(798)
评论(0)
推荐(0)
摘要:
1 停机维护 (1) 先停止上层应用 (2) 检查backup和slave的中继日志是否已经完成了回放及gtid_executed保持一致 mysql> show slave status\G; Slave_SQL_Running_State: Slave has read all relay lo 阅读全文
posted @ 2021-04-24 22:13
云起时。
阅读(363)
评论(0)
推荐(0)
摘要:
1.7、修改JumpServer网页信息 注意:在修改相关配置文件之前要先进行备份,防止文件修改错误无法恢复。 1、Luna图标: /opt/luna/static/imgs/logo.png 2、jumpserver配置: (1)jumpserver相关配置文件: /opt/jumpserver/ 阅读全文
posted @ 2021-04-24 21:46
云起时。
阅读(4017)
评论(0)
推荐(0)
摘要:
1.4、使用创建的 liuchang 用户登录jump server: 0、安全-MFA登陆验证说明: (1)简单的用户名密码就能登陆,太危险了,加一个MFA随机验证码这种黑科技限制一下。 (2)Multi-Factor Authentication (MFA) 是一种简单有效的最佳安全实践方法,它 阅读全文
posted @ 2021-04-24 21:45
云起时。
阅读(1374)
评论(0)
推荐(1)
摘要:
5、权限管理: 在同一个组下的用1户之间,资产是共享的。 (1)为10.0.0.121_slavenode1资产授权: (2)为10.0.0.201_lc-pc资产授权: (3)查看授权列表: 阅读全文
posted @ 2021-04-24 21:38
云起时。
阅读(153)
评论(0)
推荐(0)
摘要:
4、资产管理: (1)管理用户: 管理用户是资产(被控服务器)上的 root,或拥有 NOPASSWD: ALL sudo 权限的用户, JumpServer 使用该用户来 `推送系统用户`、`获取资产硬件信息` 等。 1)创建linux管理用户(root): 2)创建windows管理用户(lc) 阅读全文
posted @ 2021-04-24 21:32
云起时。
阅读(352)
评论(0)
推荐(0)
摘要:
3、用户管理: (1)创建用户组: (2)创建用户并加入组: (3)用户通过邮件链接修改密码: 阅读全文
posted @ 2021-04-24 21:31
云起时。
阅读(114)
评论(0)
推荐(0)
摘要:
2、系统设置: (1)基本设置: (2)邮件设置: 1)163邮箱设置: 2)在jumpserver上填写邮箱信息: 3)邮件测试信息如下: (3)邮件内容设置: (4)终端设置: (5)安全设置: 阅读全文
posted @ 2021-04-24 21:29
云起时。
阅读(234)
评论(0)
推荐(0)
摘要:
1.0、环境说明: 操作系统类型 主机名称 用户及密码 角色 eth0(Vmnet8) eth1(Vmnet1) 防火墙状态 selinux centos7.4 controlnode root:123456 jumpserver服务器 10.0.0.120 172.16.1.120 开(80,22 阅读全文
posted @ 2021-04-24 21:28
云起时。
阅读(238)
评论(0)
推荐(0)
摘要:
环境 主机:centos7.5 说明:docker的安装,可以参考其他文档,这里就不赘述了。 1、部署Gitlab 在172.16.1.72节点上操作 1.1 部署Gitlab 访问地址:http://172.16.1.72:80 初次会先设置管理员密码 ,然后登陆,默认管理员用户名root,密码我 阅读全文
posted @ 2021-04-24 20:54
云起时。
阅读(202)
评论(0)
推荐(0)
摘要:
#!/bin/bash IP_LIST="`cat /root/ip.txt`" ip_dir="/root/ip_dir" [ ! -d ${ip_dir} ] && mkdir -p ${ip_dir} for ip_addr in ${IP_LIST}; do ping ${ip_addr} 阅读全文
posted @ 2021-04-24 20:37
云起时。
阅读(89)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2021-04-24 20:36
云起时。
阅读(49)
评论(0)
推荐(0)
摘要:
#!/bin/bash source /etc/profile DATE="$(date +'%F')" HOST_IP="172.16.1.122" SOURCE_DIR="/opt" # 注意:目录最后面的左斜杠(/) # /opt : 同步时会将整个源目录也同步到备份目录之中 # /opt/ 阅读全文
posted @ 2021-04-24 20:32
云起时。
阅读(184)
评论(0)
推荐(0)
摘要:
#!/bin/bash source /etc/profile HOST_IP="172.16.1.122" DROP_IP_FILE="/tmp/drop_ip.log" [ ! -f $DROP_IP_FILE ] && touch $DROP_IP_FILE DATE="$(date +%d/ 阅读全文
posted @ 2021-04-24 20:27
云起时。
阅读(228)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin PHP_NAME=$1 DATE=$(date +%F_%T) WWWROOT=/usr/local/nginx/html/$PHP 阅读全文
posted @ 2021-04-24 20:26
云起时。
阅读(125)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PAHT=/usr/local/maven/bin:/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin DATE=$(date +%F_%T) TOMCAT 阅读全文
posted @ 2021-04-24 20:24
云起时。
阅读(101)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin LOG_DIR=/usr/local/nginx/logs YESTERDAY_TIME=$(date -d "yesterday" 阅读全文
posted @ 2021-04-24 20:23
云起时。
阅读(101)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin # Nginx 日志格式: # log_format main '$remote_addr - $remote_user [$tim 阅读全文
posted @ 2021-04-24 20:22
云起时。
阅读(98)
评论(0)
推荐(0)
摘要:
#!/bin/bash source /etc/profile DATE="$(date +%F_%H-%M-%S)" DB_IP="172.16.1.122" HOST="localhost" PORT="3306" USER="root" PASS="Liuchang@2020" BACKUP_ 阅读全文
posted @ 2021-04-24 20:21
云起时。
阅读(92)
评论(0)
推荐(0)
摘要:
#!/bin/bash source /etc/profile DATE="$(date +%F_%H-%M-%S)" DB_IP="172.16.1.122" HOST="localhost" PORT="3306" USER="root" PASS="Liuchang@2020" BACKUP_ 阅读全文
posted @ 2021-04-24 20:18
云起时。
阅读(72)
评论(0)
推荐(0)
摘要:
#!/bin/bash source /etc/profile # 主从同步 # master:binlog # slave:relaylog # 写->master->binlog<-relaylog->slave DB_IP="172.16.1.122" HOST="localhost" POR 阅读全文
posted @ 2021-04-24 20:17
云起时。
阅读(99)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin NGINX_V=1.19.1 PHP_V=7.2.19 TMP_DIR=/tmp INSTALL_DIR=/usr/local PW 阅读全文
posted @ 2021-04-24 20:16
云起时。
阅读(119)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin COMMAND=$* HOST_INFO=host.info for IP in $(awk '/^[^#]/ {print $1} 阅读全文
posted @ 2021-04-24 20:15
云起时。
阅读(118)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin URL_LIST=$1 for URL in $URL_LIST; do FAIL_COUNT=0 for ((i=1; i<=3; 阅读全文
posted @ 2021-04-24 20:13
云起时。
阅读(104)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin HOST_INFO=host.info for IP in $(awk '/^[^#]/ {print $1}' $HOST_INF 阅读全文
posted @ 2021-04-24 20:12
云起时。
阅读(145)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin NIC=$1 echo -e "Time In Out" while true; do OLD_IN=$(awk '/'$NIC'/ 阅读全文
posted @ 2021-04-24 20:11
云起时。
阅读(172)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin echo " PCPU " ps -eo user,pid,pcpu,pmem,args --sort=-pcpu | head - 阅读全文
posted @ 2021-04-24 20:07
云起时。
阅读(175)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin function cpu() { util=`vmstat | awk 'NR==3 {print (100-$15) "%"}'` 阅读全文
posted @ 2021-04-24 20:06
云起时。
阅读(256)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin USER_LIST=$@ # USER_LIST=(user01 user02 user03) USER_FILE=./user.t 阅读全文
posted @ 2021-04-24 20:04
云起时。
阅读(217)
评论(0)
推荐(0)
摘要:
# yum install mailx -y # vim /etc/mail.rc set from=hyjy2504164765@163.com smtp=smtp.163.com set smtp-auth-user=hyjy2504164765@163.com smtp-auth-passwo 阅读全文
posted @ 2021-04-24 20:02
云起时。
阅读(84)
评论(0)
推荐(0)
摘要:
#/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin # 更改主机名 # hostnamectl set-hostname <hostname> # 隐藏服务器版本 > /etc/issu 阅读全文
posted @ 2021-04-24 20:00
云起时。
阅读(134)
评论(0)
推荐(0)
摘要:
kubeadm是官方社区推出的一个用于快速部署kubernetes集群的工具。 这个工具能通过两条指令完成一个kubernetes集群的部署: # 创建一个 Master 节点$ kubeadm init# 将一个 Node 节点加入到当前集群中$ kubeadm join <Master节点的I 阅读全文
posted @ 2021-04-24 19:43
云起时。
阅读(233)
评论(0)
推荐(0)
摘要:
Kubernetes是Google在2014年开源的一个容器集群管理系统,Kubernetes简称K8S。 Kubernetes用于容器化应用程序的部署,扩展和管理,目标是让部署容器化应用简单高效。 官方网站:http://www.kubernetes.io 2.1 Kubernetes集群架构与组 阅读全文
posted @ 2021-04-24 19:41
云起时。
阅读(181)
评论(0)
推荐(0)

浙公网安备 33010602011771号