{"id":289995,"date":"2024-02-15T21:14:18","date_gmt":"2024-02-15T13:14:18","guid":{"rendered":"https:\/\/gulass.cn\/azxnjcjlxtpz.html"},"modified":"2024-02-15T21:14:18","modified_gmt":"2024-02-15T13:14:18","slug":"azxnjcjlxtpz","status":"publish","type":"post","link":"https:\/\/gulass.cn\/azxnjcjlxtpz.html","title":{"rendered":"\u5b89\u88c5\u865a\u62df\u673a\u521b\u5efalinux\u7cfb\u7edf\u914d\u7f6ejdk\u914d\u7f6etomcat\u90e8\u7f72\u9879\u76ee\u4ecb\u7ecd"},"content":{"rendered":"

\u6700\u8fd1\u60f3\u8981\u7814\u7a76\u4e0blinux\uff0c\u6240\u4ee5\u5c31\u642d\u4e86\u4e2alinux\u7cfb\u7edf<\/a>\u6765\u914d\u7f6e\u670d\u52a1\u5668\u73a9\u513f\u3002\u8fd9\u513f\u5206\u4e86\u4e2a\u76ee\u5f55\uff0c\u5047\u5982\u65e9\u5df2\u5b89\u88c5\u597d\u865a\u62df\u673a\u6216\u5219linux\u7cfb\u7edf\u7684\u7537\u5b50\u4f34\u53ef\u4ee5\u76f4\u63a5\u8df3\u8fc7\u540e\u9762\u7684\u5b89\u88c5\u4ecb\u7ecd\uff0c\u76f4\u63a5\u770b\u5e03\u7f72\u3002<\/p>\n

\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u603b\u6b65\u9aa4\u8bf4\u660e\u4e0b\u8f7d\u987b\u8981\u7684\u6750\u6599\uff08\u4e0d\u4ec5linux\u955c\u50cf\u6587\u4ef6\uff0c\u5176\u4ed6\u53ef\u5728\u6211\u535a\u5ba2\u514d\u8d39\u4e0b\u8f7d\uff09\uff0c\u8fd9\u513f\u6211\u7528\u5230\u7684\u4e3b\u8981\u6709<\/p>\n

1\uff09\u865a\u62df\u673aVmware\uff0c<\/p>\n

2\uff09linux\u955c\u50cf\u6587\u4ef6CentOS-6.5-x86_64-bin-DVD1.iso<\/p>\n

3\uff09\u670d\u52a1\u5668apache-tomcat-7.0.105.tar.gz<\/p>\n

4\uff09jdk7u79linuxx64.tar.gz<\/p>\n

5\uff09securecrt-x64.rar<\/p>\n

6\uff09WinSCP.zip\u5b89\u88c5\u865a\u62df\u673a\u521b\u5efalinux\u7cfb\u7edf\u914d\u7f6ejdk\u914d\u7f6etomcat\u5e03\u7f72\u9879\u76ee\u4e8c\u3001\u5b89\u88c5\u865a\u62df\u673a<\/p>\n

\u4e4b\u540e\u8f93\u5165\u89e3\u538b\u540e\u63d0\u4f9b\u7684\u79d8\u94a5\u5373\u53ef!<\/p>\n

\u4e09\u3001\u521b\u5efalinux\u7cfb\u7edf<\/p>\n

\u6253\u5f00\u865a\u62df\u673a\uff0c\u4e4b\u540e\u5f00\u59cb\u521b\u5efa\u65b0\u7684\u865a\u62df\u673a<\/p>\n

\u4e4b\u540e\u7b49\u521b\u5efa\u7ed3\u675f<\/p>\n

\u56db\u3001\u914d\u7f6e\u524d\u7684\u6253\u7b97<\/p>\n

\u6253\u7b97\u597d\u8fdb\u884c\u64cd\u4f5clinux\u7684\u5de5\u5177\uff0c\u6211\u8fd9\u513f\u662f\u4f7f\u7528SecureCRT\u548cwinScp\uff0cSecureCRT\u8fdb\u884c\u4ee3\u7801\u64cd\u4f5c\uff0cwinScp\u8fdb\u884c\u6587\u4ef6\u53ef\u89c6\u5316\u7684\u8054\u901a\u64cd\u4f5c\u3002<\/p>\n

\u56e0\u4e3a\u53ef\u80fd\u4f1a\u6d89\u53ca\u5230\u4e00\u4e9b\u6743\u9650\u95ee\u9898\uff0c\u6240\u4ee5\u8fd9\u513f\u76f4\u63a5\u7528root\u7528\u6237\u767b\u5165\uff0c\u5305\u62ecSecureCRT\u548cwinScp\u4e5f\u662f\u76f4\u63a5\u7528root\u7528\u6237\u767b\u5165\uff0c\u5bc6\u7801\u662f\u521a\u624d\u81ea\u5b9a\u4e49\u7684\u5bc6\u7801\u3002<\/p>\n

\u83b7\u53d6linux\u7cfb\u7edf\u7684ip\uff0c\u4e4b\u540e\u5728\u672c\u5730\u8bd5\u8bd5\u53ef\u5426ping\u901a<\/p>\n

\u53f3\u952e\uff0c\u70b9\u51fb\u8fd9\u4e2a\u9009\u9879<\/p>\n

\u4e4b\u540e\u8f93\u5165ifconfig<\/p>\n

\u4e4b\u540e\u518d\u672c\u5730ping\u77a7\u77a7\u662f\u5426\u80fdping\u901a<\/p>\n

\u80fdping\u901a\uff0c\u8bf4\u660e\u6ca1\u6709\u95ee\u9898\uff0c\u3002<\/p>\n

\u6ce8\uff1a\u5176\u5b9e\u4f60\u4e5f\u53ef\u4ee5\u66f4\u6539\u56fa\u5b9a\u7684ip\u5730\u5740\u56fd\u5185linux\u4e3b\u673a\uff0c\u53ea\u987b\u8981\u66f4\u6539etc\/sysconfig\/network-scripts\/ifcfg-etho\u6587\u4ef6\u5373\u53ef\uff0c\u8fd9\u662f\u6211\u4e2a\u4eba\u7684\u7b80\u5355\u914d\u7f6e<\/p>\n

DEVICE=\u201ceth0\u201d<\/p>\n

BOOTPROTO=\u201cnone\u201d<\/p>\n

HWADDR=\u201c00:0C:29:68:52:69\u201d<\/p>\n

IPV6INIT=\u201cyes\u201d<\/p>\n

NM_CONTROLLED=\u201cyes\u201d<\/p>\n

ONBOOT=\u201cyes\u201d<\/p>\n

TYPE=\u201cEthernet\u201d<\/p>\n

UUID=\u201ca844414a-af21-44b4-bedd-ac6fb18a7dc4\u201d<\/p>\n

IPADDR=\u201c192.168.121.128\u201d<\/p>\n

NETMASK=\u201c255.255.255.0\u201d<\/p>\n

GATEWAY=\u201c192.168.121.1\u201d<\/p>\n

\u4e94\u3001\u914d\u7f6ejdk<\/p>\n

\u8fd9\u513f\u4f7f\u7528\u7684\u662fjdk7u79linuxx64.tar.gz\u3002<\/p>\n

\u603b\u6b65\u9aa4==>\u6dfb\u52a0\u5b89\u88c5\u5305\uff0c\u89e3\u538b\uff0c\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/a>\uff0c\u6d4b\u8bd5<\/p>\n

\u7528winScp\u8054\u63a5\u4e0alinux\uff0c\u5728usr\u76ee\u5f55\u4e0b\u521b\u5efajava\u6587\u4ef6\u5939\uff0c\u4e4b\u540e\u5c06\u5b89\u88c5\u5305copy\u7f6e\u4e8ejava\u6587\u4ef6\u5939\u4e0b\u8fb9<\/p>\n

linux\u7684tomcat_linux\u7684tomcat_linux\u7684tomcat<\/p>\n

\u5c06\u5b89\u88c5\u5305\u76f4\u63a5\u901a\u8fc7winScp\u590d\u5236\u5230java\u6587\u4ef6\u4e0b\u8fb9\uff08ctrl+c\uff0cctrl+v\uff09<\/p>\n

\u7528winScp\u8054\u63a5\u4e0alinux\uff0c\u5207\u6362\u5230ava\u76ee\u5f55\u91cc\u8fb9\uff0c\u901a\u8fc7tarxvf\u547d\u4ee4<\/a>\u89e3\u538bjdk\u5b89\u88c5\u5305\uff08\u5047\u5982\u4e0d\u786e\u5b9a\u81ea\u5df1\u5728\u90a3\u4e2a\u76ee\u5f55\u3002\u53ef\u4ee5\u901a\u8fc7ls\u547d\u4ee4\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u800c\u4e14\u4e0ewinScp\u7684\u6587\u4ef6\u76ee\u5f55\u5bf9\u6bd4\u5373\u53ef\uff09<\/p>\n

\u89e3\u538b\u7ed3\u675f\uff01\uff01\uff01\u914d\u7f6ejdk\u73af\u5883\u53d8\u91cf<\/p>\n

\u76f4\u63a5\u901a\u8fc7winScp\u6253\u5f00etc\/profile\u6587\u4ef6<\/p>\n

\u4e4b\u540e\u914d\u7f6e\u8ddfwindow\u5dee\u4e0d\u591a\u7684\u73af\u5883\u53d8\u91cf\uff0c\u5728\u6587\u4ef6\u9876\u90e8\u52a0\u4e0a\u8fd9\u56db\u884c<\/p>\n

\u4e4b\u540e\u70b9\u51fb\u4fdd\u5b58\uff08\u6ce8\u610f\uff0c\u8fd9\u513f\u987b\u8981\u7528\u5230root\u7528\u6237\u767b\u9646linux\u7684tomcat<\/strong>\uff0c\u4e00\u5f00\u59cb\u6211\u7528\u81ea\u5b9a\u4e49\u7528\u6237\u767b\u5165\u63d0\u793a\u6211\u6ca1\u6cd5\u66f4\u6539\uff0c\u6743\u9650\u4e0d\u8db3\uff09\u6d4b\u8bd5<\/p>\n

\u9996\u5148\u901a\u8fc7source\/etc\/profile\u5237\u65b0profile\u6587\u4ef6\uff0c<\/p>\n

\u518d\u901a\u8fc7java-version\u67e5\u770bjdk\u7248\u672c<\/p>\n

\u5047\u5982\u6210\u529f\u663e\u793ajdk\u7248\u672c\uff0c\u5219\u8bf4\u660e\u914d\u7f6e\u6210\u529f\u516d\u3001\u914d\u7f6etomcat<\/p>\n

tomcat\u7684\u5b89\u88c5\u914d\u7f6e\u548cjdk\u7684\u57fa\u672c\u4e00\u6837<\/p>\n

\u603b\u6b65\u9aa4==>\u6dfb\u52a0\u5b89\u88c5\u5305\uff0c\u89e3\u538b\uff0c\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u6d4b\u8bd5<\/p>\n

\u5728usr\u76ee\u5f55\u4e0b\u521b\u5efatomcat\u6587\u4ef6\u5939\uff0c\u4e4b\u540e\u5c06\u5b89\u88c5\u5305copy\u7f6e\u4e8etomcat\u6587\u4ef6\u5939\u4e0b\u8fb9<\/p>\n

linux\u7684tomcat_linux\u7684tomcat_linux\u7684tomcat<\/p>\n

\u89e3\u538btomcat<\/p>\n

\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n

\u540c\u6837\u6253\u5f00etc\/profile\u6587\u4ef6linux\u7684tomcat<\/strong>\uff0c\u6dfb\u52a0\u914d\u7f6e<\/p>\n

\u6d4b\u8bd5<\/p>\n

\u9996\u5148\u901a\u8fc7source\/etc\/profile\u5237\u65b0profile\u6587\u4ef6\uff0c<\/p>\n

\u4e4b\u540e\u76f4\u63a5\u542f\u52a8tomcat\uff0c\u901a\u8fc7\u672c\u5730\u8bbf\u95ee\u3002<\/p>\n

\u6b65\u5165tomcat\u7684bin\u76ee\u5f55\uff0c\u901a\u8fc7startup.sh\u542f\u52a8tomcat<\/p>\n

\u4e4b\u540e\u5728\u672c\u5730\u76f4\u63a5\u6309\u7167ip\u548c\u7aef\u53e3\u8bbf\u95ee<\/p>\n

\u53d1\u89c9\u8bbf\u95ee\u4e0d\u5230\uff0c\u540e\u6765\u60f3\u60f3\u53ef\u80fd\u662f\u9632\u706b\u5899\u7684\u8bf1\u56e0\u3002\u901a\u8fc7<\/p>\n

serviceiptablesstatus\u67e5\u770b\u53d1\u89c9\u9632\u706b\u5899\u679c\u7136\u662f\u5f00\u7740\u7684\uff0c\u6240\u4ee5\u8fd9\u513f\u901a\u8fc7serviceiptablesstop\u4e34\u65f6\u5c06\u9632\u706b\u5899\u5173\u6389\uff08\u6216\u5219\u4e5f\u53ef\u4ee5\u901a\u8fc7chkconfigiptablesoff\u7528\u5c31\u5173\u6389\uff0c\u4e0d\u8fc7\u8bbe\u7f6e\u5b8c\u987b\u8981\u91cd\u542f\uff09.<\/p>\n

\u5173\u6389\u540e\u672c\u5730\u518d\u901a\u8fc7ip+\u7aef\u53e3\u6210\u529f\u8bbf\u95ee\u5230linux\u7684tomcat<\/strong>\u670d\u52a1\u5668<\/p>\n

\u4e03\u3001\u90e8\u7f72\u9879\u76ee<\/p>\n

\u540e\u9762\u65e9\u5df2\u5e03\u7f72\u597d\u670d\u52a1\u5668\u4e86\uff0c\u63a5\u51fa\u6765\u53ea\u8981\u5c06\u9879\u76ee\u5e03\u7f72\u8d77\u6765\u5373\u53ef\u3002\u8fd9\u513f\u5e03\u7f72\u9879\u76ee\u4e00\u5171\u6709\u4e24\u79cd\u65b9\u6cd5\u3002\u63a5\u51fa\u6765\u4f1a\u90fd\u7a0d\u4e3a\u4ecb\u7ecd\u4e0b\u3002<\/p>\n

\u5c06\u9879\u76ee\u6253\u5305\u4e3awar\uff0c\u5c06\u5176\u7f6e\u4e8etomcat\u7684webapp\u76ee\u5f55\u4e0b\uff0c\u624b\u52a8\u89e3\u538b\u8bbf\u95ee\u3002<\/p>\n

\u8ddf\u4e0a\u9762\u4e00\u6837\uff0c\u76f4\u63a5\u901a\u8fc7winScp\u5c06war\u5305\u653e\u5230webapp\u4e0b\u8fb9<\/p>\n

linux\u7684tomcat_linux\u7684tomcat_linux\u7684tomcat<\/p>\n

\u4e4b\u540e\u53f3\u952e\u5237\u65b0\uff0c\u5c06\u4f1a\u624b\u52a8\u89e3\u538b<\/p>\n

\u6211\u4eec\u4e4b\u524d\u65e9\u5df2\u542f\u52a8\u4e86\u670d\u52a1\u5668\u4e86\uff0c\u6240\u4ee5\u8fd9\u513f\u987b\u8981\u5c06\u670d\u52a1\u5668\u5173\u6389\u3002\u56e0\u4e3a\u6211\u4eec\u5c31\u5e03\u7f72\u4e86\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u6240\u4ee5\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<\/p>\n

shutdown.sh\u547d\u4ee4\u76f4\u63a5\u5173\u6389\u6240\u6709\u670d\u52a1\u5668\uff0c\u4e4b\u540e\u518d\u901a\u8fc7startup.sh\u542f\u52a8\u9879\u76ee\u3002<\/p>\n

\u542f\u52a8\u5b8c\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8fdb\u884c\u8bbf\u95ee\u4e86\uff0c\u6211\u8fd9\u513f\u7684\u8bbf\u95ee\u8def\u5f84\u4e3a:8080\/MySsh\u3002\u5e76\u4e14\u5374\u8bbf\u95ee\u4e0d\u5230\u9875\u9762<\/p>\n

\u8fd9\u65f6\u4faf\u987b\u8981\u901a\u8fc7winScp\u53bb\u77a7\u77a7tomcat\u7684log\u65e5\u5fd7\u77a7\u77a7\u90a3\u91cc\u51fa\u95ee\u9898\u4e86<\/p>\n

\u4e3b\u8981\u62a5\u9519\u4fe1\u606f\uff1ajava.lang.NoSuchMethodException:org.apache.catalina.deploy.WebXmladdFilter.<\/p>\n

\u901a\u8fc7\u767e\u5ea6\u627e\u5230\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n

\u66f4\u6539tomcat\u4e0b\u7684conf\u6587\u4ef6\u5939\u4e0b\u7684content.xml\u7684\u914d\u7f6e,\u5728\u4e2d\u6dfb\u52a0<\/p>\n

\u91cd\u542ftomcat\uff0c\u6210\u529f\u8bbf\u95ee\u9879\u76ee<\/p>\n

2.\u76f4\u63a5\u5c06\u9879\u76ee\u6587\u4ef6copy\u5230tomcat\u7684root\u4e0b\u8fb9<\/p>\n

\u9996\u5148\u5c06\u4e4b\u524d\u5e03\u7f72\u7684war\u5305\u4ee5\u53ca\u89e3\u538b\u7684\u6587\u4ef6\u5168\u90e8\u5220\u6389\u3002\u4e4b\u540e\u5c06tomcat\u7684root\u4e0b\u8fb9\u7684\u6240\u6709\u6587\u4ef6\u5220\u6389\u3002\u6253\u5f00\u9879\u76ee\uff0c\u5c06\u9879\u76eewebroot\u4e0b\u8fb9\u7684\u6240\u6709\u6587\u4ef6\u590d\u5236\u5230tomcat\u7684root\u91cc\u8fb9\uff0c<\/p>\n

\u91cd\u542ftomcat\u3002\u56e0\u4e3a\u6211\u4eec\u9879\u76ee\u662f\u76f4\u63a5\u7f6e\u4e8etomcat\u7684root\u4e0b\u8fb9\u8fd0\u884clinux \u7535\u5b50\u4e66\uff0c\u8bbf\u95ee\u8def\u5f84\u4e0d\u7528\u52a0\u4e0a\u8def\u5f84\u540d<\/p>\n

:8080\/<\/p>\n

\u8fd0\u884c\u7ed3\u679c\u6210\u529f\u8bbf\u95ee\u5230\u9879\u76ee<\/p>\n

\u4e2a\u4eba\u8ba4\u4e3a\u76f8\u6bd4\u4e8e\u6253\u5305war\uff0c\u8fd9\u4e9b\u5e03\u7f72\u9879\u76ee\u7684\u5f62\u5f0f\u66f4\u6613\u4e8e\u7ef4\u62a4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e09\u3001\u521b\u5efalinux\u7cfb\u7edftomcat\u7684\u5b89\u88c5\u914d\u7f6e\u548cjdk\u7684\u57fa\u672c\u4e00\u6837\u5c06\u9879\u76ee\u6253\u5305\u4e3awar\uff0c\u5c06\u5176\u653e\u5728tomcat\u7684webapp\u76ee\u5f55\u4e0b\uff0c\u81ea\u52a8\u89e3\u538b\u8bbf\u95ee\u3002\u76f4\u63a5\u5c06\u9879\u76ee\u6587\u4ef6copy\u5230tomcat\u7684root\u5e95\u4e0b\u6253\u5f00\u9879\u76ee\uff0c\u5c06\u9879\u76eewebroot\u5e95\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u590d\u5236\u5230tomcat\u7684root\u5e95\u4e0b\uff0c<\/p>\n","protected":false},"author":1,"featured_media":289996,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-289995","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/289995","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=289995"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/289995\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/289996"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=289995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=289995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=289995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}