NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
[TOC] # Ubuntu 18.04 (bionic) install ``` # wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb # dpkg -i zabbix-release_4.0-2+bionic_all.deb # apt update For Ubuntu 16.04, substitute 'bionic' with 'xenial' in the commands. For Ubuntu 14.04, substitute 'bionic' with 'trusty' in the commands. ``` Server/proxy/frontend installation ``` To install Zabbix server with MySQL support: # apt install zabbix-server-mysql To install Zabbix proxy with MySQL support: # apt install zabbix-proxy-mysql To install Zabbix frontend: # apt install zabbix-frontend-php ``` Creating database ``` For Zabbix server and proxy daemons a database is required. It is not needed to run Zabbix agent. # zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix For proxy, import initial schema: # zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -uzabbix -p zabbix Configure database for Zabbix server/proxy # vi /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=<password> ``` It's time to start Zabbix server process and make it start at system boot: ``` # service zabbix-server start # update-rc.d zabbix-server enable ``` Agent installation ``` # apt install zabbix-agent # service zabbix-agent start ```