Installation of mariadb-5.5.46:
First download the mariadb-5.5.46-linux-x86_64.tar.gz and then use the TAR-XF mariadb-5.5.46-linux-x86_64.tar.gz-c/usr/local directory
Add Database group # Groupadd MySQL
Add database user # useradd-g MySQL MySQL
Cd/usr/local
LN-SV mariadb-5.5.46-linux-x86_64 MySQL
# CD MySQL
# chown-r Root:mysql./* Change the owner and group of all files under the current directory
# scripts/mysql_install_db--user=mysql Initialize Database
# Mkdir/mydata/data Create a repository directory
# Chown-r Mysql:mysql/mydata/data
# Bin/mysqld_safe--user=mysql &
First Mkdir/etc/mysql, then cp/usr/local/mysql/support-files/my-large.cnf/etc/mysql/my.cnf.
View under/ETC/MY.CNF presence No, existing delete or mv/etc/my.cnf/tmp/
VIM/ETC/MYSQL/MY.CNF Modifying a configuration file
In the configuration file [Mysqld] Add the following datadir =/mydata/data,skip_name_resolve = On
, innodb_file_per_table = On,log-error=/var/log/mysqld.log.
Then start the service mysqld start prompt to succeed
Installing Zabbix
SOURCE Installation:
: http://www.zabbix.com/download.php
# TAR-ZXVF Zabbix-2.0.0.tar.gz
To create a user:
# Groupadd Zabbix
# useradd-g Zabbix Zabbix
Note: On nodes that have both server and agent installed, it is recommended that you do not run the same user.
To create a database:
Both the server and proxy are dependent on the database and the agent is not required.
Take MySQL database as an example:
mysql> CREATE DATABASE Zabbix CHARACTER SET UTF8 COLLATE utf8_bin;
Mysql> GRANT all on zabbix.* to [e-mail protected] '% ' identified by ' zbpass ';
# Please modify the user name and password as required;
shell> mysql-u<username>-p<password> Zabbix < Database/mysql/schema.sql
# If you only create a database for proxy, import only schema.sql; otherwise, proceed to the following steps;
shell> mysql-u<username>-p<password> Zabbix < Database/mysql/images.sql
shell> mysql-u<username>-p<password> Zabbix < Database/mysql/data.sql
Compile and install Zabbix:
Install both the server and the agent, and support the data into MySQL data, using a configuration command similar to the following:
./configure--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl--with-ssh2
If you install only server and support data into MySQL data, you can use a configuration command similar to the following:
./configure--enable-server--with-mysql--with-net-snmp--with-libcurl
If you install only proxy and support data into MySQL data, you can use a configuration command similar to the following:
./configure--prefix=/usr--enable-proxy--with-net-snmp--with-mysql--with-ssh2
If you install only the agent, you can use a configuration command similar to the following:
./configure--enable-agent
Note: In the CentOS system, the following 4 major issues are encountered when installing Zabbix for configure
./configure--enable-server--enable-agent--with-mysql--with-net-snmp--with-jabber--with-libcurl
1 Configure:error:MySQL Library not found
The problem is not installed Mysql-devel
#yum Install Mysql-devel
2 Configure:error:Jabber Library not found
The problem is not installed Jabber Lib
#wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
Unzip, configure, and install after the download is complete:
Tar zxvf iksemel-1.4.tar.gz
CD iksemel-1.4
Configure
Make
Make install
After the Zabbix to configure still encounter this problem, then the Jabber directory can be specified: #./configure--enable-server--enable-agent--with-mysql-- WITH-NET-SNMP--with-jabber=/usr/local/--with-libcurl
3 Configure:error:Not found Curl Library
#yum Install Curl-devel (this untested)
4 Configure:error:Not found NET-SNMP library
Yum Install Net-snmp-devel
5.zabbix Compiling installation Tips Configure:error:SSH2 library not found
Use Yum search Ssh2 and then find a related devel package installation, Devel is generally a development library package, such as libssh2.x86_64 (32-bit or 64-bit), libssh2-devel.i686 (32-bit)
You can then compile and install Zabbix:
# make
# make Install
Configuration Zabbix:
The server configuration file is zabbix_server.conf, at least it should be configured for the database and other related information;
The agent configuration file is zaabix_agentd.conf, at least the IP address of the server should be specified;
The configuration file of proxy is zabbix_proxy.conf, at least it should specify the hostname of proxy and the IP of server, and the related configuration information such as database;
Start Zabbix:
Server:zabbix_server
Agent:zabbix_agentd
Proxy:zabbix_proxy
Install Frontend:
# cp-a frontend/php//var/www/html/zabbix
After you start lamp or LNMP, you can install it by accessing the Http://<server_ip_or_name>/zabbix in your browser.
This article is from the "11822904" blog, please be sure to keep this source http://11832904.blog.51cto.com/11822904/1957442
Centos7 Installing and installing zabbix2.219 and mariadb-5.5.46