首先我只有一臺雲服務器,要裝不少的應用html
以前裝的是windows OS,用起來感覺通常,不如linux centos順暢;因此想換一下OS,並且像新增更多的應用,好比docker,sonarcube,jacocojava
tomcat:用來作圖片服務器node
nginx: 用來作反向代理linux
Jenkins:用來作持續集成和發佈,端口號5118 【chenziyan 12qwaszx】nginx
還有最最根基的jdkgit
gitgithub
nodejsweb
三個應用docker
Testplatform: 其中包含目錄logo,用做項目的logo,啓停腳本,項目屬性文件;端口號8083apache
511easy: 端口號8085
圖片服務器: 端口號 8051
<?xml version="1.0" encoding="UTF-8"?> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8051" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8444" /> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/img" docBase="C:/pic" reloadable="false"></Context> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> </Engine> </Service> </Server>
1, jenkins中
從Github上拉取代碼,在8085端口發佈
https://github.com/JasmineQian/511easy.git
不需憑據
*/master
通常我選觸發機制:Build periodically H 1 * * *
call C:\Learn8085\8085Kill.bat
cd target
call C:\Learn8085\runLearn8085.bat
exit
郵箱這兒
942812509@qq.com
【511easy】$DEFAULT_SUBJECT