Mysql添加節點(有BUG不要用)

機場運營 · 01-21 · 207 人浏览

注意:MySQL添加的節點會導致面板與節點VPS的流量統計出錯。

V2board
下面命令中 ["1","2"] 代表你的訂閲組,也就是該節點支持哪些用戶組,第一個80為連接端口,第二個80為服務端口。該命令添加的為Vmess的WS協議節點,倍率為1。

INSERT INTO `v2_server_vmess` (`group_id`, `name`, `host`, `port`, `server_port`, `rate`, `network`, `show`, `created_at`, `updated_at`) VALUES ('["1","2"]', 'Test', '1.1.1.1', '80', 80, '1', 'ws', 1, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());

2024-01-20T22:30:04.png

如要添加協議配置,則運行以下命令:

INSERT INTO `v2_server_vmess` (`group_id`, `name`, `host`, `port`, `server_port`, `rate`, `network`, `networkSettings`, `show`, `created_at`, `updated_at`) VALUES ('["1","2"]', 'Test', '1.1.1.1', '80', 80, '1', 'ws', '{"path":"\/","headers":{"Host":"Domain"}}', 1, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());

2024-01-20T22:37:06.png

如要 添加一個節點對接父節點
下面的1000為父節點的ID,請手動替換。

INSERT INTO `v2_server_vmess` (`group_id`, `name`, `host`, `port`, `server_port`, `rate`, `network`, `networkSettings`, `show`, `parent_id`, `created_at`, `updated_at`) VALUES ('["1","2"]', 'Test', '1.1.1.1', '80', 80, '1', 'ws', '{"path":"\/","headers":{"Host":"Domain"}}', 1, 1000, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());

本站立足于美利堅合衆國,請讀者自覺遵守當地法律!如有違規,本站不承擔任何法律責任! This site is based in the United States of America, readers are requested to abide by local laws! If there are any violations, this site does not bear any legal responsibility! Theme Jasmine by Kent Liao