CentOS7 安装Firefly及测试

本文记录CentOS7安装Firefly的过程及遇到的错误安装也可以同时参考社区提供的文章:?mod=viewthread&tid=33009&fromuid=87没有安装mysql的请先参考这篇文章,快速安装:1 安装第三方库:easy_install twistedeasy_install python-memcachedeasy_install DBUtilseasy_install zope.interfaceeasy_install affinityeasy_install MySQL-python2 遇到的问题-1: twisted问题:twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory解决方法:安装python-devyum -y install python-devel.x86_64-2: MySQL-python问题:mysql_config not found原因:mysql_config位置不对,而我是就没有安装mysql,安装好后没有遇到该问题。解决方法:来自社区参考文章方法1: sudo ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config将mysql_confi从你的安装目录链接到/usr/local/bin目录下,这样就可以在任意目录下访问了(也可以放到/usr/bin)方法2:编辑源码文件夹的site.cfg文件,,去掉#mysql_config = /usr/local/bin/mysql_config前的注释#,修改后面的路径为你的mysql_config真正的目录就可以了。(如果不知道 mysql_config在哪里,运行命令:whereis mysql_config)3 检测是否正常安装-1:创建一个新的工程firefly-admin.py createproject Testcd Test-2: 修改config.json配置–1:普通用户无法使用1000端口号,所以,netport使用的1000请修改为其它值,比如10000–2:db-passwd请修改为自己所使用的mysql密码,比如123456-3:运行python startmaster.py输出:2015-03-29 00:04:01+0800 [-] Log opened.2015-03-29 00:04:01+0800 [-] DelaySite starting on 99982015-03-29 00:04:01+0800 [-] Starting factory <firefly.web.delayrequest.DelaySite instance at 0x113c3f8>2015-03-29 00:04:01+0800 [-] BilateralFactory starting on 99992015-03-29 00:04:01+0800 [-] Starting factory <firefly.distributed.root.BilateralFactory instance at 0x113ca28>/usr/lib/python2.7/site-packages/pkg_resources.py:1054: UserWarning: /home/alex-my/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).warnings.warn(msg, UserWarning) /usr/lib/python2.7/site-packages/pkg_resources.py:1054: UserWarning: /home/alex-my/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). warnings.warn(msg, UserWarning)2015-03-29 00:04:01+0800 [-] Log opened.2015-03-29 00:04:01+0800 [-] Log opened.2015-03-29 00:04:01+0800 [-] Starting factory <twisted.spread.pb.PBClientFactory instance at 0x15f59e0>2015-03-29 00:04:01+0800 [-] Starting factory <twisted.spread.pb.PBClientFactory instance at 0x28ba878>2015-03-29 00:04:01+0800 [-] gate start…2015-03-29 00:04:01+0800 [-] gate pid: 34312015-03-29 00:04:01+0800 [-] net start…2015-03-29 00:04:01+0800 [-] net pid: 34322015-03-29 00:04:01+0800 [BilateralBroker,0,127.0.0.1] node [gate] takeProxy ready2015-03-29 00:04:01+0800 [BilateralBroker,1,127.0.0.1] node [net] takeProxy ready2015-03-29 00:04:01+0800 [Broker,client] call method remote_connect on service[single]2015-03-29 00:04:01+0800 [Broker,client] Starting factory <twisted.spread.pb.PBClientFactory instance at 0x28ba710>2015-03-29 00:04:01+0800 [BilateralBroker,0,127.0.0.1] node [net] takeProxy ready-4: 修复警告过程中出现一个大意是说~/.python-eggs不安全解决方案:chmod g-w ~/.python-eggs/ # 将group的写权限去除chmod o-w ~/.python-eggs/ # 将other的写权限去除-5: 一个更具体的示例:多人聊天室请移步:?mod=viewthread&tid=43974&fromuid=87

是清晰的又是朦胧的,是一杯苦茶,最后却品出清雅之香。

CentOS7 安装Firefly及测试

相关文章:

你感兴趣的文章:

标签云: