U
buntu14.04 x64
Zabbix 3.0 installation
Suffer from the online documents a lot, but for beginners, a lot of the building is not successful, I reinstall. Record it.
Download Deb
wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_ All.debdpkg-i zabbix-release_3.0-1+trusty_all.debapt-get Update
1. Install the service side
sudo apt-get install-y zabbix-server-mysql php5-mysql zabbix-frontend-php
I have previously installed MySQL, which is not installed at this time to install MySQL, and set a password
1.1 configuration zabbix_server.conf
# cat/etc/zabbix/zabbix_server.conf
Modify several parameters as follows
Dbhost=localhost
Dbname=zabbix
Dbuser=zabbix
Dbpassword=zabbix
Fast replacement,
Sed-i "[Email protected]# [email protected][email protected]"/etc/zabbix/zabbix_server.confsed-i "[Email protected]# [ Email protected][email protected] "/etc/zabbix/zabbix_server.confcat/etc/zabbix/zabbix_server.conf|egrep" DBHost| dbname| dbuser| Dbpassword "|grep-v" # "
Since dbname and Dbuser are set up by default, I'm not replacing
1.2 setting up MySQL
M ysql The default root login password is root
Mysql>create database Zabbix Character Set UTF8 collate utf8_bin;mysql>grant all privileges on zabbix.* to [email PR Otected] identified by ' Zabbix ';mysql> flush Privileges;cd/usr/share/doc/zabbix-server-mysqlzcat create.sql.gz | Mysql-u root-p zabbixsudo cp-r/usr/share/zabbix/var/www/html/zabbixservice zabbix-server Restart
1.3 Modifying server-side configuration information
1.3.1 Configuring PHP
sudo vim/etc/php5/apache2/php.ini Modify entries:
Post_max_size = 16mmax_execution_time = 300max_input_time = 300date.timezone = "Asia/shanghai"
Restart Apache2 After the modification is complete
sudo service apache2 restart
1.3.2 web-side configuration
Executes directly in the Web-side configuration.
Address : Http://ip/zabbix
User name password : Admin/zabbix
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8C/C8/wKioL1h4SaDSDr1RAAB1xFsIJR8316.png-wh_500x0-wm_ 3-wmp_4-s_2151476780.png "style=" Float:none; "title=" Picture 1.png "alt=" Wkiol1h4sadsdr1raab1xfsijr8316.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8C/CB/wKiom1h4SaHwROJ8AABZW3fO91Y158.png-wh_500x0-wm_ 3-wmp_4-s_1512164338.png "style=" Float:none; "title=" Picture 2.png "alt=" Wkiom1h4sahwroj8aabzw3fo91y158.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/8C/CB/wKiom1h4SaLQd6boAACFrc8x22Y227.png-wh_500x0-wm_ 3-wmp_4-s_2288457689.png "style=" Float:none; "title=" Picture 3.png "alt=" Wkiom1h4salqd6boaacfrc8x22y227.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8C/C8/wKioL1h4SaLwq6qPAABgM5XGzzk333.png-wh_500x0-wm_ 3-wmp_4-s_1730836437.png "style=" Float:none; "title=" Picture 4.png "alt=" Wkiol1h4salwq6qpaabgm5xgzzk333.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/8C/C8/wKioL1h4SaKARnFAAAAv5VAsAKY499.png-wh_500x0-wm_ 3-wmp_4-s_3076359359.png "style=" Float:none; "title=" Picture 5.png "alt=" Wkiol1h4sakarnfaaaav5vasaky499.png-wh_50 "/>
The default account is The Admin password is Zabbix.
A summary of the problems encountered during installation.
FAQ:
1.apache2:could Not reliably determine the server ' s fully qualified domain name Resolution
Vim/etc/apache2/apache2.conf
Finally add a sentence ServerName localhost:80
2. The system does not have Chinese plugin,zabbix3.0 no way to switch Chinese.
sudo apt-get install language-pack-zh-hant Language-pack-zh-hans
3. Zabbix Chinese characters
http://www.ttlsa.com/zabbix/zabbix-chinese-garbled-ttlsa/
1.dpkg-reconfigure Locales # select system language Pack
# must choose the en_US. Utf-8/zh_cn. UTF-8
2. When choosing a system environment language, it is necessary to select en_us. UTF-8
#check Zabbix configuration
vim/usr/share/zabbix/include/locales.inc.php
Find the Getlocales ( ) function to check if zh_cn is True
That's how Debian can be solved .
4. 650) this.width=650; "Width=" 2 "height=" 2 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/ >Zabbix switch Chinese
able to choose some of the languages, because locales for them is not installed on the Web SE RVer.
Workaround: Install the Chinese voice pack
Apt-get install-y language-pack-kde-zh-hans sudo service apache2 restart
Ubuntu14.04 x64 Zabbix 3.0 Installation