Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Last active July 17, 2017 16:07
Show Gist options
  • Save mattintosh4/454666cedfc91df988b7b6d7a7bcae82 to your computer and use it in GitHub Desktop.
Save mattintosh4/454666cedfc91df988b7b6d7a7bcae82 to your computer and use it in GitHub Desktop.
apt-get update
apt-get install -y curl language-pack-ja
curl -O http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-2+xenial_all.deb
dpkg -i zabbix-release_3.0-2+xenial_all.deb
rm -f zabbix-release_3.0-2+xenial_all.deb
apt-get update
apt-get install -y --install-recommends zabbix-server-mysql zabbix-frontend-php zabbix-agent php7.0-bcmath php7.0-mbstring php7.0-xml
sed -i'' '/php_value date.timezone/{s|# ||;s|Europe/Riga|Asia/Tokyo|}' /etc/zabbix/apache.conf
install -d -o zabbix -g zabbix /var/run/zabbix
mysqld_safe & sleep 5
echo "create database zabbix character set utf8 collate utf8_bin;" | mysql -uroot
echo "grant all on zabbix.* to zabbix@localhost;" | mysql -uroot
zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix zabbix
zabbix_server
zabbix_agentd
apache2ctl start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment