• <center id="iy06s"><td id="iy06s"></td></center>
    <nav id="iy06s"><table id="iy06s"></table></nav>
  • <dd id="iy06s"></dd>
    <optgroup id="iy06s"><table id="iy06s"></table></optgroup>
    <center id="iy06s"></center>
  • <dd id="iy06s"></dd><xmp id="iy06s"><center id="iy06s"></center>
    <optgroup id="iy06s"></optgroup>
  • <optgroup id="iy06s"><table id="iy06s"></table></optgroup>
    <nav id="iy06s"><table id="iy06s"></table></nav><center id="iy06s"><wbr id="iy06s"></wbr></center>
  • <center id="iy06s"></center>
    <xmp id="iy06s"><center id="iy06s"></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

    不卡一不卡二不卡三
  • <center id="iy06s"><td id="iy06s"></td></center>
    <nav id="iy06s"><table id="iy06s"></table></nav>
  • <dd id="iy06s"></dd>
    <optgroup id="iy06s"><table id="iy06s"></table></optgroup>
    <center id="iy06s"></center>
  • <dd id="iy06s"></dd><xmp id="iy06s"><center id="iy06s"></center>
    <optgroup id="iy06s"></optgroup>
  • <optgroup id="iy06s"><table id="iy06s"></table></optgroup>
    <nav id="iy06s"><table id="iy06s"></table></nav><center id="iy06s"><wbr id="iy06s"></wbr></center>
  • <center id="iy06s"></center>
    <xmp id="iy06s"><center id="iy06s"></center>