邮箱配置如图
发送格式:
{
"bk_app_code": "bk_monitor",
#该字段可以查看文件:/data/install/.app.token
"bk_app_secret": "5b1114e6-3e05-4317-88e3-5c985f310352",
"bk_username": "admin",
"receiver": "20126011@qq.com",
"title": "panhongyin ",
"content": "<html> Blueking 考试邮件测试 </html>"
}
QQ授权码:
fymyqtjffspgcajb
xqkxlsjnztfkcaec
运行windows的powershell脚本:
a) 进入windows,管理员运行shell命令:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Ulimit 设置
sed "/ulimit -n 204800/d" -i /etc/profile
echo "ulimit -n 204800" >> /etc/profile
source /etc/profile
ulimit -n
core文件设置
sed "/kernel.core_pattern/d" -i /etc/sysctl.conf
mkdir -p /corefile/
echo "kernel.core_pattern = /corefile/core_%p_%t" >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf
logic服务
yum install -y crudini
tar xvf /opt/logicsvr.tar.gz -C /opt/
ipaddr=$(ifconfig | grep -w inet | awk '{print $2}' | head -1)
crudini --set /opt/logicsvr/logicsvr.conf logic_svr address $ipaddr
/opt/logicsvr/logicsvr -c /opt/logicsvr/logicsvr.conf