摘要:
0.环境介绍设计的集群节点为master1、master2、slave1。其中master2到slave1的主从复制已经完成。现在需要配置master1和master2之间的相互复制。1. 修改master2参数文件(/etc/my.cnf)增加/修改如下参数:log-bin=mysql-binlog-bin-index=mysql-bin.indexserver-id = 114binlog-do-db=mytest_dbrelay-log=relay-binrelay-log-index=relay-bin-indexreplicate-do-db=mytest_dblog_slave_u 阅读全文
摘要:
1. 下载python2.7.5,保存到 /data/qtongmon/softwarehttp://www.python.org/ftp/python/2. 解压文件tar xvf Python-2.7.5.tar.bz23. 创建安装目录mkdir /usr/local/python274. 安装python./configure --prefix=/usr/local/python27makemake install5. 修改老版本的ln指向(注意:这里修改后,可能会影响yum的使用)mv /usr/bin/python /usr/bin/python2.4.3ln -s /usr/lo 阅读全文
摘要:
python安装完毕后,提示找不到ssl模块:[root@localhost ~]# python2.7.5Python 2.7.5 (default, Jun 3 2013, 11:08:43) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import sslTraceback (most rec 阅读全文