1.先升级python为2.7.2
tar jxvf Python-2.7.2.tar.bz2
cd Python-2.7.2
./configure –prefix=/usr/local/python2.72 –enable-shared
make
make install
加入库文件:/usr/local/python2.72/lib
并执行ldconfig -v
2.安装相关环境和依赖
yum install gcc gcc-c++ make sysstat nc -y
yum install python-devel -y
yum install rrdtool
yum install mysql mysql-server mysql-devel -y
/etc/init.d/mysqld start
3.建立数据库、账号
cretate database TriAquae;
GRANT ALL ON TriAquae.* TO ‘TriAquaeuser’@'%’ IDENTIFIED BY ‘TriAquaepwd’;
4.安装与配置
下载主程序
wget http://sourceforge.net/projects/triaquae/files/latest/download?source=files
解压文件
tar zxvf TriAquae.2014-04-26.tar.gz
进入install目录
cd TriAquae/install
编译
python setup.py build –prefix=/opt/TriAquae
安装
python setup.py install
进入安装目录下的conf文件夹
vim tri_config.py
修改3步创建的数据库和IP 、报警邮箱等信息。
python setup.py init
提示初始完成即可
5.启动并登入
/usr/local/python2.72/bin/python /opt/TriAquae/TriAquae/sbin/tri_service.py start
登入地址:
http://192.168.242.136:7000/
默认账号/密码:admin/triaquae
6.参考地址:http://triweb.sinaapp.com/