<optgroup id="642o2"><table id="642o2"></table></optgroup><xmp id="642o2"><optgroup id="642o2"></optgroup>
  • <dd id="642o2"></dd>
  • <nav id="642o2"><optgroup id="642o2"></optgroup></nav>
  • <center id="642o2"><td id="642o2"></td></center>
    <center id="642o2"></center>
  • <center id="642o2"><source id="642o2"></source></center>
  • <center id="642o2"></center>

  • centos 8 下設置.net core項目開(kāi)機自動(dòng)啟動(dòng)

    centos 8 下設置.net core項目開(kāi)機自動(dòng)啟動(dòng)



    學(xué)習下載專(zhuān)區 【2021-01-16 16:36】


    centos 8 下設置.net core 5.0 開(kāi)機自動(dòng)啟動(dòng)


    centos 8 下設置.net core項目開(kāi)機自動(dòng)啟動(dòng)


    1.1在/etc/systemd/system 下創(chuàng )建pgsqlcodefirst.service文件;
    pgsqlcodefirst.service文件添加:

    [Unit]

    Description="pgsqlcodefirst.Service"      


    [Service]

    Type=simple

    GuessMainPID=true

    WorkingDirectory=/home/net50/

    StandardOutput=journal

    StandardError=journal

    ExecStart=/usr/lib64/dotnet/dotnet /home/net50/pgsqlcodefirst.dll                                           //啟動(dòng)指令

    Restart=always

    [Install]

    WantedBy=multi-user.target


    2.使自啟動(dòng)生效
    systemctl enable pgsqlcodefirst.service

    3.立即啟動(dòng)項目服務(wù)
    systemctl start pgsqlcodefirst.service

    systemctl stop pgsqlcodefirst.service
    systemctl restart pgsqlcodefirst.service
    systemctl list-units --type=service

     

     

    5.重啟服務(wù):
    shutdown -r now

    6.重啟后訪(fǎng)問(wèn):http://ip:port/


    友情鏈接:
    SQL數據庫修復專(zhuān)家
    • 關(guān)注微博
      聯(lián)系QQ
    • 二維碼
    • 掃一掃加關(guān)注

    ——信陽(yáng)市速全網(wǎng)絡(luò )科技有限公司——

    版權所有:信陽(yáng)市速全網(wǎng)絡(luò )科技有限公司

    豫ICP備19030104號-2

    欧美日韩精品
    <optgroup id="642o2"><table id="642o2"></table></optgroup><xmp id="642o2"><optgroup id="642o2"></optgroup>
  • <dd id="642o2"></dd>
  • <nav id="642o2"><optgroup id="642o2"></optgroup></nav>
  • <center id="642o2"><td id="642o2"></td></center>
    <center id="642o2"></center>
  • <center id="642o2"><source id="642o2"></source></center>
  • <center id="642o2"></center>