蓝鲸学习笔记

学习记录


mysql主从

mysql主从

GRANT ALL ON . TO bkcetest@% IDENTIFIED BY 'bkce101'

./grant_mysql_priv.sh -n default-root -u 'bktest' -p 'ct1993' -H "10.0.7.66"

从: /usr/bin/mysql --defaults-file="/etc/mysql/client.conf" -uroot -p'bkce101' change master to master_host='10.0.6.5', master_port=3306, master_user='bktest', master_password='ct1993', master_log_file='binlog.006614', master_log_pos=924;

change master to master_host='10.0.6.5',master_user='mysync',master_password='q123456',master_port=3306,master_log_file='binlog.006614',master_log_pos=1788;

req=$(cat <<EOF { "service": { "id": "mysql-f817ba48-b3b0-11eb-a001-005056a2a0d3", "name": "mysql", "address": "10.0.7.66", "port": 3306, "check": { "tcp": "10.0.7.66:3306", "interval": "10s", "timeout": "3s" } } } EOF

curl --request PUT --data "$(jq -r .service <<<"$req")" "$REG_SVC_API"

curl -X POST http://10.0.6.57:10205/v2/push/ -d '${REPORT_DATA}'

sysctl -w

{

数据通道标识,必需项

&quot;data_id&quot;: 1500008,
# 数据通道标识验证码,必需项
&quot;access_token&quot;: &quot;4be26155cec14faeb19e769cecfb214f&quot;,
&quot;data&quot;: [{
    # 事件标识名,最大长度128
            &quot;event_name&quot;: &quot;nginx-test&quot;,
            &quot;event&quot;: {
                # 事件内容,必需项
                &quot;content&quot;: &quot;nginx m没有监听&quot;
            },
    # 来源标识如IP,必需项
    &quot;target&quot;: &quot;127.0.0.1&quot;,
    # 自定义维度,非必需项
    &quot;dimension&quot;: {
        &quot;module&quot;: &quot;db&quot;,
        &quot;location&quot;: &quot;guangdong&quot;
    },
    # 数据时间,精确到毫秒,非必需项
    &quot;timestamp&quot;: 1620911024038
}]

}[ ]( " ")

[ ]( " ")

页面列表

ITEM_HTML