deploy zabbix 2210 on ubuntu 1404 64bit
程序员文章站
2022-04-20 10:29:23
...
Architecture:
Nginx
php5
mysql
Install depends
#apt-get install -y nginx php5-fpm php5-gd mysql-server php5-mysql libmysqld-dev libxml2-dev libsnmp-dev libcurl4-openssl-dev
Config php5-fpm
#/etc/php5/fpm/pool.d/www.conf...
> 33 ;listen = /var/run/php5-fpm.sock
> 34 listen = 9000#service php5-fpm restart
Config nginx
#cp /etc/nginx/sites-available/default{,.bak}#vim /etc/nginx/sites-enabled/default...24## root /usr/share/nginx/html;25 root /var/www/html/zabbix;
26 index index.php index.html index.htm;
...54 location ~ \.php$ {
55 fastcgi_split_path_info ^(.+\.php)(/.+)$;
56# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini57#58# # With php5-cgi alone:59 fastcgi_pass 127.0.0.1:9000;
60# # With php5-fpm:61# fastcgi_pass unix:/var/run/php5-fpm.sock;62 fastcgi_index index.php;
63 include fastcgi_params;
64 }
...#nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
#service nginx reload
Installing Zabbix daemons
download and untar pkg
#wget http://7mnldi.com1.z0.glb.clouddn.com/zabbix-2.2.10.tar.gz#tar -xf zabbix-2.2.10.tar.gz
Create user account
#groupadd zabbix#useradd -g zabbix zabbix
Create Zabbix database
For Zabbix server and proxy daemons, as well as Zabbix frontend, a database is required. It is not needed to run Zabbix agent.
SQL scripts are provided for creating database schema and inserting the dataset. Zabbix proxy database needs only the
schema while Zabbix server database requires also the dataset on top of the schema.
For example: config mysql
shell> mysql -uusername>
上一篇: 通过CSS的border绘制三角形
下一篇: php的错误处理