OS:RHEL4.4
1、安装mysql
cd /root/soft/ wget tar -zxvf mysql-5.0.51a.tar.gz cd mysql-5.0.51a groupadd mysql useradd -g mysql mysql ./configure --prefix=/home/mysql --with-mysqld-user=mysql && make && make install
cp support-files/my-medium.cnf /etc/my.cnf
cp /home/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 zenoss
su - zenoss
mkdir -p soft
cd /home/zenoss/soft/
wget
tar -zxvf zenoss-2.1.3-0.tar.gz
cd zenoss-2.1.3
echo 'export ZENHOME=/usr/local/zenoss' >> /home/zenoss/.bashrc echo 'export PYTHONPATH=$ZENHOME/lib/python' >> /home/zenoss/.bashrc echo 'export PATH=$ZENHOME/bin:$PATH' >> /home/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
|
阅读(3418) | 评论(1) | 转发(0) |