CENTOS7 Installation Firefly and test

Source: Internet
Author: User
Tags chmod
This article records the process of CentOS7 installation Firefly and the errors encountered

The installation can also refer to the articles provided by the community:
http://www.9miao.com/forum.php?mod=viewthread&tid=33009&fromuid=87

MySQL is not installed please refer to this article first, quick install:
http://blog.csdn.net/alex_my/article/details/44711139


1 Installing the third Party library:
Easy_install Twisted
Easy_install python-memcached
Easy_install dbutils
Easy_install Zope.interface
Easy_install Affinity
Easy_install Mysql-python

2 problems encountered
-1:twisted
Question: twisted/runner/portmap.c:10:20:fatal error:python.h:no such file or directory

Workaround: Install Python-dev
Yum-y Install python-devel.x86_64

-2:mysql-python
Question: Mysql_config not found
Reason: Mysql_config location is not right, and I did not install MySQL, installed after the problem did not encounter.
Workaround: From Community reference articles

Method 1:
sudo ln-s/usr/local/mysql/bin/mysql_config/usr/local/bin/mysql_config
Link MYSQL_CONFI from your installation directory to the/usr/local/bin directory so that you can access it in any directory (or you can put it in/usr/bin)

Method 2:
Edit the source folder of the Site.cfg file, remove #mysql_config =/usr/local/bin/mysql_config before the comments #, modify the following path for your mysql_config real directory can be. (If you don't know where Mysql_config is, run the command: Whereis mysql_config)

3 detect whether the normal installation
-1: Create a new project
firefly-admin.py CreateProject Test
CD Test

-2: Modify Config.json Configuration
--1: The average user cannot use the 1000 port number, so the 1000 used by Netport can be modified to another value, such as 10000
--2:DB-PASSWD Please modify the MySQL password for your own use, such as 123456

-3: Run
Python startmaster.py

Output:

2015-03-29 00:04:01+0800 [-] Log opened.
2015-03-29 00:04:01+0800 [-] delaysite starting on 9998
2015-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 9999
2015-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:3431
2015-03-29 00:04:01+0800 [-] net start ...
2015-03-29 00:04:01+0800 [-] net pid:3432
2015-03-29 00:04:01+0800 [bilateralbroker,0,127.0.0.1] node [gate] Takeproxy ready
2015-03-29 00:04:01+0800 [bilateralbroker,1,127.0.0.1] node [NET] Takeproxy ready
2015-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: Fix warning
One of the main ideas in the process is that ~/.python-eggs is unsafe.
Solution:
chmod g-w ~/.python-eggs/# Removes the Write permission for a group
chmod o-w ~/.python-eggs/# To remove other's write permission

-5: A more specific example: multi-person chat room
Please: http://www.9miao.com/forum.php?mod=viewthread&tid=43974&fromuid=87

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.