Deployment Services script under Windows

Source: Internet
Author: User
Tags pscp

1Chcp650012 SetHome_dir=Kp_home3 Setpackage_dir=/root/Java_source4 SetConfig_home=Anydir5 Setresource_path=/home/frank/opensource6 SetExchange_dir=\exchange.90km.com\Exchange7 Setremote_host=192.168.80.848 SetLogin_user=Root9 SetRemote_passwd=123456Ten  One REM1. Create a working directory A ifexist%home_dir% ( -RD/S/Q%home_dir% - ) the MD%home_dir% - REM2. Enter the working directory - CD%home_dir% -  + REM3. Get the PSCP tool. -xcopy \%exchange_dir%\xf\Pscp.exe +  A REM4. Use PSCP to download the file tomcat. atPscp-l%login_user%-PW%remote_passwd%%remote_host%:/%resource_path%/apache-tomcat-7.0. -. zip. -  - MD Zip - CD Zip - REM5. Download file 7zip using PSCP. -Pscp-l%login_user%-PW%remote_passwd%%remote_host%:/%resource_path%/zip/* . inCd.. / -  to REM6. Download the required package. Gateway, proxy, Gameproxy, KP, gameserver. Download Proxy and KP first + REM6.1 downloads KP ... .... ..... - MD KP the CD KP *Pscp-l%login_user%-PW%remote_passwd%%remote_host%://%package_dir%/kp/dist/Kp.war. $ Panax Notoginseng  - REM6.1 Downloads Kp_config ....... ..... the MD kp_config + CD Kp_config APscp-l%login_user%-PW%remote_passwd%%remote_host%://root/kpgroup/%config_home%/kp_config/* . theCd.. /.. / +  -  $ REM6.2 Downloads Config_config ....... ..... $ REMMD proxy_config - REMCD Proxy_config - REMpscp-l%login_user%-pw%remote_passwd%%remote_host%://root/kpgroup/xf/kp_config/*. the REMCD.. / - Wuyi REM6.2 Download the proxy ... ... ..... the MD Proxy - CD Proxy WuPscp-r-L%login_user%-pw%remote_passwd%%remote_host%://%package_dir%/proxy/dist/* . -Pscp-r-L%login_user%-pw%remote_passwd%%remote_host%:/root/kpgroup/%config_home%/proxy_config/Startup.bat. AboutCdLib/ $Pscp-r-L%login_user%-pw%remote_passwd%%remote_host%:%resource_path%/Jce.jar. -Pscp-r-L%login_user%-pw%remote_passwd%%remote_host%:%resource_path%/Sunjce_provider.jar. -  -Cd.. /.. / A  +  the REM6.3 Download Gateway - MD Gateway $ CD Gateway thePscp-r-L%login_user%-pw%remote_passwd%%remote_host%://%package_dir%/gateway/dist/* . thePscp-r-L%login_user%-pw%remote_passwd%%remote_host%:/root/kpgroup/%config_home%/gateway_config/Startup.bat. the REM6.4 Creating the Gateway configuration file directory the MD gateway_config - CD Gateway_config in REMReplace configuration file thePscp-l%login_user%-PW%remote_passwd%%remote_host%://root/kpgroup/%config_home%/gateway_config/config.properties. theCopy config.properties. \conf\/y AboutCd.. /.. / the  the  the  + REM7. Unzip Tomcat. -. \zip\7z E-SPF apache-tomcat-7.0. -. zip-Otomcat the REM8. Put the specified file under Tomcat.Bayi  theCD. \tomcat\apache-tomcat-7.0. - theRD/S/Q WebApps - MD WebApps - CD WebApps theCopy.. \.. \.. \kp\kp.war. the.. \.. \.. \zip\7z E-SPF Kp.war-OKP the REMDelete the original package the del Kp.war -  the REM9. Replace the configuration file theCopy.. \.. \.. \kp\kp_config\application.properties. \kp\web-inf\classes\/y theCopy.. \.. \.. \kp\kp_config\config.properties. \kp\web-inf\classes\/y94Cd.. \.. \.. the  the  the REM10. Download the cache98 MD Cache About CD Cache -Pscp-r-L%login_user%-pw%remote_passwd%%remote_host%:%resource_path%/memcached-1.4.5-X86.zip.101Pscp-r-L%login_user%-pw%remote_passwd%%remote_host%:%resource_path%/Redis.zip.102 103.. \zip\7z E-SPF memcached-1.4.5-x86.zip-omemcached104.. \zip\7z E-SPF Redis.zip-Oredis the 106Cd..107 REMdownload Python Connector tool;108Pscp-r-L%login_user%-pw%remote_passwd%%remote_host%:%resource_path%/mysql-connector-python-1.0. A-py2.7. msi.

Start the service:

1 REMService startup Scripts2 SetHome_dir=Kp_home3 CD%home_dir%4 5 REMstart Memcache6Start. \cache\memcached\memcached-1.4.5-x86\Memcached.exe7 8 REMStart Redis9Start. \cache\redis\redis\64bit\redis-Server.exeTen  One REMStart proxy A CD Proxy - Start Startup.bat -Cd.. the  - REMLaunch Gateway - CD Gateway - Start Startup.bat +Cd.. -  + REMTomcat A REMCD. \tomcat\apache-tomcat-7.0.55\bin\ at REMStart Catalina.bat Run

In fact, the main thing is to recommend the download tool, you can log in to download files under Linux.

PSCP Download Link: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Deployment Services script under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.