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