<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ~~~ [admin@master init]$ sudo salt 'node2*' sys.list_state_functions service node2.51yuki.cn: - service.dead - service.disabled - service.enabled - service.mod_watch - service.running (查看service模塊支持哪些函數,其實service.running在狀態模塊中最常用) [admin@master init]$ sudo salt 'node2*' sys.state_doc service.running node2.51yuki.cn: ---------- service: Starting or restarting of services and daemons ============================================== Services are defined as system daemons typically started with system init or rc scripts, services can be defined as running or dead. httpd: service.running: [] The service can also be set to be started at runtime via the enable option: openvpn: service.running: - enable: True By default if a service is triggered to refresh due to a watch statement the service is by default restarted. If the desired behavior is to reload the service, then set the reload value to True: (服務默認情況是restart,如果要執行reload,你們就要把reload設置為true) 案例: redis: service.running: - enable: True - reload: True - watch: - pkg: redis 或者: service.running: - name: redis - enable: True - reload: True - watch - pkg: redis Note: More details regarding ``watch`` can be found in the :doc:`Requisites </ref/states/requisites>` documentation. service.running: Verify that the service is running name The name of the init or rc script used to manage the service enable Set the service to be enabled at boot time, True sets the service to be enabled, False sets the named service to be disabled. The default is None, which does not enable or disable anything. sig The string to search for when looking for the service process with ps 總結: 1、常用的參數有如下 enable: True reload: True ~~~ 案例: service.running: - name: sshd - enable: True - reload: True - require: - file: ssh-managed 關閉服務: - service.disabled ~~~ service.disabled: Verify that the service is disabled on boot, only use this state if you don't want to manage the running process, remember that if you want to disable a service to use the enable: False option for the running or dead function. name The name of the init or rc script used to manage the service ~~~ 案例: service.disabled: - name: rpcbind 2)判斷目標服務器上某個服務是否可用 [admin@master init]$ sudo salt 'node2.51yuki.cn' service.available sshd node2.51yuki.cn: True 3)重新加載指定服務 [admin@master init]$ sudo salt 'node2*' service.reload sshd node2.51yuki.cn: True 4) 重新啟動指定服務 [admin@master init]$ sudo salt 'node2*' service.restart sshd node2.51yuki.cn: True 5) 查看指定服務的狀態 [admin@master init]$ sudo salt 'node2*' service.status sshd node2.51yuki.cn: True
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看