MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    新人求助,怎么在linux上作为服务运行

    使用交流
    4
    6
    292
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rigelstar last edited by rigelstar

      centos7用systemctl指令service文件该怎么写!

      1 Reply Last reply Reply Quote 0
      • R
        rigelstar last edited by

        [Unit]
        Description=mcl-1.12
        Documentation= https://github.com/iTXTech/mirai-console-loader
        After=multi-user.target

        [Service]
        Type=idle
        User=mcl
        ExecStart=/bin/java -jar /home/mcl/mcl-1.2.2/mcl.jar $*

        [Install]
        WantedBy=multi-user.target

        1 Reply Last reply Reply Quote 1
        • cssxsh
          cssxsh last edited by

          为啥要作为服务运行,建个子窗口专门放mcl不好吗

          1 Reply Last reply Reply Quote 1
          • EE0000
            EE0000 last edited by

            你可以考虑用 Docker:github.com/zhaozuohong/mirai-mah-docker

            R 1 Reply Last reply Reply Quote 2
            • R
              rigelstar @EE0000 last edited by

              @ee0000 好的,谢谢

              1 Reply Last reply Reply Quote 0
              • wssy001
                wssy001 ⭐2021⭐ last edited by

                建议使用docker,写个Dockerfile就行了

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact