1、安装mysql
mkdir -p /opt/zenoss/mysql
cd /opt/zenoss
wget
tar -zxvf mysql-5.0.51a.tar.gz
cd mysql-5.0.51a
groupadd mysql
useradd -g mysql -d /opt/zenoss/mysql mysql
./configure --prefix=/opt/zenoss/mysql --with-mysqld-user=mysql && make && make install
cp support-files/my-medium.cnf /etc/my.cnf
cp /opt/zenoss/mysql/share/mysql/mysql.server /etc/init.d/mysqld
修改my.cnf打开innodb选项
/etc/init.d/mysqld start
mysqladmin -u root password '******'
/sbin/chkconfig --add mysqld
2、安装zenoss(注意一定要用非root用户安装)
useradd -d /opt/zenoss/zenoss zenoss
su - zenoss
mkdir -p soft
cd /opt/zenoss/
wget
tar -zxvf zenoss-2.1.3-0.tar.gz
cd zenoss-2.1.3
echo 'export ZENHOME=/usr/local/zenoss' >> /opt/zenoss/zenoss/.bashrc
echo 'export PYTHONPATH=$ZENHOME/lib/python' >> /opt/zenoss/zenoss/.bashrc
echo 'export PATH=$ZENHOME/bin:$PATH' >> /opt/zenoss/zenoss/.bashrc
mkdir -p /usr/local/zenoss(root用户执行)
chown zenoss /usr/local/zenoss
【install前需要用root修改部分代码:
vi build-functions.sh
MYSQLINC="/home/mysql/include"
】
./install.sh
根据提示安装,配置好zenoss (mysql数据库、端口等等)
增加zenoss启动的socket
chown root:zenoss /usr/local/zenoss/bin/zensocket
chmod 04750 /usr/local/zenoss/bin/zensocket
现在就可以启动zenoss了,访问方式:
$ZENHOME/bin/zenoss start
阅读(2022) | 评论(0) | 转发(0) |