文件
yjyf/scratch/check_remote.py
MiAn 19651c0899 feat: 重构商品定价系统,新增步梯搬运费配置与支付台账统计
- 新增商品服务定价配置表,支持多规格服务价格体系
- 新增步梯搬运费配置功能,可按楼层阶梯收费
- 重构支付订单台账,新增核心数据统计卡片
- 优化下单流程,支持定价配置校验与增项计算
- 整合财务配置,移除独立充值配置菜单
2026-11-18 08:52:12 +08:00

25 行
717 B
Python

import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('8.137.181.63', port=22, username='root', password='liyanxia@6688', timeout=15)
def run(cmd):
stdin, stdout, stderr = ssh.exec_command(cmd)
return stdout.read().decode('utf-8', errors='ignore')
print('--- Sites in /www/wwwroot ---')
print(run('ls -la /www/wwwroot'))
print('--- Databases accessible by yjyf user ---')
print(run("mysql -uyjyf -pyjyf -e 'SHOW DATABASES;'"))
print('--- yjyf.gzyakj.com.cn content ---')
print(run('ls -la /www/wwwroot/yjyf.gzyakj.com.cn'))
print('--- Check PHP version on remote ---')
print(run('php -v'))
print(run('ls -d /etc/init.d/php-fpm*'))
ssh.close()