Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
const { Client } = require('ssh2');
const conn = new Client();
conn.on('ready', () => {
console.log('=== 检查HTTPS连接 ===');
conn.exec('curl -s -v https://hs.yifenbao.cn/ 2>&1 | head -30', (err, stream) => {
if (err) { console.log('ERR:', err); conn.end(); return; }
let data = '';
stream.on('data', (d) => data += d.toString());
stream.on('close', () => {
console.log(data);
console.log('\n=== 检查Nginx容器日志 ===');
conn.exec('docker logs huishou 2>&1 | tail -20', (err2, stream2) => {
if (err2) { console.log('ERR2:', err2); conn.end(); return; }
stream2.on('data', (d) => console.log(d.toString()));
stream2.on('close', () => conn.end());
});
});
});
});
conn.connect({ host: 'hs.yifenbao.cn', port: 22, username: 'root', password: 'Torch1112' });