您好,登錄后才能下訂單哦!
#!/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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。