您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
#!/bin/sh set -x groupadd nagios useradd -g nagios -s /sbin/nologin nagios cd nrpe-2.12 ./configure make all make install-plugin make install-daemon make install-daemon-config cd /data/nagios-plugins-1.4.11/ ./configure --with-nagios-user=nagios --with-nagios-group=nagios make make install chown nagios.nagios /usr/local/nagios chown -R nagios.nagios /usr/local/nagios/libexec set +x
第二版
[root@xiazai data]# cat add_nagios.sh #!/bin/sh set -x groupadd nagios useradd -g nagios -s /sbin/nologin nagios rpm -qa|grep openssl-devel if [ $? == 0 ] then cd nrpe-2.12 ./configure make all make install-plugin make install-daemon make install-daemon-config cd /data/nagios-plugins-1.4.11/ ./configure --with-nagios-user=nagios --with-nagios-group=nagios make make install chown nagios.nagios /usr/local/nagios chown -R nagios.nagios /usr/local/nagios/libexec else echo "please install openssl-devel" fi set +x
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。