ubuntu install zabbix

ubuntu install zabbix

reference1

reference2

some ERRORS raise during install process, may it help.

zabbix install mysql
zcat /usr/share/doc/zabbix-server-mysql-*/create.sql.gz | mysql -uzabbix zabbix -p

Unable to locate package
ERROR: The repository 'cdrom://Ubuntu-Server 16.04.3 LTS Xenial Xerus - Release amd64 (20170801) xenial Release' does not have a Release file
apt-get dist-upgrade

ERROR: please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
vim /etc/apt/sources.list
comment or remove follow line:
# deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.3)]/ xenial main restricted

ERROR: zbbix The requested URL /zabbix was not found on this server.
ln -s /etc/zabbix/apache.conf /etc/apache2/conf-available/zabbix.conf a2enconf zabbix.conf service apache2 reload

ERROR: Package 'php5-mysql' has no installation candidate
remove 5 from php5-mysql
apt-get install php-mysql

ERROR: cannot create regular file '/etc/apache2/conf.d/zabbix.conf': No such file or directory
cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf.d/zabbix.conf
change to follow
cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-available/zabbix.conf

sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
vim /etc/apt/sources.list
sources.list content as follow:
###### Ubuntu Main Repos deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted universe multiverse ###### Ubuntu Update Repos deb http://us.archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse ###### Ubuntu Partner Repo deb http://archive.canonical.com/ubuntu maverick partner deb-src http://archive.canonical.com/ubuntu maverick partner deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu maverick main # disabled on upgrade to maverick

猜你喜欢

转载自www.cnblogs.com/vickey-wu/p/8946456.html