CentOS 6.X x64 编译安装 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

时间: 2024-10-29 00:08:17

CentOS 6.X x64 编译安装 Countly的相关文章

CentOS 5.5 x64下安装升级Python3.3

1.下载linux版本的Python3.3.5,以下是我共享的百度云盘的下载地址 http://pan.baidu.com/s/1kT3IHLH 2.解压: tar -zxvf Python-3.3.5.tgz 3.进入解压后的目录: cd Python-3.3.5 4.创建安装目录,这里我将其安装在/usr/local下 mkdir /usr/local/python3.3 5.编译python3.3 ./configure --prefix=/usr/local/python3.3 6.执行

centos 6.9 x64 yum安装PHP 7.1.8

centos 6.9 x64 yum安装PHP 7.1.8 安装源 yum install epel-release rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm 根据你的需要安装PHP的组件,下面我就安装所有的了. yum install php71w php71w-mysql php71w-odbc php71w-common php71w-embedded php71w-pgsql php71w-xml  php71w-lda

CentOS 6.5下编译安装httpd+mysql+php+phpMyAdmin

CentOS 6.5下编译安装httpd+mysql+php+phpMyAdmin+cacti+nagios 一.安装环境 Linux系统:CentOS 6.5 Apache版本:http-2.4.12 MySQL版本:MySQL 5.6.24 PHP版本:PHP-5.6.8 基本的安装顺序为:先安装httpd,然后安装mysql,最后安装PHP. 软件包: [[email protected] httpdbao]# ll total 334908 -rwxrw-rw-. 1 root root

在CentOS 6.4中编译安装gcc 4.8.1

在CentOS 6.4中编译安装gcc 4.8.1 分类: C/C++ Linux/Unix2013-11-28 21:02 1877人阅读 评论(0) 收藏 举报 原文链接:http://www.cnblogs.com/codemood/archive/2013/06/01/3113200.html 1. 安装gcc和g++ 新安装的CentOS缺少编译环境,必须先安装旧版本的gcc, 然后再进行自举编译 yum -y install gccyum -y install gcc-c++ 2.

CentOS 6.4下编译安装MySQL 5.6.16

一.卸载旧版本MySql 1.rpm卸载: 1> 检查安装包: rpm -qa | grep mysql 2> 普通删除: rpm -e mysql-5.6.16.rpm 3> 强力删除.如果使用上面命令删除时,提示有依赖的其他文件,则使用该命令可以对其进行强力删除. rpm -e --nodeps mysql-5.6.16.rpm 2.tar卸载: 1> 删除临时文件: make clean 2> 卸载 make uninstall 3> 删除解压文件 rm  -rf

CentOS下使用cmake编译安装mysql

一.下载安装所必需的依赖包 1.因为高版本mysql都用cmake安装,所以下载cmake wget http://www.cmake.org/files/v3.0/cmake-3.0.1.tar.gz tar zxvf cmake-3.0.1.tar.gz cd cmake-3.0.1 ./configure make && make install 2.下载其它包 wget http://ftp.gnu.org/gnu/bison/bison-3.0.2.tar.gz 安装同上 wge

CentOS 6.4下编译安装MySQL 5.6.14

CentOS 6.4下编译安装MySQL 5.6.14 概述: CentOS 6.4下通过yum安装的MySQL是5.1版的,比较老,所以就想通过源代码安装高版本的5.6.14. 正文: 一:卸载旧版本 使用下面的命令检查是否安装有MySQL Server rpm -qa | grep mysql 有的话通过下面的命令来卸载掉 rpm -e mysql //普通删除模式 rpm -e --nodeps mysql // 强力删除模式,如果使用上面命令删除时,提示有依赖的其它文件,则用该命令可以对

CentOS 7.2.1511 编译安装Nginx1.10.1+MySQL5.7.14+PHP7.0.11

这篇文章主要介绍了CentOS 7.2.1511 编译安装Nginx1.10.1+MySQL5.7.14+PHP7.0.11,需要的朋友可以参考下准备篇 一.防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动 2.安装ipta

CentOS 5.9裸机编译安装搭建LAMP

Linux系统:CentOS 5.9,查看CentOS版本,命令如下: [[email protected] /]# cat /etc/redhat-release CentOS release 5.9 (Final) 以前装过MySQL和PHP的机器,最好是先查看一下MySQL或者PHP是否未卸载: [[email protected] /]# rpm -qa|grep mysql [[email protected] /]# ↑ 结果表明MySQL未安装或者已经被卸载,如果已安装,则可以选择