From 71f70ac3def8ff669903bbc72b4c048c1169fe35 Mon Sep 17 00:00:00 2001 From: LinWin-Cloud <96580724+LinWin-Cloud@users.noreply.github.com> Date: Sun, 16 Oct 2022 15:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sevice/MANIFEST.MF | 2 ++ Sevice/ServerBoot.class | Bin 0 -> 766 bytes Sevice/ServerBoot.jar | Bin 0 -> 963 bytes Sevice/ServerBoot.java | 17 +++++++++++++++++ Sevice/desktop/linwinhttp.desktop | 13 +++++++++++++ Sevice/shell/start_http.sh | 4 ++++ Sevice/shell/start_porxy.sh | 4 ++++ Sevice/systemd/linwinhttp.service | 11 +++++++++++ 8 files changed, 51 insertions(+) create mode 100644 Sevice/MANIFEST.MF create mode 100644 Sevice/ServerBoot.class create mode 100644 Sevice/ServerBoot.jar create mode 100644 Sevice/ServerBoot.java create mode 100644 Sevice/desktop/linwinhttp.desktop create mode 100644 Sevice/shell/start_http.sh create mode 100644 Sevice/shell/start_porxy.sh create mode 100644 Sevice/systemd/linwinhttp.service diff --git a/Sevice/MANIFEST.MF b/Sevice/MANIFEST.MF new file mode 100644 index 0000000..8783659 --- /dev/null +++ b/Sevice/MANIFEST.MF @@ -0,0 +1,2 @@ +Main-Version: 1.0 +Main-Class: ServerBoot diff --git a/Sevice/ServerBoot.class b/Sevice/ServerBoot.class new file mode 100644 index 0000000000000000000000000000000000000000..bef3216eb65491cc3679fb46b4de164650b4b7a7 GIT binary patch literal 766 zcmZuv%Wl&^6g}gnnZ&rSv<^@xwB=E!g%}XKA{HQ6rBGog3l`PHj1m{yW7(4`{UX+7 z5fBSLfR94lF>M|avzYsubMDc-^ZU=wUjUxsiH$3`YU3KN*RXEvjT&xpY}9cJw{29h zX=4l99CtYGGE|>MX{4Vs%z3RNhRRFzSu!kjqEx;aBwd-m7u}dLl|)1-L(}`zIT5GA zk44(^1D!`{Z{GkH0xiNX2O=xqQ$Gg#)i9Kqj#OGu5U4>O%GZ%0TMA@;D)Sdg>9%2W z;9!B{o`d_?VQ|}i(U)=T7h2@{xUY5AF8U5Uv`E2hF;n^QjH(Q)6J6uR9J>zo@W8=C zv^jhSkMP)t8TV&cp5WegPh_YWRwk);gH%TeX|{V(j|10hO^x9qy-!n;Lm4vccvIEO zAx)(Ya}~;>Aiz}f;H=Oxp+%?xNpSx?kCcB%GuA{RMM3~02=((4+<;3oR!O%`9>9sNh6a(jq@_t3HmTYuE7k{& RRU2y*R0wYRyX0GF{skBStf&A0 literal 0 HcmV?d00001 diff --git a/Sevice/ServerBoot.jar b/Sevice/ServerBoot.jar new file mode 100644 index 0000000000000000000000000000000000000000..1ff352e2284959977f6e1241ef788f4eef1c0dc8 GIT binary patch literal 963 zcmWIWW@Zs#;Nak3*wN-6%76qo8CV#6T|*poJ^kGD|D9rBU}gyLX6FE@V1gX5YUTPIvB5#u*lXDj)#{+7@ke&)FeM#i{}9+= zt*7ErB33;A`JKf(KYzadU7kViQDd)a%!We2=~*{Sz7_F?TWou^qbu8N)s1Z%n_tVA zTjUvq$ggyHd7Otk?zgV<)68FiMr*!=D8=_Y+IJ?tyUt~%mrlr`3!mn;bgYrb4 zKMv2eBujV;EH5biDN)$8Y5p_A8|RNLJhR1Xa#NFn?9+uc>v(Q@DSS?zY3~_)*D!}q zMyL2rQGxVsp1kAwZAM*xoVsJ`C9>w0b}eM)&kZt&KXa+3#woPz>&$g86Z&k~fA4tw zK+j5MUvu@2{3AZkjn|wj(EsgjwB*Vyov&F_GDIh*RV#coDcD=~e*ZkZy^~~4Pe{CO z{e0p-PuXXg8r_Sm&220+xAbHRzU)xhk^WX|Y1-5brHM-K=AE=qSR*l^r`J-lp6zdK zXQc-7c^?r~x4)IvOX3s%^;wF|xXE#sw`%;_ zMux31mw9bwrm;fc&Y5y=*0uLRiB@y+8-*K;3=IE(DL25Ikx7IBHO<2kG$_rZ0(c?@ z|vfD$FL!$64=0qy{q=t(rdo0Scuf*A;R1L;p-cLM-v Cq)NpA literal 0 HcmV?d00001 diff --git a/Sevice/ServerBoot.java b/Sevice/ServerBoot.java new file mode 100644 index 0000000..f8ff129 --- /dev/null +++ b/Sevice/ServerBoot.java @@ -0,0 +1,17 @@ + +public class ServerBoot { + public static void main(String[]args) throws Exception + { + try + { + Runtime.getRuntime().exec("./shell/start_http.sh"); + Runtime.getRuntime().exec("./shell/start_porxy.sh"); + + } + catch (Exception E) + { + System.out.println(E.getMessage()); + } + } +} + diff --git a/Sevice/desktop/linwinhttp.desktop b/Sevice/desktop/linwinhttp.desktop new file mode 100644 index 0000000..8a9e49e --- /dev/null +++ b/Sevice/desktop/linwinhttp.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher +X-Deepin-AppID=com.qq.music +Categories=Utility; +Comment=qqmusic application for linux +Exec=/usr/LinWinHttp/start_linwinhttp %U +Icon=/usr/LinWinHttp/out/production/LinWinHttpServer/img/logo.png +Name=LinWin Http Server +GenericName=LinWin Http Server +Name[zh_CN]=LinWin Http Server +Terminal=false +Type=Application +X-Deepin-Vendor=user-custom diff --git a/Sevice/shell/start_http.sh b/Sevice/shell/start_http.sh new file mode 100644 index 0000000..e77ba4f --- /dev/null +++ b/Sevice/shell/start_http.sh @@ -0,0 +1,4 @@ +#! /bin/bash + +cd ../server/ +java -jar LinWinHttp.jar \ No newline at end of file diff --git a/Sevice/shell/start_porxy.sh b/Sevice/shell/start_porxy.sh new file mode 100644 index 0000000..d34ebf6 --- /dev/null +++ b/Sevice/shell/start_porxy.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd ../proxy/ +java -jar LinWin_Proxy.jar \ No newline at end of file diff --git a/Sevice/systemd/linwinhttp.service b/Sevice/systemd/linwinhttp.service new file mode 100644 index 0000000..faa9d3a --- /dev/null +++ b/Sevice/systemd/linwinhttp.service @@ -0,0 +1,11 @@ +[Unit] +Description=LinWin-Http-Server +After=network.target + +[Service] +ExecStart=/usr/LinWinHttp/sys/linwinhttp_start.sh +Default-Start=/usr/LinWinHttp/sys/linwinhttp_start.sh +Defualt-Stop=/bin/linwinhttp -server_stop + +[Install] +WantedBy=muti-user.target