Centos 6.x x64 compilation and installation of countly

Source: Internet
Author: User
Tags install mongodb install node

Centos 6.x x64 compilation and installation of countly


Install Required Software

Yum-y install supervisor ImageMagick sendmail



1. Install node. js

Wget http://nodejs.org/dist/v0.10.1/node-v0.10.1.tar.gz

Tar zxvf node-v0.10.1.tar.gz

CD node-v0.10.1

./Configure -- prefix =/opt/local/node

Make

Make install

Ln-S/opt/local/node/bin/node/usr/bin/node

Ln-S/opt/node/bin/node-WAF/usr/bin/node-WAF

Ln-S/opt/local/node/bin/NPM/usr/bin/NPM


2. Install node_modules-time

CD/opt/htdocs/countly-server-master/API/node_modules

NPM install time



3. Install Mongo-10gen


Wget http://downloads-distro.mongodb.org/repo/redhat/ OS /x86_64/RPMS/mongo-10gen-2.4.11-mongodb_1.x86_64.rpm


Rpm-IVH mongo-10gen-2.4.11-mongodb_1.x86_64.rpm

Preparing... ######################################## ### [100%]

1: mongo-10gen ####################################### #### [100%]



4. Compile and install nginx !! Omitted!


5. Install MongoDB !! Omitted!


6. Compile and install supervisord

Https://pypi.python.org/packages/source/s/supervisor/


Wget https://pypi.python.org/packages/source/s/supervisor/supervisor-3.1.1.tar.gz

Tar zxvf supervisor-3.1.1.tar.gz

CD supervisor-3.1.1

Python setup. py install



7. Download The countly-Server Source Code


Https://github.com/Countly/countly-server


CD countly-server-Master


CP/opt/htdocs/countly-server-master/frontend/Express/public/javascripts/countly. config. sample. JS/opt/htdocs/countly-server-master/frontend/Express/public/javascripts/countly. config. JS


(CAT/opt/htdocs/countly-server-master/bin/config/countly-supervisor.conf; echo "exec/usr/bin/supervisord -- nodaemon -- configuration/opt/htdocs/countly-server-master/bin/config/supervisord. conf ")>/etc/init/countly-supervisor.conf


CP/opt/htdocs/countly-server-master/API/config. sample. JS/opt/htdocs/countly-server-master/API/config. js


CP/opt/htdocs/countly-server-master/frontend/Express/config. sample. JS/opt/htdocs/countly-server-master/frontend/Express/config. js


Start countly-Supervisor


CP/opt/htdocs/countly-server-master/bin/config/nginx. server. CONF/opt/local/nginx/CONF/vhost/www.xxx.com. conf


/Opt/local/nginx/sbin/nginx


This article is from the "learning path" blog, please be sure to keep this source http://jicki.blog.51cto.com/1323993/1547811

centos 6.x x64 compilation and installation of countly

Related Article

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.