Ubuntu中安装Nginx+Nagios
副标题[/!--empirenews.page--] 1. nagios安装 # wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.2.tar.gz # tar zxvf nagios-3.2.2.tar.gz # cd nagios-3.2.2 # useradd -m -s /bin/bash nagios # groupadd nagios # usermod -G nagios nagios # groupadd nagcmd # usermod -a -G nagcmd nagios # usermod -a -G nagcmd www # ./configure --prefix=/usr/local/nagios --with-command-group=nagcmd # make # make all # make install # make install-init # 生成init启动脚本 # make install-config # 安装示例配置文件 # make install-commandmode # 设置相应的目录权限 2. nagiox插件安装 # wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz # tar zxvf nagios-plugins-1.4.15.tar.gz # cd nagios-plugins-1.4.15 # ./configure --with-nagios-user=nagios --with-nagios-group=nagios --prefix=/usr/local/nagios # make # make install 3. nrpe安装 # apt-get install libssl-dev # wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.13/nrpe-2.13.tar.gz # tar zxvf nrpe-2.12.tar.gz # cd nrpe-2.12 # ./configure # make all # cp src/check_nrpe /usr/local/nagios/libexec/ 4.安装配置Nginx #sudo apt-get install nginx php5-fpm libssl-dev fcgiwrap apache2 # htpasswd -c -m /usr/local/nagios/etc/nagiosAdmin.net nagiosadmin # 启动服务 # /etc/init.d/php5-fpm start # /etc/init.d/fcgiwrap start #默认是socket模式,socket文件在/var/run/fcgiwrap.socket # /etc/init.d/nagios start # /etc/init.d/nginx start URL:http://www.bianceng.cn/OS/Linux/201410/46042.htm (编辑:徐州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |