-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
1. | ||
|
||
create table if not exists new_user select * from user; -- exclude index | ||
|
||
2. | ||
|
||
create table new_user like user; -- create empty table include index | ||
insert into new_user select * from user; -- import data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
prunsrv install ArcService ^ | ||
--DisplayName="ArcService" ^ | ||
--Install=%cd%\prunsrv.exe ^ | ||
--JvmMx=1024M ^ | ||
--JvmMs=256M ^ | ||
--JvmMs=1M ^ | ||
--Jvm=auto ^ | ||
--StartMode=jvm ^ | ||
--StopMode=jvm ^ | ||
--Classpath=starter.jar ^ | ||
--StartClass=com.arc.core.Starter ^ | ||
--StartMethod=start ^ | ||
--StopMode=jvm ^ | ||
--StopClass=com.arc.core.Starter ^ | ||
--StopMethod=stop ^ | ||
--StdOutput=out.txt ^ | ||
--StdError=error.txt | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.arc.core; | ||
|
||
public class Starter { | ||
public static boolean isStart=false; | ||
public static void main(String[] args) { | ||
String mode = args[0]; | ||
if ("start".equals(mode)){ | ||
System.out.println("start"); | ||
start(args); | ||
} | ||
System.out.println("stop"); | ||
} | ||
|
||
public static void start(String[] args) { | ||
isStart=true; | ||
while(isStart) { | ||
try { | ||
Thread.sleep(1000); | ||
} catch (InterruptedException e) { | ||
|
||
} | ||
} | ||
System.out.println("after start loop"); | ||
} | ||
|
||
public static void stop(String[] args) { | ||
isStart=false; | ||
} | ||
|
||
} |