<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                經過上面的分析,這些模塊中,每個模塊都可以作為一個`execution`元素,mariadb的安裝與卸載可為一組(group)(3)替換配置文件(4)修改文件執行權限(5)同步系統時間可為一組,作為基本功能。因此, - 編寫mariadb安裝`execution`:操作是`OperRunDependency`類,它需要執行兩個依賴(`dependency`)操作。而實際的操作是兩個子操作(`sub-execution`),它們是`OperRunCommand`類,一個是安裝數據庫,一個是初始化數據庫。分別通過執行`install_mysqldb.sh`和`import_mysql_sql.sh`實現。安裝同時開通端口,安裝前需先執行(3)(4)(5),因此使用`dependency`來實現。因此,xml配置如下: ```xml <execution name="安裝MySQL及初始化數據庫" id="installMysqlAndInitDb" display="true" class-name="deploy.OperRunDependency"> <dependencies> <dependency ref-id="installMysql"/> <dependency ref-id="createMysqlDb"/> </dependencies> <sub-execution> <execution name="安裝MySQL" id="installMysql" display="true" class-name="deploy.OperRunCommand"> <configuration> <commands> <command charset="utf-8"> <exec><![CDATA[scripts/linux/db/mariadb/install_mysqldb.sh]]></exec> <args> <arg><![CDATA[$${server.mysql.db.password}]]></arg> </args> </command> <!-- 開通端口 --> <command charset="utf-8"> <exec><![CDATA[scripts/linux/common/add_port.sh]]></exec> <args> <arg><![CDATA[$${server.mysql.port}]]></arg> </args> </command> </commands> </configuration> <dependencies> <dependency ref-id="updateConfigFiles"/> <dependency ref-id="chmodFile"/> <dependency ref-id="syncOsTime"/> </dependencies> </execution> <execution name="初始化MySQL數據庫" id="createMysqlDb" display="true" class-name="deploy.OperRunCommand"> <configuration> <commands> <command charset="utf-8"> <exec><![CDATA[scripts/linux/db/mariadb/import_mysql_sql.sh]]></exec> <args> <arg><![CDATA[$${server.mysql.db.username}]]></arg> <arg><![CDATA[$${server.mysql.db.password}]]></arg> <arg><![CDATA[$${server.mysql.port}]]></arg> </args> </command> </commands> </configuration> <dependencies> <dependency ref-id="updateConfigFiles"/> <dependency ref-id="chmodFile"/> <dependency ref-id="syncOsTime"/> </dependencies> </execution> </sub-execution> </execution> ``` - 由于要把mariadb安裝和卸載為一組顯示,添加組合(`group`)用于顯示,即可。如下: ```xml <group name="MySQL安裝與卸載"> 安裝及卸載的execution </group> ``` 此示例,使用部署工具運行后,顯示結果如下: ![mysql安裝卸載](https://gitee.com/mianshenglee/datastorage/raw/master/md-photo/deploy-tool/mysql.png) [21]: http://static.zybuluo.com/miansheng/oyvszacmgyuxazkk7p80w56w/mysql.png
                  <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>

                              哎呀哎呀视频在线观看