忘记密码   免费注册 查看新帖 | 论坛精华区

ChinaUnix.net

  平台 论坛 博客 认证专区 大话IT HPC论坛 徽章 文库 沙龙 自测 下载 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 1406 | 回复: 4

[Zabbix] rpm包安装zabbix3.2.3,启动zabbix-server服务后无法继续安装 [复制链接]

论坛徽章:
0
发表于 2017-02-06 14:13 |显示全部楼层
完成以下工作安装依赖包

rpm -ivh fping-2.4b2-16.el6.x86_64.rpm
rpm -ivh iksemel-1.4-2.el6.x86_64.rpm
yum install OpenIPMI net-snmp php-mysql
安装zabbix
rpm -ivh zabbix-server-mysql-3.2.3-1.el6.x86_64.rpm
rpm -ivh zabbix-web-3.2.3-1.el6.noarch.rpm zabbix-web-mysql-3.2.3-1.el6.noarch.rpm
rpm -ivh zabbix-agent-3.2.3-1.el6.x86_64.rpm
导入数据库:
zcat /usr/share/doc/zabbix-server-mysql-3.2.1/create.sql.gz | mysql -uzabbix -pzabbix zabbix  

更改zabbix连接数据库配置:
vi /etc/zabbix/zabbix_server.conf
DBHost=localhost #数据库ip地址
DBName=zabbix #数据库名称
DBUser=zabbix #数据库用户名
DBPassword=zabbix #数据库密码
DBSocket=/opt/mysql/mysql.sock

10、启动服务
service zabbix-server start
chkconfig zabbix-server on

重启httpd


现在的问题是zabbix-server服务能正常启动,但在/var/www/html目录下找不到php和zabbix目录
浏览器无法打开服务器ip/zabbix目录,不能继续,请高手指导,谢谢!

论坛徽章:
0
发表于 2017-02-06 14:23 |显示全部楼层
[root@localhost init.d]# more /var/log/zabbix/zabbix_server.log
  8991:20170206:142028.041 Got signal [signal:15(SIGTERM),sender_pid:9195,sender_uid:0,reason:0]. Exiting ...
  8991:20170206:142030.043 syncing history data...
  8991:20170206:142030.043 syncing history data done
  8991:20170206:142030.043 syncing trend data...
  8991:20170206:142030.044 syncing trend data done
  8991:20170206:142030.044 Zabbix Server stopped. Zabbix 3.2.3 (revision 64610).
  9222:20170206:142030.229 Starting Zabbix Server. Zabbix 3.2.3 (revision 64610).
  9222:20170206:142030.229 ****** Enabled features ******
  9222:20170206:142030.229 SNMP monitoring:           YES
  9222:20170206:142030.229 IPMI monitoring:           YES
  9222:20170206:142030.229 Web monitoring:            YES
  9222:20170206:142030.229 VMware monitoring:         YES
  9222:20170206:142030.229 SMTP authentication:        NO
  9222:20170206:142030.230 Jabber notifications:      YES
  9222:20170206:142030.230 Ez Texting notifications:  YES
  9222:20170206:142030.230 ODBC:                      YES
  9222:20170206:142030.230 SSH2 support:              YES
  9222:20170206:142030.230 IPv6 support:              YES
  9222:20170206:142030.230 TLS support:               YES
  9222:20170206:142030.230 ******************************
  9222:20170206:142030.230 using configuration file: /etc/zabbix/zabbix_server.conf
  9222:20170206:142030.242 current database version (mandatory/optional): 03020000/03020000
  9222:20170206:142030.242 required mandatory version: 03020000
  9222:20170206:142030.263 server #0 started [main process]
  9227:20170206:142030.264 server #1 started [configuration syncer #1]
  9228:20170206:142030.265 server #2 started [db watchdog #1]
  9229:20170206:142030.265 server #3 started [poller #1]
  9231:20170206:142030.266 server #4 started [poller #2]
  9232:20170206:142030.268 server #5 started [poller #3]
  9233:20170206:142030.272 server #6 started [poller #4]
  9235:20170206:142030.276 server #8 started [unreachable poller #1]
  9236:20170206:142030.277 server #9 started [trapper #1]
  9237:20170206:142030.278 server #10 started [trapper #2]
  9238:20170206:142030.281 server #11 started [trapper #3]
  9239:20170206:142030.285 server #12 started [trapper #4]
  9240:20170206:142030.285 server #13 started [trapper #5]
  9244:20170206:142030.289 server #17 started [timer #1]
  9234:20170206:142030.289 server #7 started [poller #5]
  9241:20170206:142030.293 server #14 started [icmp pinger #1]
  9245:20170206:142030.293 server #18 started [http poller #1]
  9242:20170206:142030.294 server #15 started [alerter #1]
  9243:20170206:142030.294 server #16 started [housekeeper #1]
  9247:20170206:142030.296 server #20 started [history syncer #1]
  9246:20170206:142030.297 server #19 started [discoverer #1]
  9248:20170206:142030.301 server #21 started [history syncer #2]
  9249:20170206:142030.302 server #22 started [history syncer #3]
  9251:20170206:142030.304 server #24 started [escalator #1]
  9250:20170206:142030.307 server #23 started [history syncer #4]
  9260:20170206:142030.312 server #26 started [self-monitoring #1]
  9258:20170206:142030.315 server #25 started [proxy poller #1]
  9261:20170206:142030.318 server #27 started [task manager #1]

论坛徽章:
0
发表于 2017-02-06 14:53 |显示全部楼层
已安装的包
[root@localhost init.d]# rpm -qa |grep zabbix
zabbix-server-mysql-3.2.3-1.el6.x86_64
zabbix-agent-3.2.3-1.el6.x86_64
zabbix-release-3.2-1.el6.noarch
zabbix-web-mysql-3.2.3-1.el6.noarch
zabbix-web-3.2.3-1.el6.noarch

论坛徽章:
0
发表于 2017-02-06 16:58 |显示全部楼层
本帖最后由 forestqq 于 2017-02-06 17:00 编辑

查看zabbix-web-3.2.3-1.el6.noarch
发现其解包的文件全部放在/usr/share/zabbix下,将/usr/share/zabbix复制为/var/www/html/zabbix
通过浏览器仍然无法访问,本机php版本为5.3.3,apache版本2.2.15,apache和php测试工作正常

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-02-05 06:20:00
发表于 2017-02-09 16:24 |显示全部楼层
forestqq 发表于 2017-02-06 16:58
查看zabbix-web-3.2.3-1.el6.noarch
发现其解包的文件全部放在/usr/share/zabbix下,将/usr/share/zabbix复 ...

不能访问是找不到文件吗? url路径多试对不对
您需要登录后才可以回帖 登录 | 注册

本版积分规则

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号 北京市公安局海淀分局网监中心备案编号:11010802020122
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP