用python创建数据库监控平台(4)安装Python扩展

本系列文章思路来自微信公众号:宅必备

[root@monit pip-9.0.1]# yum install MySQL-python
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package MySQL-python.x86_64 0:1.2.3-0.3.c1.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================
Installing:
MySQL-python x86_64 1.2.3-0.3.c1.1.el6 Server 86 k

Transaction Summary
=======================================================================================================================================
Install 1 Package(s)

Total download size: 86 k
Installed size: 246 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 1/1
Verifying : MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 1/1

Installed:
MySQL-python.x86_64 0:1.2.3-0.3.c1.1.el6

Complete!

请使用浏览器的分享功能分享到微信等