CentOS 6.X x64 編譯安裝 Countly

來源:互聯網
上載者:User

標籤:countly

CentOS 6.X  x64 編譯安裝Countly


安裝所需的軟體

yum -y install supervisor ImageMagick sendmail



1. 安裝 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. 安裝node_modules   -   time

cd /opt/htdocs/countly-server-master/api/node_modules

npm install time



3. 安裝 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. 編譯安裝Nginx  !! 略!


5. 安裝 Mongodb !! 略!


6. 編譯安裝 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. 下載 Countly-server 源碼


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


cd countly-server-master


cp /opt/htdocs/countly-server-master/frontend/express/public/javascripts/countly/countly.config.sample.js /opt/htdocs/countly-server-master/frontend/express/public/javascripts/countly/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


本文出自 “學習之路” 部落格,請務必保留此出處http://jicki.blog.51cto.com/1323993/1547811

CentOS 6.X x64 編譯安裝 Countly

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.