1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rhel7 + zabbix3.4 + MariaDB on AWS

Posted at

#使用したコマンド
sudo su - cat /etc/system-release cat /proc/version passwd root

setenforce 0

cp -p /usr/share/zoneinfo/Japan /etc/localtime vi /etc/locale.conf
NG=ja_JP.UTF-8

reboot

setenforce 0

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm vi /etc/yum.repos.d/redhat-rhui.repo
enabled=1

yum install zabbix-server-mysql zabbix-proxy-mysql zabbix-web-mysql
vi /etc/yum.repos.d/mariadb.repo```
*# MariaDB 10.3 RedHat repository list - created 2018-06-11 13:28 UTC*
*# http://downloads.mariadb.org/mariadb/repositories/*
*[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1*

`yum install MariaDB-server MariaDB-client
systemctl enable mariadb
systemctl start mariadb
systemctl status mariadb`
`mysql -uroot -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
quit;`

`zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
vi /etc/zabbix/zabbix_server.conf`
*DBPassword=zabbix*

`systemctl enable zabbix-server
systemctl start zabbix-server`

`vi /etc/httpd/conf.d/zabbix.conf`
*php_value date.timezone Asia/Tokyo*

`systemctl enable httpd
systemctl start httpd`

http://18.182.6.117/zabbix/
![スクリーンショット 2018-06-12 00.26.50.png](https://qiita-image-store.s3.amazonaws.com/0/207810/b5a43dc9-4fda-7f6c-7efc-930e1491b46a.png)

#参考文献
EC2 RHEL 7 へZabbix Server 3.4 をインストール
https://qiita.com/130cmWolf/items/ef9f172e3cca6f38d584
Zabbix Documentation 3.4
https://www.zabbix.com/documentation/3.4/manual/installation/install_from_packages/rhel_centos
Downloads Setting up MariaDB Repositories
https://downloads.mariadb.org/mariadb/repositories/#mirror=yamagata-university&distro=RedHat&distro_release=rhel7-amd64--rhel7&version=10.3

#ログ
https://docs.google.com/document/d/1OZHyVwHfz3Qyu-KgJ3akEAngAMji6OpGXUk6hyZDcvI/edit?usp=sharing

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?