Zabbix
2016.03.12 11:38
CentOS7에 Zabbix 3.0.1 설치하기
조회 수 7517 추천 수 0 댓글 0
그야말로 그냥 설치만을 위한 커맨드 요약.
지금은 급한대로 커맨드만 씁니다. 뭐 하는건지는 대충 생략할테니 스스로 알아서... (나중에 정리 좀 할게요)
sudo -s로 root권한 주고 깔았음
Centos7은 ipconfig를 못쓰므로 먼저 이거부터 쳐놓는다.
yum install net-tools -y
yum install httpd -y
yum install mariadb mariadb-devel mariadb-server -y
systemctl enable httpd
systemctl enable mariadb
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql -y
yum install zabbix-agent -y
systemctl start mariadb
mysql -uroot
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
quit;
cd /usr/share/doc/zabbix-server-mysql-3.0.1/
zcat create.sql.gz | mysql -uroot zabbix
vi /etc/zabbix/zabbix_server.conf
(DBPassword=zabbix)
systemctl start zabbix-server
systemctl enable zabbix-server
systemctl start zabbix-agent
systemctl enable zabbix-agent
vi /etc/httpd/conf.d/zabbix.conf
(php_value date.timezone Asia/Seoul)
systemctl start httpd
웹 화면에서 설치 시작.
DB비밀번호 zabbix
로그인 아이디/디폴트 비밀번호
Admin/zabbix
・80번이 안열리면 웹페이지가 안보인다. Firewall포트를 체크하자.
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
SeLinux가 역시 서버를 막거나 뻘짓할수 있으니 체크한다.
아래처럼 영향이 있는 부분만 제거하거나
setsebool -P httpd_can_network_connect=true
걍 아래처럼 꺼버려도 된다.
/etc/selinux/config
(Disabled)
끗.
Who's JONG

안녕하세요 Goos.co.kr 홈페이지 주인입니다
로스산토스에서 거주하고 있습니다