Commit 6a24b007 by 浔阳陌客

2022-04-08

parent 0a99e063
......@@ -2,6 +2,8 @@
[【腾讯文档】VPS代理服务器汇总](https://doc.weixin.qq.com/sheet/e3_m_MkZpCXRRqtUh?scode=AL8ApAckAAYPn1LP4CAIcAzAY_APg&tab=BB08J2)
## 远程连接方式
### Mac
......@@ -23,6 +25,8 @@
注:不同的系统在执行一键命令之前,务必检查映射路径。具体参数请查看命令参数一栏
## 一键执行命令
格式:
......@@ -33,7 +37,7 @@ cmd /k 映射地址\basicInit.bat 主机编号 宽带账号 宽带密码
举例:
```
cmd /k \\tsclient\windows-proxy-init\basicInit.bat windows-chongqing05 02320374626 151314
cmd /k \\tsclient\windows-proxy-init\basicInit.bat chongqing05 02320374626 151314
```
......@@ -58,5 +62,5 @@ cmd /k \\tsclient\windows-proxy-init\basicInit.bat windows-chongqing05 023203746
5. 自动拨号时,如果遇到初始化时能宽带连接,初始化重启主机后宽带连接失败。**解决办法:**将宽带连接设置成任何人可连接。
6. 针对部分vps遇到频繁意外终止java的情况,在start.bat的第一行加入`:loop`,最后一行加入`goto loop`,以此死循环运行java
6. 部署时,遇到tar.exe不存在时,刷新映射文件夹,再重新部署即可
......@@ -71,7 +71,7 @@ echo %pppoename%
rasdial %pppoename% %account% %password%
echo.
echo check internet
ping 1.2.4.8 -n 2 | findstr TTL >nul
ping 1.2.4.8 -n 4 | findstr TTL >nul
if "%errorlevel%" EQU "1" (
echo 连接失败
goto PppoeConnect
......@@ -124,7 +124,7 @@ if NOT EXIST %jrefolder%\bin\java.exe (
goto batexit
)
move %jrefolder% "%ProgramFiles%"\JAVA
erase %jregz%
erase %desktop%\%jregz%
:ready_init_client
echo.
......@@ -143,13 +143,12 @@ echo pause
) > %deskclientfolder%\run.bat
echo create restart.bat
(
echo @echo off
echo for ^/F %%%%a in ('wmic process where ^^(Name^^="java.exe"^^) get ParentProcessId ^^^| findstr "[0-9]"') do ^( taskkill /f /pid %%%%a ^)
echo taskkill /f /im java.exe
echo C:\Users\Administrator\Desktop\client\start.bat
) > %deskclientfolder%\kill_start.bat
echo create kill_start.bat
erase %deskclientfolder%\kill_start.bat 2>nul
echo @echo off >> %deskclientfolder%\kill_start.bat
echo for ^/F %%%%a in ('wmic process where ^^(Name^^="java.exe"^^^)get ParentProcessId ^^^| findstr "[0-9]"') do ^( taskkill /f /pid %%%%a ^) >> %deskclientfolder%\kill_start.bat
echo taskkill /f /im java.exe >> %deskclientfolder%\kill_start.bat
echo C:\Users\Administrator\Desktop\client\start.bat >> %deskclientfolder%\kill_start.bat
echo create start.bat
......@@ -157,7 +156,6 @@ echo windows-%proxyhostname% %pppoename% %account% %password%
(
echo @C:\Users\Administrator\Desktop\client\run.bat windows-%proxyhostname% %pppoename% %account% %password%
)> %deskclientfolder%\start.bat
@echo off
(
echo Windows Registry Editor Version 5.00
......@@ -238,6 +236,7 @@ echo.
echo ----- init will over -----
echo.
echo system will reboot at 0s later
shutdown -r -t 0
msg * everthing is ok!
exit /b 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment