ivaneeo's blog

          自由的力量,自由的生活。

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

          2015年7月3日 #

          curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

          rabbitmq.config 

          [{rabbit, [{cluster_partition_handling, autoheal},{loopback_users, []}]}].

          posted @ 2015-07-03 20:25 ivaneeo 閱讀(1967) | 評論 (0)編輯 收藏

          #!/bin/sh

          #

          # Startup script for ovirt-agent

          #

          # chkconfig: 2345 85 20

          # description: ovirt-agent

          # processname: ovirt-agent

          # pidfile: /var/run/tomcat.pid # config:# Source function library.

          . /etc/rc.d/init.d/functions

          # Source networking configuration.

          . /etc/sysconfig/network

          # Check that networking is up.

          export OVIRT_AGENT_HOME=/opt/ovirt-agent

          [ -f $OVIRT_AGENT_HOME/bin/startServer.sh ] ||?exit 0 [ -f $OVIRT_AGENT_HOME/bin/stopServer.sh ] ||?exit 0

          # See how we were called.

          case "$1" in

          start)

          # Start daemon.

                  echo ?"Starting OVirt-agent: "

                  $OVIRT_AGENT_HOME/bin/startServer.sh $OVIRT_AGENT_HOME/conf/ovirt-agent.xml

                  touch /var/lock/subsys/ovirt-agent

          ;;

          stop)

          # Stop daemons.

                  echo ?"Shutting down OVirt-agent: "

                  $OVIRT_AGENT_HOME/bin/stopServer.sh

                  rm -f /var/lock/subsys/ovirt-agent

          ;;

          restart)

                  $0 stop

                  $0 start

          ;;

          status)

          status ovirt-agent

          ;;

          *)

          echo "Usage: $0 {start|stop|restart|status}"

          exit 1

          esac

          exit 0

          posted @ 2015-07-03 20:06 ivaneeo 閱讀(1897) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 藁城市| 镇平县| 林甸县| 麻城市| 通化市| 含山县| 军事| 修水县| 尼木县| 宽甸| 乌审旗| 樟树市| 韶关市| 陇川县| 尼木县| 元氏县| 科技| 平安县| 馆陶县| 宝坻区| 太白县| 黎平县| 淮滨县| 原平市| 巧家县| 安远县| 江孜县| 辉南县| 富顺县| 温州市| 治多县| 莱西市| 阿克| 蒙山县| 吉木萨尔县| 宁安市| 汶上县| 夏津县| 弥渡县| 尼木县| 昌吉市|