11 年前

Python 获取进程PID

Python 获取进程PID   python subprocess pid   python commands pid   Shell/Python  

一、使用subprocess模块通过查找关键字获取进程PID #!/usr/bin/python import subprocess import sys import logging import os gameproc = ["loginserver","gameserver","dbserver","logserver"] def getPid(process): cmd = "ps…

11 年前

heartbeate+mysql+drbd 高可用数据库配置

heartbeate   mysql   drbd   系统服务  

1、环境 系统:Centos 6.4 x64 主MYSQLA: 192.168.0.16 从MYSQLB: 192.168.0.17 VIP: 192.168.0.18 目录: /data 2、安装 基本安装 yum install heartbeat heartbeat-ldirectord heartbeat-pils heartbeat-stonith -y yum install mysq…

11 年前

Debian 7 多架构,如何支持32位开发?

debian i386   libstdc++6:i386   疑难杂症  

1.查看在用的架构: dpkg --print-architecture 2.添加架构 dpkg --add-architecture i386 3.添加i386架构,然后刷新下源列表,当然,删除就是remove apt-get update 4.安装i386软件 apt-get install iceweasel:i386 libstdc++6:i386 -y…