Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
windows-proxy-init
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶腾飞
windows-proxy-init
Commits
6a24b007
Commit
6a24b007
authored
Apr 08, 2022
by
浔阳陌客
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022-04-08
parent
0a99e063
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
README.md
+6
-2
basicInit.bat
+9
-10
No files found.
README.md
View file @
6a24b007
...
...
@@ -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不存在时,刷新映射文件夹,再重新部署即可
basicInit.bat
View file @
6a24b007
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment