yum安裝,一切為了方便
我們一直強調成都網站設計、成都做網站對于企業的重要性,如果您也覺得重要,那么就需要我們慎重對待,選擇一個安全靠譜的網站建設公司,企業網站我們建議是要么不做,要么就做好,讓網站能真正成為企業發展過程中的有力推手。專業網站制作公司不一定是大公司,創新互聯作為專業的網絡公司選擇我們就是放心。
Red Hat Enterprise Linux / CentOS
Install the repository configuration package. This package contains yum configuration files.
Zabbix 2.2 for RHEL5, Oracle Linux 5, CentOS 5:
yum 源的安裝
# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm
Zabbix 2.2 for RHEL6, Oracle Linux 6, CentOS 6:x86_64
# rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
Zabbix 2.2 for RHEL6, Oracle Linux 6, CentOS 6:i386
http://repo.zabbix.com/zabbix/2.2/rhel/6/i386/zabbix-release-2.2-1.el6.noarch.rpm
Installing Zabbix packages
Install Zabbix packages. Example for Zabbix server and web frontend with MySQL database.
Zabbix
# yum install zabbix-server-mysql zabbix-web-mysql
# yum install zabbix-agent
Database
Create zabbix database and user on MySQL.
# mysql -uroot
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> exit
Import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql-2.2.0/create
# mysql -uroot zabbix < schema.sql
# mysql -uroot zabbix < p_w_picpaths.sql
# mysql -uroot zabbix < data.sql
Starting Zabbix server process
Edit database configuration in zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
Start Zabbix server process.
# service zabbix-server start
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
# php_value date.timezone Europe/Riga
It's necessary to uncomment the “date.timezone” setting and set the right timezone for you. After changing the configuration file restart the apache web server.
# service httpd restart
Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser. Default username/password is Admin/zabbix 注意大小寫
假如出現一些插件如(zabbix_sender,zabbix_get)無法使用,請使用源碼包安裝、
標題名稱:zabbix監控服務系列之--------NO1yum安裝篇
標題URL:http://vcdvsql.cn/article20/iiipjo.html
成都網站建設公司_創新互聯,為您提供自適應網站、服務器托管、移動網站建設、App開發、網站設計、軟件開發
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯