linux\u67e5\u8be2jdk\u662f\u5426\u5b89\u88c5<\/strong>\uff0c\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n\uff085\uff09\u7f16\u8f91\u73af\u5883\u53d8\u91cfvim\/etc\/profile<\/p>\n
\u8f93\u5165G\uff0c\u5b9a\u4f4d\u5230\u6700\u540e\u4e00\u884c\uff0c\u8f93\u5165i\u6b65\u5165insert\u6a21\u5f0f\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n
exportJAVA_HOME=\/usr\/local\/jdk-11.0.20<\/p>\n
exportPATH=$JAVA_HOME\/bin:$PATH<\/p>\n
exportCLASSPATH=.:$JAVA_HOME\/lib\/dt.jar:$JAVA_HOME\/lib\/tools.jar<\/p>\n
<\/p>\n
\u8f93\u5165\u5b8c\u6bd5\u540e\uff0c\u6309ESC\u4e4b\u540e\u8f93\u5165:wq\u8fdb\u884c\u4fdd\u5b58<\/p>\n
\uff086\uff09\u914d\u7f6e\u5b8c\u6210\u540e\u8fd8\u987b\u8981\u5237\u65b0\u4e00\u4e0bjdk\u8ba9\u4ed6\u91cd\u65b0\u91cd\u65b0\u751f\u6548\u4e00\u4e0b<\/p>\n
source\/etc\/profile<\/p>\n
\uff087\uff09\u68c0\u9a8c\u662f\u5426\u5b89\u88c5\u6210\u529fjava-version\uff0cjava\uff0cjavac<\/p>\n
<\/p>\n
<\/p>\n
\u6ce8\u610f\uff1a\u53ef\u4ee5\u5b89\u88c5\u591a\u4e2ajdk\u7248\u672c\uff0c\u7528\u90a3\u4e2alinux\u547d\u4ee4\u624b\u518c\uff0cJAVA_HOME\u5c31\u6539\u4e3a\u90a3\u4e2a\u7684\u8def\u5f84<\/p>\n
2.jmeter\u4e0b\u8f7d\u4e0e\u5b89\u88c5\uff08linux\uff092.1jmeter\u4e0b\u8f7d\uff08linux\uff09<\/p>\n
ApacheJMeter-DownloadApacheJMeter\u6700\u65b0\u7248\u672c\uff1aApacheJMeter-DownloadApacheJMeter<\/p>\n
\u5386\u53f2\u7248\u672c\uff1aIndexof\/dist\/jmeter\/binaries<\/p>\n
Binaries\uff1a\u4e8c\u8fdb\u5236\u7248\uff0c\u5df2\u7f16\u8bd1\u597d\uff0c\u53ef\u76f4\u63a5\u6267\u884c\uff1b<\/p>\n
Source\uff1a\u6e90\u4ee3\u7801\u7248\uff0c\u987b\u8981\u81ea\u5df1\u7f16\u8bd1\uff1b<\/p>\n
tgz\u540e\u7f00\u540d\u7684\u4e3aLinux\u4e0b\u4f7f\u7528\u7684\u5305<\/p>\n
zip\u540e\u7f00\u540d\u7684\u4e3aWindows\u3001macOS\u4e0b\u4f7f\u7528\u7684\u5305<\/p>\n
2.2jmeter\u5b89\u88c5\uff08linux\uff09<\/p>\n
\u524d\u63d0\uff1a\u5df2\u5b89\u88c5jdk<\/p>\n
<\/p>\n
\uff081\uff09\u5c06\u4e0b\u8f7d\u597d\u7684jmeter\uff08linux\uff09\u7684\u5b89\u88c5\u5305linux\u670d\u52a1\u5668\u4ee3\u7ef4\uff0c\u7f6e\u4e8emySofa\u91cc<\/p>\n
\u76f4\u63a5\u7528xftp\u5c31\u53ef\u4ee5<\/p>\n
<\/p>\n
\uff082\uff09\u5c06jmeter\uff08linux\uff09\u538b\u7f29\u5305\u89e3\u538b\u5230\u67d0\u4e2a\u76d8\u6587\u4ef6\u4e2d<\/p>\n
tar-zxvfapache-jmeter-5.6.2.tgz-C\/usr\/local\/\uff0c-C\u8868\u793a\u6307\u5b9a\u89e3\u538b\u5230\u7684\u76ee\u5f55<\/p>\n
<\/p>\n
\uff083\uff09\u9a8c\u8bc1\uff0c\u6b65\u5165bin\u76ee\u5f55<\/p>\n
\u8f93\u5165shjmeter.sh-v<\/p>\n
<\/p>\n
\uff084\uff09\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff08\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u4efb\u610f\u76ee\u5f55\u8f93\u5165jemter\uff09vim\/etc\/profile<\/p>\n
\u6307\u4ee4cd..\u8fd4\u56de\u4e0a\u7ea7\u76ee\u5f55<\/p>\n
\u8f93\u5165G\uff0c\u5b9a\u4f4d\u5230\u6700\u540e\u4e00\u884c\uff0c\u8f93\u5165i\u6b65\u5165insert\u6a21\u5f0f\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n
exportJMETER_HOME=\/usr\/local\/apache-jmeter-5.6.2<\/p>\n
exportPATH=$JMETER_HOME\/bin:$PATH<\/p>\n
<\/p>\n
\u8f93\u5165\u5b8c\u6bd5\u540e\uff0c\u6309ESC\u4e4b\u540e\u8f93\u5165:wq\u8fdb\u884c\u4fdd\u5b58<\/p>\n
\uff085\uff09\u914d\u7f6e\u5b8c\u6210\u540e\u8fd8\u987b\u8981\u5237\u65b0\u4e00\u4e0b\uff0c\u8ba9\u4ed6\u91cd\u65b0\u91cd\u65b0\u751f\u6548\u4e00\u4e0b<\/p>\n
source\/etc\/profile<\/p>\n
<\/p>\n
\uff086\uff09\u9a8c\u8bc1\u5728\u4efb\u610f\u76ee\u5f55\uff0c\u8f93\u5165jmeter-v<\/p>\n
<\/p>\n
3.ant\u4e0b\u8f7d\u4e0e\u5b89\u88c5\uff08linux\uff093.1ant\u4e0b\u8f7d\uff08linux\uff09<\/p>\n
\u4e0b\u8f7d\u5730\u5740\uff1aApacheAnt-Welcome<\/p>\n
<\/p>\n
3.2ant\u5b89\u88c5\uff08linux\uff09<\/p>\n
\uff081\uff09\u5c06\u4e0b\u8f7d\u597d\u7684ant\uff08linux\uff09\u7684\u5b89\u88c5\u5305\uff0c\u7f6e\u4e8emySofa\u91cc<\/p>\n
\u76f4\u63a5\u7528xftp\u5c31\u53ef\u4ee5<\/p>\n
<\/p>\n
<\/p>\n
\uff082\uff09\u5c06ant\uff08linux\uff09\u538b\u7f29\u5305\u89e3\u538b\u5230\u67d0\u4e2a\u76d8\u6587\u4ef6\u4e2d<\/p>\n
tar-zxvfapache-ant-1.10.14-bin.tar.gz-C\/usr\/local\/\uff0c-C\u8868\u793a\u6307\u5b9a\u89e3\u538b\u5230\u7684\u76ee\u5f55<\/p>\n
\uff083\uff09\u6b65\u5165ant\u76ee\u5f55\uff0c\u914d\u7f6e\u73af\u5883\u53d8\u91cfvim\/etc\/profile<\/p>\n
<\/p>\n
\uff084\uff09\u7f16\u8f91\u73af\u5883\u53d8\u91cf<\/p>\n
\u8f93\u5165G\uff0c\u5b9a\u4f4d\u5230\u6700\u540e\u4e00\u884c\uff0c\u8f93\u5165i\u6b65\u5165insert\u6a21\u5f0f\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n
exportANT_HOME=\/usr\/local\/apache-ant-1.10.14<\/p>\n
exportPATH=$ANT_HOME\/bin:$PATH<\/p>\n
<\/p>\n
\u8f93\u5165\u5b8c\u6bd5\u540e\uff0c\u6309ESC\u4e4b\u540e\u8f93\u5165:wq\u8fdb\u884c\u4fdd\u5b58<\/p>\n
\uff085\uff09\u914d\u7f6e\u5b8c\u6210\u540e\u8fd8\u987b\u8981\u5237\u65b0\u4e00\u4e0b\uff0c\u8ba9\u4ed6\u91cd\u65b0\u91cd\u65b0\u751f\u6548\u4e00\u4e0b<\/p>\n
source\/etc\/profile<\/p>\n
\uff086\uff09\u9a8c\u8bc1<\/p>\n
<\/p>\n
4.tomcat\u4e0b\u8f7d\u4e0e\u5b89\u88c5\uff08linux\uff094.1tomcat\u4e0b\u8f7d\uff08linux\uff09--\u6309\u7167\u81ea\u5df1\u7684\u987b\u8981\u9009\u62e9\u7248\u672c<\/p>\n
\u4e0b\u8f7d\u5730\u5740\uff1aApacheTomcat\u00ae-ApacheTomcat9SoftwareDownloads<\/p>\n
<\/p>\n
4.2tomcat\u5b89\u88c5\uff08linux\uff09<\/p>\n
\uff081\uff09\u5c06\u4e0b\u8f7d\u597d\u7684tomcat\uff08linux\uff09\u7684\u5b89\u88c5\u5305\uff0c\u7f6e\u4e8emySofa\u91cc<\/p>\n
\u76f4\u63a5\u7528xftp\u5c31\u53ef\u4ee5<\/p>\n
<\/p>\n
<\/p>\n
\uff082\uff09\u5c06tomcat\uff08linux\uff09\u538b\u7f29\u5305\u89e3\u538b\u5230\u67d0\u4e2a\u76d8\u6587\u4ef6\u4e2d<\/p>\n
tar-zxvfapache-tomcat-9.0.82.tar.gz-C\/usr\/local\/\uff0c-C\u8868\u793a\u6307\u5b9a\u89e3\u538b\u5230\u7684\u76ee\u5f55<\/p>\n
<\/p>\n
\uff083\uff09\u6b65\u5165tomcat\u76ee\u5f55\uff08apache-tomcat-9.0.82\/conf\uff09\uff0c\u66f4\u6539\u7aef\u6807\u8bedvimserver.xml<\/p>\n
<\/p>\n
\u8f93\u5165i\u6b65\u5165insert\u6a21\u5f0f\uff0c\u9ed8\u8ba4\u4e3a8080linux\u67e5\u8be2jdk\u662f\u5426\u5b89\u88c5<\/strong>\uff0c\u6539\u4e3a8580<\/p>\n\u8f93\u5165\u5b8c\u6bd5\u540e\uff0c\u6309ESC\u4e4b\u540e\u8f93\u5165:wq\u8fdb\u884c\u4fdd\u5b58<\/p>\n
\uff084\uff09\u4fdd\u5b58\u540e\uff0c\u6b65\u5165bin\u76ee\u5f55\uff0c.\/startup.sh\uff0c\u542f\u52a8tomcat<\/p>\n
<\/p>\n
\uff085\uff09\u67e5\u770b\u662f\u5426\u542f\u52a8\u6210\u529f\uff0c\u5e76\u8bbf\u95eetomcat--ip:8580<\/p>\n
\u67e5\u770b\u662f\u5426\u542f\u52a8\u6210\u529f\uff1aps-ef|greptomcat<\/p>\n
\u8bbf\u95eeip:8580\uff08ip\u4e3a\u865a\u62df\u673a\u7684ip\uff09<\/p>\n
<\/p>\n
\u80fd\u8bbf\u95ee\uff0c\u5219\u5b89\u88c5\u6210\u529f<\/p>\n
\uff086\uff09\u67e5\u770btomcat\u7248\u672c<\/p>\n
<\/p>\n
5.jenkins\u4e0b\u8f7d\u4e0e\u5b89\u88c5\uff08linux\uff095.1jenkins\u4e0b\u8f7d\uff08linux\uff09<\/p>\n
\u4e0b\u8f7d\u5730\u5740\uff1aJenkinsdownloadanddeployment<\/p>\n
\uff08PastReleases\u4e3a\u5176\u4ed6\u7248\u672c\uff09<\/p>\n
\u4e0b\u8f7dwindows\u548clinux\u901a\u7528\u7684war\u5305\uff08\u8fd9\u513f\u6211\u9009\u62e9\u7684\u662f2.361.1\u7248\u672c\uff09<\/p>\n
<\/p>\n
<\/p>\n
5.2jenkins\u5b89\u88c5\uff08linux\uff09<\/p>\n
\u524d\u63d0\uff1a\u65e9\u5df2\u5b89\u88c5jdk\u3001tomcat<\/p>\n
\uff081\uff09jenkins.war\u5305\u653e\u7f6etomcat\u7684webapps\u76ee\u5f55\u4e0b\uff08\u501f\u52a9xftp\u8f6f\u4ef6\uff09<\/p>\n
<\/p>\n
\uff082\uff09\u91cd\u542ftomcat\u670d\u52a1\uff1a\u6b65\u5165tomcat\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684bin\u76ee\u5f55<\/p>\n
\u2460\u5173\u95edtomcat\u670d\u52a1.\/shutdown.sh<\/p>\n
\u67e5\u770btomcat\u670d\u52a1\u7684\u72b6\u6001ps-ef|greptomcat\uff08\u51fa\u73b0\u53f3\u56fe\u7684\u4fe1\u606f\u4ee3\u8868\u5df2\u5173\u6389\uff09<\/p>\n
<\/p>\n
\u2461\u6253\u5f00tomcat\u670d\u52a1\uff0c\u5728bin\u76ee\u5f55\u4e0b<\/p>\n
\u5f00\u542ftomcat\u670d\u52a1\uff1a.\/startup.sh<\/p>\n
\u67e5\u770btomcat\u670d\u52a1\u7684\u72b6\u6001ps-ef|greptomcat\uff08\u51fa\u73b0\u53f3\u56fe\u7684\u4fe1\u606f\u4ee3\u8868\u5df2\u542f\u52a8\uff09<\/p>\n
\uff083\uff09\u8bbf\u95eejenkins\uff1a:8580\/jenkins<\/p>\n
<\/p>\n
\u7b2c\u4e00\u6b21\u542f\u52a8\u6709\u70b9\u6162\uff0c\u8010\u5fc3\u7b49\u5f85\u5373\u53ef<\/p>\n
\uff08\u81f3\u6b64\uff0c\u5b89\u88c5\u5b8c\u6bd5\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"
2.2jmeter\u5b89\u88c5\uff08linux\uff09\uff081\uff09\u5c06\u4e0b\u8f7d\u597d\u7684jmeter\uff08linux\uff09\u7684\u5b89\u88c5\u5305\uff0c\u653e\u5728mySofa\u91cc4.2tomcat\u5b89\u88c5\uff08linux\uff09\u524d\u63d0\uff1a\u5df2\u7ecf\u5b89\u88c5jdk\u3001tomcat\uff081\uff09jenkins.war\u5305\u653e\u7f6etomcat\u7684webapps\u76ee\u5f55\u4e0b\uff08\u5229\u7528xftp\u8f6f\u4ef6\uff09<\/p>\n","protected":false},"author":1,"featured_media":292961,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[2982,1212,2981,2980],"class_list":["post-292960","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-i-19","tag-s-9","tag-t-11","tag-t-10"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/292960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=292960"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/292960\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/292961"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=292960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=292960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=292960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}