
{"id":2909,"date":"2021-01-08T14:14:31","date_gmt":"2021-01-08T06:14:31","guid":{"rendered":"http:\/\/127.0.0.2\/?p=2909"},"modified":"2021-01-09T18:52:12","modified_gmt":"2021-01-09T10:52:12","slug":"2020java%e5%be%ae%e6%9c%8d%e5%8a%a1%e6%9e%b6%e6%9e%84%e4%b8%80%e4%b9%8blinux","status":"publish","type":"post","link":"https:\/\/www.9713job.com\/?p=2909","title":{"rendered":"2020java\u5fae\u670d\u52a1\u67b6\u6784\u4e00\u4e4bLinux"},"content":{"rendered":"<h2>2020java\u5fae\u670d\u52a1\u67b6\u6784\u4e00\u4e4bLinux<\/h2>\n<h3>Linux\u4ecb\u7ecd\uff1a<\/h3>\n<p>Linux\u64cd\u4f5c\u7cfb\u7edf\u51fa\u73b0\u4e4b\u524d\uff0c\u8fd8\u6709\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u53ebMinix\uff0c\u8be5\u64cd\u4f5c\u7cfb\u7edf\u662f\u7531Andrew\u7684\u5927\u5b66\u6559\u6388\u7814\u53d1\u51fa\u6765\u7684\uff0c\u540d\u4e3aMINIX\uff0c\u4e3a\u4e86\u5411\u5b66\u751f\u8bb2\u8ff0\u64cd\u4f5c\u7cfb\u7edf\u5185\u90e8\u5de5\u4f5c\u539f\u7406\u3002MINIX\u867d\u7136\u5f88\u597d\uff0c\u4f46\u53ea\u662f\u4e00\u4e2a\u7528\u4e8e\u6559\u5b66\u76ee\u7684\u7684\u7b80\u5355\u64cd\u4f5c\u7cfb\u7edf\uff0c\u800c\u4e0d\u662f\u4e00\u4e2a\u5f3a\u6709\u529b\u7684\u5b9e\u7528\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7136\u800c\u6700\u5927\u7684\u597d\u5904\u5c31\u662f\u516c\u5f00\u6e90\u4ee3\u7801\u3002<\/p>\n<p>\u5168\u4e16\u754c\u5b66\u8ba1\u7b97\u673a\u7684\u5b66\u751f\u90fd\u901a\u8fc7\u94bb\u7814MINIX\u6e90\u4ee3\u7801\u6765\u4e86\u89e3\u7535\u8111\u91cc\u8fd0\u884c\u7684MINIX\u64cd\u4f5c\u7cfb\u7edf\uff0c\u82ac\u5170\u8d6b\u5c14\u8f9b\u57fa\u5927\u5b66\u5927\u5b66\u4e8c\u5e74\u7ea7\u7684\u5b66\u751fLinus Torvalds\u5c31\u662f\u5176\u4e2d\u4e00\u4e2a\uff0c\u5728\u5438\u6536\u4e86MINIX\u7cbe\u534e\u7684\u57fa\u7840\u4e0a\uff0cLinus\u4e8e1991\u5e74\u5199\u51fa\u4e86\u5c5e\u4e8e\u81ea\u5df1\u7684Linux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7248\u672c\u4e3aLinux0.01\uff0c\u662fLinux\u65f6\u4ee3\u5f00\u59cb\u7684\u6807\u5fd7\u3002\u4ed6\u5229\u7528Unix\u7684\u6838\u5fc3\uff0c\u53bb\u9664\u7e41\u6742\u7684\u6838\u5fc3\u7a0b\u5e8f\uff0c\u6539\u5199\u6210\u9002\u7528\u4e8e\u4e00\u822c\u8ba1\u7b97\u673a\u7684x86\u7cfb\u7edf\uff0c\u5e76\u653e\u5728\u7f51\u7edc\u4e0a\u4f9b\u5927\u5bb6\u4e0b\u8f7d\uff0c1994\u5e74\u63a8\u51fa\u5b8c\u6574\u7684\u6838\u5fc3Version1.0\uff0c\u81f3\u6b64\uff0cLinux\u9010\u6e10\u6210\u4e3a\u529f\u80fd\u5b8c\u5584\u3001\u7a33\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002<!--more--><\/p>\n<p>\u5148\u4e86\u89e3\u4ec0\u4e48\u662f\u5f00\u53d1\u73af\u5883\u3001\u751f\u4ea7\u73af\u5883\u3001\u6d4b\u8bd5\u73af\u5883<\/p>\n<p>\u5f00\u53d1\u73af\u5883\uff1aWindows\u7cfb\u7edf\u4ee5\u53ca\u82f9\u679cmac\u64cd\u4f5c\u7cfb\u7edf<\/p>\n<p>\u751f\u4ea7\u73af\u5883\uff1aLinux\u3001Unix\u3001Windows 2003<\/p>\n<p>Linux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5360\u636e\u5927\u91cf\u7684\u5e02\u573a\u4efd\u989d\uff0cLinux\u4e3b\u8981\u4ee5\u7a33\u5b9a\u3001\u53ef\u9760\u3001\u514d\u8d39\u7684\u7279\u70b9\u6210\u4e3a\u5168\u7403\u4f7f\u7528\u6700\u591a\u7684\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<p>Linux\u64cd\u4f5c\u7cfb\u7edf\u73b0\u5728\u5df2\u7ecf\u6210\u4e3a\u5f00\u53d1\u4eba\u5458\u5fc5\u5907\u7684\u6280\u80fd\uff0c\u5e76\u4e14\u540e\u671f\u5b66\u4e60\u7684\u5404\u79cd\u53ea\u662f\u90fd\u4f1a\u6d89\u53ca\u5230Linux\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<hr \/>\n<h3>Linux\u4e0eWindows\u533a\u522b<\/h3>\n<p>1.Linux\u662f\u5bf9\u5927\u5c0f\u5199\u654f\u611f\uff0c\u800cWindows\u4e0d\u654f\u611f<\/p>\n<p>2.Linux\u4e2d\u4e00\u5207\u7686\u662f\u6587\u4ef6<\/p>\n<p>3.Linux\u4e2d\u6587\u4ef6\u662f\u6ca1\u6709\u540e\u7f00\u7684\uff0c\u4f46\u6709\u7ea6\u5b9a\u4fd7\u6210\u7684\u540e\u7f00<\/p>\n<p>4.Windows\u4e0b\u7684\u8f6f\u4ef6\u4e00\u822c\u662f\u65e0\u6cd5\u76f4\u63a5\u8fd0\u884c\u5728Linux\u4e2d<\/p>\n<hr \/>\n<h3>Linux\u5b89\u88c5<\/h3>\n<p>\u5b89\u88c5Linux\u9700\u8981\u4ee5\u4e0b\u5de5\u5177\uff1a<\/p>\n<p>1.VM\u865a\u62df\u673a<\/p>\n<p>2.Linux\u955c\u50cf\u6587\u4ef6centOS7\u7248\u672c<\/p>\n<p>3.\u56fe\u5f62\u5316\u754c\u9762\uff1aXterm<\/p>\n<hr \/>\n<h3>\u5b89\u88c5Linux\u5e76\u8fde\u63a5Xterm<\/h3>\n<p>\u6253\u5f00Xterm\uff0c\u7136\u540e\u5728VM\u91cc\u8f93\u5165 ip a \u67e5\u770b ip\u5730\u5740<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/06\/1.png\" alt=\"\" width=\"680\" \/><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/06\/2.png\" alt=\"\" width=\"680\" \/><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/06\/3.png\" alt=\"\" width=\"680\" \/><\/p>\n<hr \/>\n<h3>Linux\u57fa\u672c\u64cd\u4f5c<\/h3>\n<p>Linux\u53d6\u6d88\u52a8\u6001ip\uff0c\u8bbe\u7f6e\u56fa\u5b9aip<\/p>\n<p>\u5229\u7528Xterm\u5de5\u5177\uff0c\u627e\u5230\/etc\/sysconfig\/network-scripts\/ifcfg-ens33<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/09\/10.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/09\/11.png\" alt=\"\" width=\"680\" \/><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/09\/12.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><strong>Linux\u76ee\u5f55\u7ed3\u6784<\/strong><\/p>\n<p>Windows\u76ee\u5f55\u5e26\u6709\u76d8\u7b26\u7684\u3002\u5982\uff1aD:<\/p>\n<p>Linux\u76ee\u5f55\u7ed3\u6784\uff1a\u5728Xtram\u8f93\u5165 ls \/\u00a0 \u67e5\u770bLinux\u9876\u7ea7\u76ee\u5f55<\/p>\n<p>Linux\u6811\u72b6\u56fe<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/06\/4.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>root\uff1a\u8be5\u76ee\u5f55\u4e3a\u7cfb\u7edf\u7ba1\u7406\u5458home\u76ee\u5f55<br \/>\nbin\uff1a\u8be5\u76ee\u5f55\u5b58\u653e\u7740\u7ecf\u5e38\u4f7f\u7528\u7684\u547d\u4ee4<br \/>\nboot\uff1a\u8be5\u76ee\u5f55\u5b58\u653e\u7740\u542f\u52a8Linux\u6838\u5fc3\u6587\u4ef6<br \/>\netc\uff1a\u5b58\u653e\u7cfb\u7edf\u7ba1\u7406\u6240\u9700\u8981\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u5b50\u76ee\u5f55<br \/>\nhome\uff1a\u666e\u901a\u7528\u6237\u7684home\u76ee\u5f55<br \/>\nuser\uff1a\u9ed8\u8ba4\u5b89\u88c5\u8f6f\u4ef6\u7684\u76ee\u5f55\uff0c\u7c7b\u4f3c\u4e8eWindows\u7684program files\u76ee\u5f55<br \/>\nopt\uff1a\u662f\u4e3b\u673a\u989d\u5916\u5b89\u88c5\u8f6f\u4ef6\u62dc\u8bbf\u7684\u76ee\u5f55<\/p>\n<hr \/>\n<h3><strong>Linux\u547d\u4ee4<\/strong><\/h3>\n<p>Linux\u4e2d\u57fa\u672c\u547d\u4ee4\u683c\u5f0f\uff1a\u547d\u4ee4 [\u9009\u9879] [\u53c2\u6570]<\/p>\n<p><strong>\u83b7\u53d6Linux\u4e2d\u7684\u4fe1\u606f<\/strong><\/p>\n<p>\u6211\u662f\u8c01\uff1awho am i<\/p>\n<p>\u6211\u5728\u54ea\uff1apwd<\/p>\n<p>\u67e5\u770bip\u5730\u5740\uff1aip a<\/p>\n<p>\u6e05\u5c4f\uff1aclear<\/p>\n<p>ping \u57df\u540d\/ip\uff1aping baidu.com<\/p>\n<hr \/>\n<h3><strong>Linux\u76ee\u5f55\u547d\u4ee4<\/strong><\/h3>\n<p>\u5217\u51fa\u76ee\u5f55\uff1a<br \/>\nls -a\u00a0 \u5217\u51fa\u5168\u90e8\u7684\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6<br \/>\nls-l\u00a0 \u5217\u4e3e\u51fa\u5168\u90e8\u7684\u4fe1\u606f<br \/>\nls-d \u4ec5\u67e5\u770b\u76ee\u5f55\u672c\u8eab<br \/>\nls -ai \u67e5\u770b\u5f53\u524d\u7528\u6237\u76ee\u5f55\u4e0b\u5168\u90e8\u6587\u4ef6\u4ee5\u53ca\u4fe1\u606f<\/p>\n<p>Linux\u4e2d\u7684\u9690\u85cf\u6587\u4ef6\u662f\u4ee5 . \u5f00\u5934\u7684\uff0c\u5f53\u524d\u76ee\u5f55\u4f7f\u7528 .\u00a0 \u8868\u793a\uff0c\u4e0a\u4e00\u7ea7\u76ee\u5f55\u7528 .. \u8868\u793a<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5207\u6362\u76ee\u5f55<\/strong><\/p>\n<p>cd \u5177\u4f53\u8def\u5f84<\/p>\n<p>\u7b26\u53f7 .\u00a0 \u5f53\u524d\u76ee\u5f55<br \/>\n\u7b26\u53f7 .. \u4e0a\u4e00\u7ea7\u76ee\u5f55<br \/>\n\u7b26\u53f7 \/\u00a0 \u6839\u76ee\u5f55<br \/>\n\u7b26\u53f7 ~\u00a0 \u5f53\u524d\u767b\u5f55\u7528\u6237\u7684home\u76ee\u5f55<br \/>\n\u7b26\u53f7 &#8211;\u00a0 \u8fd4\u56de<\/p>\n<p><strong>\u521b\u5efa\u76ee\u5f55<\/strong><\/p>\n<p>\u521b\u5efa\u5355\u4e2a\u76ee\u5f55\uff1amkdir \u76ee\u5f55\u540d<br \/>\n\u521b\u5efa\u591a\u4e2a\u76ee\u5f55\uff1amkdir -p aaa\/bbb\/ccc<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/2.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><strong>\u5220\u9664\u76ee\u5f55<\/strong><\/p>\n<p>\u5220\u9664\u7a7a\u76ee\u5f55 \uff1a rmdir \u76ee\u5f55\u540d<br \/>\n\u5220\u9664\u975e\u7a7a\u76ee\u5f55\uff1a<br \/>\nrm -rf \u76ee\u5f55\u540d<br \/>\n-r\uff1a\u9012\u5f52\u5220\u9664\u76ee\u5f55\u4e0b\u7684\u5168\u90e8\u5185\u5bb9<br \/>\n-f\uff1a\u4e0d\u8be2\u95ee\u76f4\u63a5\u5220\u9664<\/p>\n<p><strong>\u590d\u5236\u76ee\u5f55<\/strong><\/p>\n<p>cp -r \u6e90\u76ee\u5f55 \u76ee\u6807\u76ee\u5f55<br \/>\n-r \uff1a\u9012\u5f52\u590d\u5236\u5168\u90e8\u5185\u5bb9<\/p>\n<p><strong>\u79fb\u52a8\u3001\u91cd\u547d\u540d\u76ee\u5f55<\/strong><\/p>\n<p>mv \u76ee\u5f55\u540d \u65b0\u76ee\u5f55\u540d<br \/>\nmv \u76ee\u5f55\u540d \u8def\u5f84<br \/>\n\u5982\u679c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e0d\u5b58\u5728\uff0c\u5c31\u662f\u91cd\u547d\u540d<br \/>\n\u5982\u679c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u5b58\u5728\uff0c\u5c31\u662f\u79fb\u52a8<\/p>\n<hr \/>\n<h3>Linux\u6587\u4ef6\u547d\u4ee4<\/h3>\n<p><strong>\u521b\u5efa\u6587\u4ef6<\/strong><\/p>\n<p>touch \u6587\u4ef6\u540d1 \u6587\u4ef6\u540d2<\/p>\n<p><strong>\u7f16\u8f91\u6587\u4ef6<\/strong><\/p>\n<p>\u67e5\u770b\u6a21\u5f0f\uff1a vi \u6587\u4ef6\u540d<br \/>\n\u7f16\u8f91\u6a21\u5f0f\uff1a<br \/>\ni\uff1a\u5728\u5f53\u524d\u5149\u6807\u5904\uff0c\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<br \/>\na\uff1a\u5728\u5f53\u524d\u5149\u6807\u540e\u4e00\u5904\uff0c\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<br \/>\no\uff1a\u5728\u5f53\u524d\u5149\u6807\u4e0b\u4e00\u5904\uff0c\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<br \/>\nesc\uff1a\u9000\u51fa\u7f16\u8f91\uff0c\u56de\u5230\u67e5\u770b\u6a21\u5f0f<br \/>\n: \uff1a\u4ece\u67e5\u770b\u6a21\u5f0f\u8fdb\u5165\u5230\u5e95\u884c\u547d\u4ee4\u6a21\u5f0f<br \/>\n\u5728\u5e95\u884c\u547d\u4ee4\u6a21\u5f0f\u8f93\u51fa wq \uff1a\u4fdd\u5b58\u5e76\u9000\u51fa<br \/>\n\u5728\u5e95\u884c\u547d\u4ee4\u6a21\u5f0f\u8f93\u51fa q! \uff1a\u4e0d\u4fdd\u5b58\u5e76\u9000\u51fa<br \/>\n\u5728\u5e95\u884c\u547d\u4ee4\u6a21\u5f0f\u6309ZZ \uff1a\u5feb\u901f\u4fdd\u5b58\u5e76\u9000\u51fa<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/3.png\" alt=\"\" width=\"680\" \/><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/4.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><strong>\u5728\u7f16\u8f91\u6587\u4ef6\u65f6\u7684\u5176\u4ed6\u64cd\u4f5c<\/strong><\/p>\n<p>\u5728\u5e95\u884c\u547d\u4ee4\u6a21\u5f0f\u4e0b\uff0c\u53ef\u4ee5\u8f93\u5165\u7684\u5185\u5bb9<\/p>\n<p>\u67e5\u770b\u6587\u4ef6\u7684\u884c\u53f7\uff1aset nu<br \/>\n\u8df3\u8f6c\u5230\u6307\u5b9a\u7684\u884c\u53f7\uff1ato \u884c\u53f7<br \/>\n\u53d6\u6d88\u884c\u53f7\uff1aset nonu<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/7.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>\u76f4\u63a5\u5728\u67e5\u770b\u6a21\u5f0f\u4e0b\u8f93\u5165\uff1a\/string<\/p>\n<p>\u7c7b\u4f3cWindows\u7684 ctrl+F \u641c\u7d22\u6587\u4ef6\u4e2d\u7684\u5177\u4f53\u5185\u5bb9\u6240\u5728\u7684\u4f4d\u7f6e\uff0c\u67e5\u770b\u4e0b\u4e00\u4e2a\u53ef\u4ee5\u8f93\u5165\u5b57\u6bcd n<\/p>\n<p><strong>\u67e5\u770b\u6587\u4ef6<\/strong><\/p>\n<p>\u4ece\u7b2c\u4e00\u884c\u5f00\u59cb\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\uff0c\u5c55\u793a\u5168\u90e8\uff1acat \u6587\u4ef6\u540d<br \/>\n\u4ece\u6700\u540e\u4e00\u884c\u5f00\u59cb\u5c55\u793a \uff1atac \u6587\u4ef6\u540d<br \/>\n\u663e\u793a\u6587\u4ef6\u7684\u540c\u65f6\uff0c\u5c55\u793a\u884c\u53f7\uff1anl \u6587\u4ef6\u540d<br \/>\n\u67e5\u770b\u5927\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4e00\u9875\u4e00\u9875\u7684\u5f80\u4e0b\u7ffb\uff0c\u4e0d\u53ef\u5411\u4e0a\u7ffb\uff1a<br \/>\nmore \u6587\u4ef6\u540d<br \/>\n\u5411\u4e0b\u7ffb\u9875\uff1a\u7a7a\u683c\uff1b\u9000\u51fa\uff1aq<br \/>\n\u67e5\u770b\u5927\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4efb\u610f\u5f80\u4e0a\u6216\u5f80\u4e0b\u7ffb\uff1aless \u6587\u4ef6\u540d<br \/>\n\u53ea\u770b\u524d\u51e0\u884c\uff1ahead \u6587\u4ef6\u540d<br \/>\n\u53ea\u770b\u540e\u51e0\u884c\uff1atail \u6587\u4ef6\u540d<br \/>\ntail -f \u65e5\u5fd7 \u76d1\u63a7\u65e5\u5fd7<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/8.png\" alt=\"\" width=\"680\" \/><\/p>\n<hr \/>\n<h3>\u9488\u5bf9\u538b\u7f29\u5305\u7684\u64cd\u4f5c<\/h3>\n<h3><strong>tar\u547d\u4ee4<\/strong><\/h3>\n<p><strong>\u89e3\u538b\u538b\u7f29\u5305\uff1a<\/strong><\/p>\n<p>tar [-zxvf] \u538b\u7f29\u5305\u540d [-C \u8def\u5f84]<\/p>\n<p>-z\uff1a\u4ee3\u8868\u538b\u7f29\u5305\u540e\u7f00\u662f .gz\u7684<br \/>\n-x\uff1a\u4ee3\u8868\u89e3\u538b<br \/>\n-v\uff1a\u89e3\u538b\u65f6\uff0c\u6253\u5370\u8be6\u7ec6\u4fe1\u606f<br \/>\n-f\uff1a\u5fc5\u987b\u653e\u5728\u6240\u6709\u9009\u9879\u7684\u6700\u540e\uff0c\u4ee3\u8868\u6267\u884c\u6587\u4ef6\u540d\u79f0<br \/>\n-C \u8def\u5f84\uff1a\u4ee3\u8868\u538b\u7f29\u5305\u89e3\u538b\u5230\u6307\u5b9a\u8def\u5f84<\/p>\n<p><strong>\u6253\u5305\u538b\u7f29\u5305\uff1a<\/strong><\/p>\n<p>tar [-zcvf] \u538b\u7f29\u5305\u540d \u6587\u4ef6\u540d1 \u76ee\u5f55\u540d1 &#8230; [-C \u8def\u5f84]<\/p>\n<p>-z\uff1a\u4ee3\u8868\u538b\u7f29\u5305\u540e\u7f00\u662f .gz\u7684<br \/>\n-c\uff1a\u4ee3\u8868\u6253\u5305<br \/>\n-v\uff1a\u89e3\u538b\u65f6\uff0c\u6253\u5370\u8be6\u7ec6\u4fe1\u606f<br \/>\n-f\uff1a\u5fc5\u987b\u653e\u5728\u6240\u6709\u9009\u9879\u7684\u6700\u540e\uff0c\u4ee3\u8868\u6267\u884c\u6587\u4ef6\u540d\u79f0<\/p>\n<h3><strong>zip\u538b\u7f29\u5305\u547d\u4ee4<\/strong><\/h3>\n<p><strong>linux\u9ed8\u8ba4\u4e0d\u652f\u6301zip\u538b\u7f29\u5305\u683c\u5f0f\u7684\uff0c\u9700\u8981\u5b89\u88c5\u4e24\u4e2a\u8f6f\u4ef6 zip \u3001unzip<\/strong><\/p>\n<p>\u6307\u4ee4\uff1ayum -y install zip\u00a0 \/ yum -y install unzip<\/p>\n<p>\u89e3\u538b\uff1aunzip \u538b\u7f29\u5305\u540d\u79f0<\/p>\n<p>\u6253\u5305\uff1azip \u538b\u7f29\u5305\u540d\u79f0 \u6587\u4ef61 \u76ee\u5f551<\/p>\n<hr \/>\n<h3>Linux\u7528\u6237\u548c\u7528\u6237\u7ec4<\/h3>\n<p>Linux\u662f\u4e00\u4e2a\u591a\u7528\u6237\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4efb\u4f55\u4e00\u4e2a\u7528\u6237\u60f3\u8981\u64cd\u4f5cLinux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5fc5\u987b\u5411\u7cfb\u7edf\u7ba1\u7406\u5458\u7533\u8bf7\u4e00\u4e2a\u8d26\u53f7\u624d\u53ef\u4ee5\uff0c\u4ee5\u8fd9\u4e2a\u8d26\u53f7\u8eab\u4efd\u53bb\u64cd\u4f5cLinux\u3002<\/p>\n<p>\u7528\u6237\u7684\u8d26\u53f7\u4e00\u65b9\u9762\u53ef\u4ee5\u5e2e\u52a9\u7cfb\u7edf\u7ba1\u7406\u5458\u8ffd\u8e2a\u5f53\u524d\u7528\u6237\u7684\u64cd\u4f5c\u3002\u53e6\u4e00\u65b9\u9762\u53ef\u4ee5\u63a7\u5236\u5f53\u524d\u7528\u6237\u5bf9\u7cfb\u7edf\u8d44\u6e90\u8bbf\u95ee\u3002<\/p>\n<p><strong>\u7528\u6237\u7684\u64cd\u4f5c<\/strong><\/p>\n<p>\u521b\u5efa\u7528\u6237\uff1auseradd \u7528\u6237\u540d<br \/>\n\u8bbe\u7f6e\u5bc6\u7801\uff1apasswd \u7528\u6237\u540d<br \/>\n\u5207\u6362\u7528\u6237\uff1asu \u7528\u6237\u540d<br \/>\n[root@localhost ~]# &#8211;&gt;root\u7528\u6237\u5728\u672c\u5730\u767b\u5f55\uff0c\u5e76\u4e14\u5f53\u524d\u5728~\u76ee\u5f55\u4e0b\uff0c#\u4ee3\u8868\u662f\u8d85\u7ea7\u7ba1\u7406\u5458<br \/>\n[demo@localhost ~]$ &#8211;&gt;demo\u7528\u6237\u5728\u672c\u5730\u767b\u5f55\uff0c\u5e76\u4e14\u5f53\u524d\u5728~\u76ee\u5f55\u4e0b\uff0c$\u4ee3\u8868\u662f\u666e\u901a\u7528\u6237<br \/>\n\u5220\u9664\u7528\u6237\uff1auserdel -r \u7528\u6237\u540d<br \/>\n-r\uff1a\u5220\u9664\u7528\u6237\u76ee\u5f55<br \/>\n\u4fee\u6539\u7528\u6237 usermod [-cgd] \u7528\u6237\u540d<br \/>\n-c\uff1a\u4ee3\u8868comment\uff0c\u7ed9\u7528\u6237\u6dfb\u52a0\u4e00\u6bb5\u6ce8\u91ca<br \/>\n-g\uff1a\u4ee3\u8868group\uff0c\u53ef\u4ee5\u4fee\u6539\u7528\u6237\u7684\u6240\u5728\u7ec4<br \/>\n-d\uff1a\u4ee3\u8868\u6307\u5b9a\u7528\u6237\u7684HOME\u76ee\u5f55<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/1.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><strong>\u7528\u6237\u7ec4\u7684\u64cd\u4f5c<\/strong><\/p>\n<p>\u521b\u5efa\u7528\u6237\u7ec4\uff1agroupadd \u7528\u6237\u7ec4\u540d<br \/>\n\u4fee\u6539\u7528\u6237\u7ec4\uff1agroupmod -n \u65b0\u7ec4\u540d \u539f\u7528\u6237\u7ec4\u540d<br \/>\n\u5220\u9664\u7528\u6237\u7ec4\uff1agroupdel \u7528\u6237\u7ec4\u540d<br \/>\n\u53ea\u80fd\u5220\u9664\u4e0d\u5b58\u5728\u7528\u6237\u7684\u7528\u6237\u7ec4<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/9.png\" alt=\"\" width=\"680\" \/><\/p>\n<hr \/>\n<h3>\u6587\u4ef6\u6743\u9650\u4fee\u6539<\/h3>\n<p><strong>\u67e5\u770b\u76ee\u5f55\u4fe1\u606f<\/strong><\/p>\n<p>\u5728Linux\u4e2d\u8f93\u5165ls- l \u6216\u8005 ll \u67e5\u770b\u6587\u4ef6\u548c\u76ee\u5f55\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/10.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>drwxr-xr-x.<\/p>\n<p>d\uff1a\u4ee3\u8868\u7684\u662f\u4e00\u4e2a\u76ee\u5f55<br \/>\n&#8211; \uff1a\u4ee3\u8868\u7684\u662f\u4e00\u4e2a\u6587\u4ef6<\/p>\n<p>\u5728Linux\u6587\u4ef6\u8be6\u60c5\u7684\u540e\u9762\u5c5e\u6027\u9700\u8981\u5206\u4e3a\u4e09\u7ec4\u67e5\u770b<\/p>\n<p>rwx\uff1a\u4ee3\u8868\u6587\u4ef6\u62e5\u6709\u8005\u7684\u6743\u9650<br \/>\nrwx\uff1a\u4ee3\u8868\u6587\u4ef6\u6240\u5c5e\u7ec4\u7528\u6237\u7684\u6743\u9650<br \/>\nrwx\uff1a\u4ee3\u8868\u5176\u4ed6\u7528\u6237\u5bf9\u5f53\u524d\u6587\u4ef6\u7684\u64cd\u4f5c\u6743\u9650<\/p>\n<p>r\uff1a\u4ee3\u8868read\uff0c\u8bfb\u7684\u6743\u9650<br \/>\nw\uff1a\u4ee3\u8868write\uff0c\u5199\u7684\u6743\u9650<br \/>\nx\uff1a\u4ee3\u8868execute\uff0c\u4ee3\u8868\u6267\u884c\u6743\u9650<\/p>\n<p>\u540e\u9762\u7684\u7b2c\u4e00\u4e2aroot\uff1a\u4ee3\u8868\u5f53\u524d\u6587\u4ef6\u7684\u62e5\u6709\u8005<br \/>\n\u540e\u9762\u7684\u7b2c\u4e8c\u4e2aroot\uff1a\u4ee3\u8868\u5f53\u524d\u6587\u4ef6\u7684\u6240\u5c5e\u7ec4<br \/>\n\u540e\u9762\u7684\u4f9d\u6b21\u4e3a\u6587\u4ef6\u7684\u5927\u5c0f\u548c\u4fee\u6539\u65f6\u95f4<\/p>\n<p><strong>\u5bf9\u6587\u4ef6\u7684\u6743\u9650\u4fee\u6539<\/strong><\/p>\n<p>\u4f7f\u7528chmod\u5bf9\u6587\u4ef6\u7684\u6743\u9650\u8fdb\u884c\u4fee\u6539\uff0c\u53ef\u4ee5\u4f7f\u7528\u6570\u5b57\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7b26\u53f7<\/p>\n<p>1.\u6570\u5b57\u65b9\u5f0f\uff1a<\/p>\n<p>chmod -R 777 \u6587\u4ef6|\u76ee\u5f55<br \/>\nrwx\uff1ar4 w2 x1<br \/>\n-R\uff1a\u5f53\u4fee\u6539\u4e00\u4e2a\u6743\u9650\u65f6\uff0c\u53ef\u4ee5\u6dfb\u52a0-R\uff0c\u5c06\u76ee\u5f55\u4e0b\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u90fd\u4fee\u6539\u6743\u9650<\/p>\n<p>2.\u7b26\u53f7\u65b9\u5f0f\uff1a<\/p>\n<p>user\uff1au\uff1bgroup\uff1ag\uff1bother\uff1ao\uff1ball\uff1aa<br \/>\nread\uff1ar\uff1bwrite\uff1aw\uff1bexecute\uff1ax<br \/>\n\u8d4b\u4e88\u6743\u9650\u7684\u65b9\u5f0f\uff1a<br \/>\n\u6dfb\u52a0\uff1a+\uff1b\u51cf\u6389\uff1a-\uff1b\u8bbe\u5b9a\uff1a=<br \/>\n\u5982\uff1achmod -R a=rw \u6587\u4ef6|\u76ee\u5f55<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/11.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><strong>\u5bf9\u6587\u4ef6\u7684\u62e5\u6709\u8005\u548c\u6240\u5c5e\u7ec4\u4fee\u6539<\/strong><\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u7684\u62e5\u6709\u8005\u548c\u6240\u5c5e\u7ec4\uff1a<br \/>\nchown -R \u62e5\u6709\u8005:\u6240\u5c5e\u7ec4 \u6587\u4ef6|\u76ee\u5f55<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u7684\u62e5\u6709\u8005\uff1a<br \/>\nchown -R \u62e5\u6709\u8005 \u6587\u4ef6|\u76ee\u5f55<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u7684\u6240\u5c5e\u7ec4\uff1a<br \/>\nchgrp -R \u6240\u5c5e\u7ec4 \u6587\u4ef6|\u76ee\u5f55<\/p>\n<hr \/>\n<h3>Linux\u7684\u5176\u4ed6\u64cd\u4f5c\u547d\u4ee4<\/h3>\n<p>1.\u8fdb\u7a0b\u7684\u64cd\u4f5c<br \/>\nps -ef<br \/>\n\u67e5\u770b\u5168\u90e8\u6b63\u5728\u8fdb\u884c\u7684\u8fdb\u7a0b<br \/>\nps -ef | grep \u641c\u7d22\u7684\u5185\u5bb9<br \/>\n\u6740\u6b7b\u8fdb\u7a0b<br \/>\nkill -9 pid<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/12.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>2.\u670d\u52a1\u7684\u64cd\u4f5c<\/p>\n<p>\u9488\u5bf9\u670d\u52a1\u7684\u542f\u52a8\u3001\u505c\u6b62\u3001\u91cd\u542f\u3001\u5f00\u673a\u81ea\u542f\u52a8\u3001\u7981\u6b62\u5f00\u673a\u81ea\u542f\u52a8\u3001\u67e5\u770b\u670d\u52a1\u72b6\u6001<\/p>\n<p>systemctl start| stop|restart|enable| disable|status \u670d\u52a1\u540d\u79f0<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/13.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>3.\u67e5\u770b\u7aef\u53e3\u53f7\u5360\u7528\u60c5\u51b5<\/p>\n<p>\u5411\u4f7f\u7528\u6307\u5b9a\u7684\u547d\u4ee4\u9700\u8981\u5b9e\u73b0\u4e0b\u8f7dnetstat<br \/>\nyum -y install net-tools<br \/>\n\u67e5\u770b\u7aef\u53e3\u53f7\u5360\u7528\u60c5\u51b5<br \/>\nnetstat -naop | grep \u7aef\u53e3\u53f7<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/14.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/15.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>4.\u8bbf\u95ee\u5730\u5740<br \/>\ncurl url<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/16.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>5.\u67e5\u627e\u6587\u4ef6<\/p>\n<p>find \u8def\u5f84 -type f | grep \u641c\u7d22\u540d<\/p>\n<hr \/>\n<h3>Linux\u5b89\u88c5\u8f6f\u4ef6<\/h3>\n<p>1.\u5b89\u88c5jdk<\/p>\n<p>\u5c06\u4e0b\u8f7d\u597d\u7684jdk\u62c9\u53d6\u5230Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u901a\u8fc7Xterm\u643a\u5e26\u7684Sftp\u5c06jdk\u538b\u7f29\u5305\u62d6\u62fd\u5230Linux\u64cd\u4f5c\u7cfb\u7edf<\/p>\n<p>\u5c06\u538b\u7f29\u5305\u89e3\u538b\u5230 \/usr\/local<br \/>\ntar -zxvf jdk\u538b\u7f29\u5305\u540d -C \/usr\/local<\/p>\n<p>\u5c06\u76ee\u5f55\u540d\u66f4\u6539\uff1a<br \/>\ncd \/usr\/local<br \/>\nmv jdk1.8.0_161\/ jdk\/<\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p>Linux\u63d0\u4f9b\u4e24\u79cd\u73af\u5883\u53d8\u91cf\u7684\u6587\u4ef6<br \/>\n1.\u662f\u7528\u6237\u7ea7\u522b\u7684\u73af\u5883\u53d8\u91cf\uff0c\u5b58\u653e\u5728\uff1a~\/.bashrc<br \/>\n2.\u662f\u7cfb\u7edf\u7ea7\u522b\u7684\u73af\u5883\u53d8\u91cf\uff0c\u5b58\u653e\u5728\uff1a\/etc\/profile<\/p>\n<p>\u5982\u679c\u60f3\u8fd0\u884c\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u9700\u8981\u8f93\u5165\uff1a .\/java<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/17.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>vi \/etc\/profile<br \/>\n\u5728\u73af\u5883\u53d8\u91cf\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<br \/>\nG\u8df3\u8f6c\u6700\u540e\u4e00\u884c\uff0co\u8fdb\u5165\u4e0b\u4e00\u884c<\/p>\n<p>export JAVA_HOME=\/usr\/local\/jdk\/<br \/>\nexport PATH=$JAVA_HOME\/bin:$PATH<\/p>\n<p>\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff1asource \/etc\/profile<br \/>\n\u67e5\u770bjdk\u7248\u672c\uff1ajava -version<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/07\/18.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><strong>2.\u5b89\u88c5mysql<\/strong><\/p>\n<p>\u5148\u53bbmysql\u7ed9\u6211\u4e0b\u8f7d\u76f8\u5e94\u7684\u6587\u4ef6\uff0c<a href=\"https:\/\/dev.mysql.com\/doc\/mysql-yum-repo-quick-guide\/en\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u4f7f\u7528MySQL Yum\u5b58\u50a8\u5e93\u7684\u5feb\u901f\u6307\u5357<\/a><\/p>\n<p><a href=\"https:\/\/dev.mysql.com\/get\/mysql80-community-release-el7-3.noarch.rpm\" target=\"_blank\" rel=\"noopener noreferrer\">\u4e0b\u8f7dRPM\u5305<\/a><\/p>\n<p>\u8fde\u63a5\uff1ahttps:\/\/dev.mysql.com\/get\/mysql80-community-release-el7-3.noarch.rpm<\/p>\n<p>\u5148\u4e0b\u8f7d\u5b89\u88c5wget<br \/>\nyum -y install wget<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/1.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>\u7136\u540e\u4e0b\u8f7drom\uff1awget \u8fde\u63a5<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/2.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>\u5b89\u88c5\u4e0b\u8f7d\u597d\u7684rpm\u5305<br \/>\nrpm <span class=\"token property\">-Uvh rpm\u5305<\/span><\/p>\n<p>\u67e5\u770bLinux\u5df2\u7ecf\u5b89\u88c5\u8fc7\u7684\u8f6f\u4ef6\uff1arpm -qa<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/3.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>Linux\u5378\u8f7d\u8f6f\u4ef6\uff1arpm -e &#8211;nodeps \u540d\u79f0<\/p>\n<p>\u67e5\u770bmysql\u5b89\u88c5\u7248\u672c\uff1ayum repolist all | grep mysql<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/4.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>\u901a\u8fc7\/etc\/yum.repos.d\/mysql-community.repo \u7f16\u8f91\u4fee\u6539\u53d1\u884c\u7248\u672c<br \/>\nvi \/etc\/yum.repos.d\/mysql-community.repo<\/p>\n<p>\u5c0680\u7684enabled\u66f4\u6539\u4e3a0\uff0c\u5c0657\u7684enabled\u66f4\u6539\u4e3a1\uff0c\u4fdd\u5b58\u5373\u53ef\uff0c\u7136\u540e yum repolist all | grep mysql \u6267\u884c\u67e5\u770b\u7248\u672c<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/5.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>\u5b89\u88c5mysql\uff1ayum install mysql-community-server<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/6.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>\u542f\u52a8mysql\u670d\u52a1\uff1a<span class=\"token command\">systemctl<\/span> start mysqld<\/p>\n<p>\u67e5\u770bmysql\u521d\u59cb\u5316\u5bc6\u7801\uff1agrep <span class=\"token atrule\">&#8216;temporary password&#8217;<\/span> \/var\/log\/mysqld<span class=\"token punctuation\">.<\/span>log<\/p>\n<p>\u8fde\u63a5mysql\u670d\u52a1\uff1amysql -u root -p<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/7.png\" alt=\"\" width=\"680\" \/><\/p>\n<p>\u4fee\u6539\u521d\u59cb\u5bc6\u7801\uff1aALTER USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;\u65b0\u5bc6\u7801&#8217;;<\/p>\n<p>\u5f00\u542f\u8fdc\u7a0b\u8fde\u63a5\uff0c\u5e76\u4f7f\u7528\u56fe\u5f62\u5316\u754c\u9762\u64cd\u4f5c<br \/>\nGRANT ALL PRIVILEGES ON *.* TO &#8216;\u7528\u6237\u540d&#8217;@&#8217;%&#8217; IDENTIFIED BY &#8216;\u5bc6\u7801&#8217; WITH GRANT OPTION;<br \/>\nflush privileges;<\/p>\n<p>\u5173\u95edLinux\u9632\u706b\u5899\uff1asystemctl stop firewalld<\/p>\n<p>\u7136\u540e\u6253\u5f00\u8fde\u63a5\u6570\u636e\u5e93\u5de5\u5177<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/8.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/9.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><strong>3.\u5b89\u88c5Tomcat<\/strong><\/p>\n<p>\u4e0b\u8f7d\u7684tar.gz\u89e3\u538b\u5230 \/usr\/local<\/p>\n<p>\u542f\u52a8tomcat\u5e76\u76d1\u542c\u65e5\u5fd7\uff1a<br \/>\n\u8fdb\u5165 cd \/usr\/local\/apache-tomcat-8.5.53\/bin<\/p>\n<p>\u542f\u52a8tomcat\uff1a.\/startup.sh<br \/>\n\u76d1\u542c\u65e5\u5fd7\uff1acd ..\/logs<br \/>\ntail -f catalina.out<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/10.png\" alt=\"\" width=\"680\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2021\/01\/08\/11.png\" alt=\"\" width=\"680\" \/><\/p>\n<hr \/>\n<h3>\u90e8\u7f72SMM\u5de5\u7a0b<\/h3>\n<p>\u90e8\u7f72\u9879\u76ee\u5230Linux\u4e2d\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<p>1.\u9879\u76ee\u8981\u4fdd\u8bc1\u5728Windows\u4e0b\u6ca1\u6709\u95ee\u9898\uff0c\u5728\u8003\u8651\u90e8\u7f72\u5230Linux<br \/>\n2.\u5c06\u5f00\u53d1\u73af\u5883\u4e2d\u7684\u5185\u5bb9\u66f4\u6539\u4e3a\u6d4b\u8bd5\u73af\u5883\uff1a<br \/>\na.\u8fde\u63a5\u6570\u636e\u5e93\u7684\u4fe1\u606f b.\u5b58\u653e\u6587\u4ef6\u7684\u8def\u5f84\u3002 c.\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u7684\u4f4d\u7f6e\u3002d.\u9879\u76ee\u8def\u5f84\u95ee\u9898<br \/>\n3.\u5c06maven\u9879\u76ee\u6253\u5305<br \/>\n4.\u6839\u636e\u9879\u76ee\u8def\u5f84\u7684\u4e0d\u540c\uff0c\u5c06\u9879\u76ee\u90e8\u7f72\u5230tomcat\u4e2d\u3002<br \/>\n5.\u5728\u90e8\u7f72\u5230Linux\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u540e\uff0c\u4e00\u5b9a\u8981\u67e5\u770b\u65e5\u5fd7\u3002<\/p>\n<p>\u6253\u5305\u5e76\u8df3\u8fc7\u6d4b\u8bd5\uff1amvn clean package -DskipTests<\/p>\n<p>\u6570\u636e\u5e93\u5bfc\u51fa\u7136\u540e\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u6570\u636e\u5e93\u8fdb\u884c\u5bfc\u5165\uff0c\u5148\u521b\u5efa\u5e93\uff0c\u7136\u540e\u5bfc\u5165\u6570\u636e\u8868\u3002<\/p>\n<p>\u5c06war\u5305\u62d6\u62fd\u5230Xterm\u91cc<\/p>\n<p>cd ~<br \/>\nls<br \/>\nmv ssm-1.0.war ssm.war<br \/>\nls<br \/>\ncp ssm.war \/usr\/local\/apache-tomcat-8.5.53\/webapps\/<br \/>\ncd \/usr\/local\/apache-tomcat-8.5.53\/logs<br \/>\ntail -f catalina.out<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2020java\u5fae\u670d\u52a1\u67b6\u6784\u4e00\u4e4bLinux Linux\u4ecb\u7ecd\uff1a Linux\u64cd\u4f5c\u7cfb\u7edf\u51fa\u73b0\u4e4b\u524d\uff0c\u8fd8\u6709\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u53ebMi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2909","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/2909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2909"}],"version-history":[{"count":19,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/2909\/revisions"}],"predecessor-version":[{"id":2939,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/2909\/revisions\/2939"}],"wp:attachment":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}