{"id":294681,"date":"2024-12-01T12:07:55","date_gmt":"2024-12-01T04:07:55","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxcjyhmljosl.html"},"modified":"2024-12-01T12:07:55","modified_gmt":"2024-12-01T04:07:55","slug":"lxcjyhmljosl","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxcjyhmljosl.html","title":{"rendered":"Linux\u4e0b\u521b\u5efa\u7528\u6237\u547d\u4ee4\u53caOracle\u5b9e\u4f8b\u914d\u7f6e\u6307\u5357"},"content":{"rendered":"

Linux<\/a>\u4e0b\u521b\u5efa\u7528\u6237\u547d\u4ee4<\/a><\/p>\n

\u6700\u7b80\u5355\u7684\u547d\u4ee4\uff1asudoaddusertest\u4f1a\u624b\u52a8\u5c06\u8be5\u7528\u6237\u6dfb\u52a0\u5230\u540c\u540d\u7ec4\u4e2d\uff0c\u521b\u5efa\/home\/test\/\uff0c\u4eceetc\/skel\/\u590d\u5236\u6587\u4ef6\uff0c\u5e76\u8bbe\u5b9a\u5bc6\u7801\u548c\u76f8\u5173\u521d\u59cb\u8eab\u5206\u4fe1\u606f\u3002<\/p>\n

\u4e3a\u540c\u673a\u5668\u4e0a\u7684\u591a\u4e2aOracle\u5b9e\u4f8b\u914d\u7f6e\u72ec\u7acb\u7a83\u542c\u5668<\/p>\n

\u5047\u5b9a\u6211\u4eec\u987b\u8981\u5c06\u591a\u4e2aoracle\u5b9e\u4f8b\u5e03\u7f72\u5728\u540c\u4e00\u5957RAC\u96c6\u7fa4\/\u76f8\u540c\u6570\u5b66\u673a\u4e0a\u65f6\uff0c\u9ed8\u8ba4\u5e03\u7f72\u60c5\u51b5\u4e0b\uff0c\u591a\u4e2aoracle\u5b9e\u4f8b\u5171\u4eab\u4f7f\u7528\u9ed8\u8ba4\u76841521\u7a83\u542c\u5668\u3002<\/p>\n

oracle\u521b\u5efa\u7528\u6237\u548c\u5bc6\u7801\u4ee5\u53ca\u6388\u6743\u767b\u5165\u95ee\u9898<\/p>\n

\u6458\u8981\u603b\u7ed3\uff1a\u672c\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u600e\u6837\u521b\u5efa\u7528\u6237\u3001\u8bbe\u7f6e\u5bc6\u7801\u4ee5\u53ca\u6388\u6743\u767b\u5165\u95ee\u9898\u3002\u9996\u5148\u4ecb\u7ecd\u4e86\u4f7f\u7528\u547d\u4ee4\u884c\u767b\u9646Oracle\u7684\u65b9\u6cd5\uff0c\u5305\u62ecsys\u548csystem\u4e24\u79cd\u3002\u4e4b\u540e\u4ecb\u7ecd\u4e86\u4f7f\u7528SQL\u53e5\u5b50\u521b\u5efa\u7528\u6237\u3001\u8bbe\u7f6e\u5bc6\u7801\u548c\u5206\u914d\u6743\u9650\u7684\u65b9\u5f0f\u3002\u6700\u540e\u5217\u51fa\u4e86\u4e09\u79cd\u767b\u9646Oracle\u7684\u65b9\u6cd5\uff0c\u5e76\u7b80\u7565\u4ecb\u7ecd\u4e86\u4f7f\u7528connect\u53e5\u5b50\u767b\u9646Oracle\u7684\u65b9\u5f0f\u3002<\/p>\n

linux\u7cfb\u7edf\u4e0b\u600e\u6837\u8fdb\u884c\u7528\u6237\u4e4b\u95f4\u7684\u5207\u6362<\/p>\n

\u5207\u6362\u7528\u6237\u7684\u547d\u4ee4\u662fsu\uff0csu\u662f(switchuser)\u5207\u6362\u7528\u6237\u7684\u7b80\u5199\u3002\u901a\u8fc7su\u547d\u4ee4\uff0c\u53ef\u4ee5\u4ece\u666e\u901a\u7528\u6237\u5207\u6362\u5230root\u7528\u6237\uff0c\u4e5f\u53ef\u4ee5\u4eceroot\u7528\u6237\u5207\u6362\u5230\u666e\u901a\u7528\u6237\u3002\u4ece\u666e\u901a\u7528\u6237\u5207\u6362\u5230root\u7528\u6237\u987b\u8981\u5bc6\u7801(\u8be5\u5bc6\u7801\u662f\u666e\u901a\u7528\u6237\u7684\u5bc6\u7801)\uff0c\u4eceroot\u7528\u6237\u5207\u6362\u5230\u666e\u901a\u7528\u6237\u4e0d\u987b\u8981\u5bc6\u7801\u3002<\/p>\n

\u4e91\u539f\u751f\u5de5\u5177\u96c6\u00b7\u7ba1\u7406\u591a\u96c6\u7fa4Kubeconfig<\/p>\n

\u505a\u4e3a\u4e00\u4e2ak8s\u7684\u5b66\u4e60\u6216\u5219\u4f7f\u7528\u8005\uff0c\u9632\u6b62\u4e0d\u4e86\u4f1a\u64cd\u4f5c\u4e0d\u540c\u7684k8s\u96c6\u7fa4\uff0c\u6bcf\u6b21\u64cd\u4f5c\u4e0d\u540c\u96c6\u7fa4\u7684\u65f6\u4faf\uff0c\u53ef\u80fd\u8fd8\u4f1a\u4f7f\u7528--kubeconfig\u6307\u5b9a\u8981\u64cd\u4f5c\u96c6\u7fa4\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u8fd9\u6837\u53d8\u5f97\u6108\u53d1\u7684\u9ebb\u70e6\uff0c\u6211\u4f7f\u7528\u8fc7\u4e00\u6bb5\u65f6\u95f4\u7684alias\uff0c\u901a\u8fc7alias\u505a\u547d\u4ee4\u522b\u79f0\uff0c\u5e76\u4e14\u4ecd\u7136\u4e0d\u662f\u8fd9\u4e48\u6e05\u65b0linux\u5207\u6362oracle\u7528\u6237<\/strong>\uff0c\u524d\u6bb5\u65f6\u95f4\u770b\u89c1\u4e00\u4e2akubecm[1]\u5de5\u5177\uff0c\u7b80\u7ea6\u9ad8\u6548\uff0c\u89e3\u51b3\u4e86\u591a\u96c6\u7fa4\u5207\u6362\u4ee5\u53cakubeconfig\u6587\u4ef6\u5185\u5bb9\u7ba1\u7406\u7684\u95ee\u9898\u3002<\/p>\n

Linux\u2014\u2014\u5b9e\u64cd\u7bc7<\/p>\n

\u5207\u6362\u7528\u6237\u600e\u4e48\u5207\u6362\u56de\u6765_\u5207\u6362\u7528\u6237\u5feb\u6377\u952e_linux\u5207\u6362oracle\u7528\u6237<\/p>\n

Vim\u5177\u6709\u7a0b\u5e8f\u7f16\u8f91\u7684\u80fd\u529b\uff0c\u53ef\u4ee5\u770b\u505a\u662fVi\u7684\u63d0\u9ad8\u7248\u672c\uff0c\u53ef\u4ee5\u4e3b\u52a8\u7684\u4ee5\u5b57\u4f53\u989c\u8272\u5206\u8fa8\u53e5\u578b\u7684\u6b63\u786e\u6027\uff0c\u4fbf\u6377\u7a0b\u5e8f\u8bbe\u8ba1\u3002\u4ee3\u7801\u8865\u5b8c\u3001\u7f16\u8bd1\u53ca\u9519\u8bef\u8df3\u8f6c\u7b49\u4fbf\u6377\u7f16\u7a0b\u7684\u529f\u80fd\u975e\u5e38\u4e30\u5bcclinux\u600e\u4e48\u67e5\u770b\u7cfb\u7edf\u7248\u672c\uff0c\u5728\u7a0b\u5e8f\u5458\u4e2d\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002<\/p>\n

mysql<\/a>\u548coracle\u7684\u533a\u522b\u6709\u54ea\u4e9b<\/p>\n

mysql\u7684\u7ba1\u7406\u5de5\u5177\u8f83\u5c11\uff0c\u5728Linux\u4e0b\u7684\u7ba1\u7406\u5de5\u5177\u7684\u5b89\u88c5\u6709\u65f6\u987b\u8981\u5b89\u88c5\u989d\u5916\u7684\u5305\uff08phpmyadmin\uff0cetc\uff09\uff0c\u6709\u4e00\u5b9a\u590d\u6742\u6027\u3002<\/p>\n

Linux\u5b66\u4e60\u7b14\u8bb0\uff08\u4e8c\uff09\u7cfb\u7edf\u57fa\u7840\u64cd\u4f5c<\/p>\n

\u672c\u4e13\u680f\u7531\u5c0f\u96eattt\u521b\u5efa\uff0c\u65e8\u5728\u4e8e\u5206\u4eab\u5b66\u4e60Linux\u57fa\u7840\u77e5\u8bc6\u7684\u8fc7\u7a0b\u3002\u672c\u4e13\u680f\u4e0d\u662f\u673a\u68b0\u5730\u4ecb\u7ecdLinux\u6307\u4ee4\u96c6\uff0c\u800c\u662f\u5305\u542b\u4e86\u4f5c\u8005\u4eb2\u81ea\u5b9e\u8df5\u7684\u64cd\u4f5c\u8fc7\u7a0b\uff0c\u7ad9\u5728\u4e00\u4e2a\u521d\u5b66\u8005\u7684\u89d2\u5ea6\u7406\u89e3Linux\u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n

Linux\u57fa\u7840\u4e4b\u7528\u6237\u7ba1\u7406<\/p>\n

Linux\u662f\u5565\uff1f\u63a8\u8350\u4f60\u4eec\u76f4\u63a5\u4e0a\u767e\u5ea6\u767e\u79d1\uff0c\u4f20\u9001\u95e8\u5c31\u7f6e\u4e8e\u8fd9\u513f\u4e86\uff1aLinux\uff0c\u5168\u79f0GNU\/Linux\uff0c\u662f\u4e00\u79cd\u514d\u8d39\u4f7f\u7528\u548c\u81ea\u7531\u4f20\u64ad\u7684\u7c7bUNIX\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

Linux\u4e4b\u7528\u6237\u548c\u7528\u6237\u7ec4\u53ca\u8fd0\u884c\u6a21\u5f0f<\/p>\n

\u8fd9\u79cd\u547d\u4ee4\u867d\u7136\u90fd\u662f\u8c03\u7528\u7684init\u8fdb\u7a0b\uff0c\u5c06\u6570\u5b57\uff08\u8fd0\u884c\u7ea7\u522b\uff09\u4f20\u9012\u7ed9\u8fdb\u7a0b\uff0c\u8fdb\u7a0b\u53bb\u8bfb\u914d\u7f6e\u6587\u4ef6\u6267\u884c\u5bf9\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n

\u97e9\u987a\u5e73_linux_\u5f53\u5802\u7b14\u8bb0<\/p>\n

\u5207\u6362\u7528\u6237\u5feb\u6377\u952e_linux\u5207\u6362oracle\u7528\u6237_\u5207\u6362\u7528\u6237\u600e\u4e48\u5207\u6362\u56de\u6765<\/p>\n

\u8fd9\u8fd8\u662f\u81ea\u5df13\u5e74\u524d(2011\u5e74)\u6574\u7406\u7684\u7b14\u8bb0\uff0c\u8bb0\u5f97\u5f53\u65f6\u90a3\u4f1a\u513f\u81ea\u5df1\u5bf9Linux\u8fd8\u975e\u5e38\u7684\u5411\u5f80\uff0c\u4e5f\u5f88\u559c\u6b22\u97e9\u8001\u5e08\u7684\u6388\u8bfe\u98ce\u683c\uff0c\u8fb9\u770b\u8fb9\u505a\u7b14\u8bb0\u4e50\u6b64\u4e0d\u5f7c\uff0c\u5982\u4eca\u5f00\u901a\u4e86\u6280\u672f\u535a\u5ba2\uff0c\u6240\u4ee5\u628a\u5f53\u521d\u7684\u7b14\u8bb0\u4e5f\u653e\u4e0a\u6765\u548c\u4f60\u4eec\u5206\u4eab\u3002\u540c\u65f6\u63a8\u8350\u6ca1\u6709Linux\u57fa\u7840\u53c8\u770b\u4e0d\u4e0b\u53bb\u4e66\u7684\u7ae5\u978b\u4eec\u4e5f\u53bb\u77a7\u77a7\u97e9\u8001\u5e08\u7684\u89c6\u9891\uff0c\u5165\u95e8\u8fd8\u662f\u5341\u5206\u4e0d\u9519\u6ef4\u3002<\/p>\n

linux\u521b\u5efa\u3001\u5220\u9664\u53ca\u5207\u6362\u7528\u6237<\/p>\n

Ctrl+Alt+T\u6b65\u5165\u5230\u547d\u4ee4\u884c\uff0c\u8f93\u5165sudouseradd-m[username]\u521b\u5efa\u540d\u4e3a[username]\u7684\u7528\u6237-m\uff1a\u624b\u52a8\u6784\u5efa\u7528\u6237\u7684\u767b\u5f55\u76ee\u5f55sudo\u662f\u5bb9\u8bb8\u7cfb\u7edf\u7ba1\u7406\u5458\u8ba9\u666e\u901a\u7528\u6237\u6267\u884croot\u547d\u4ee4\u7684\u4e00\u4e2a\u5de5\u5177\uff08\u83b7\u53d6\u6743\u9650\uff09\u8fd9\u513f\u4f1a\u987b\u8981\u8f93\u5165\u7ba1\u7406\u5458\u7684\u5bc6\u7801\uff08\u4e0d\u662f\u4f60\u60f3\u7ed9\u65b0\u7528\u6237\u8bbe\u7f6e\u7684\u5bc6\u7801\uff01\uff01\uff01\uff09<\/p>\n

Linux\u4e0a\uff0c\u6700\u5e38\u7528\u7684\u4e00\u6279\u547d\u4ee4\u89e3\u6790\uff0810\u5e74\u7cbe\u9009\uff09<\/p>\n

Linux\u90a3\u4e48\u591a\u547d\u4ee4\uff0c\u4e00\u822c\u4f1a\u8ba9\u521d\u5b66\u8005\u671b\u800c\u751f\u754f\u3002\u4e0b\u8fb9\u662f\u6211\u7ed3\u5408\u65e5\u5e38\u5de5\u4f5c\uff0c\u4ee5\u53ca\u5728\u516c\u53f8\u7684\u5185\u90e8\u57f9\u8bad\u4e2d\uff0c\u9488\u5bf9\u5bf9Linux\u4e0d\u662f\u5f88\u719f\u6089\u7684\u670b\u53cb\uff0c\u7cbe\u9009\u7684\u4e00\u6279\u5fc5\u9700\u8981\u5f04\u61c2\u7684\u547d\u4ee4\u96c6\u5408\u3002\u4efb\u4f55\u4e00\u4e2a\u547d\u4ee4\u867d\u7136\u90fd\u662f\u53ef\u4ee5\u6df1\u5165\u7684\uff0c\u4f8b\u5982tail-f\u548ctail-F\u7684\u533a\u522b\u3002\u6211\u4eec\u4e0d\u53bb\u5173\u5fc3\uff0c\u53ea\u4f7f\u7528\u6700\u5e38\u89c1\u7684\u793a\u4f8b\u6765\u8bf4\u660e\u3002\u672c\u6587\u4e0d\u4f1a\u6559\u4f60\u5177\u4f53\u7684\u7528\u6cd5\uff0c\u90a3\u662f\u62a2man\u547d\u4ee4\u7684\u996d\u7897\u3002\u8fd9\u53ea\u662f\u4e2a\u5f15\u5bfc\u7bc7\uff0c\u529b\u6c42\u7b80\u7ec3\u3002<\/p>\n

\u3010Linux\u3011Linux\u6743\u9650\uff0cshell\u547d\u4ee4\u4ee5\u53ca\u8fd0\u884c\u539f\u7406<\/p>\n

\u4e4b\u524d\u6211\u4eec\u4ecd\u7136\u6572\u5f97\u547d\u4ee4\u548c\u53e3\u53e3\u58f0\u58f0\u8bf4\u7684shell\u7a76\u7adf\u662f\u54ea\u4e9b\u5462\uff1f\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u548c\u8f93\u5165\u7684\u6307\u4ee4\u800c\u4e14\u53ef\u4ee5\u6267\u884c\u90fd\u662f\u901a\u8fc7\u547d\u4ee4\u884c\u534f\u7a0b\u6765\u5b9e\u73b0\u7684\uff0c\u8fd9\u4e48\u547d\u4ee4\u884c\u7c7b\u5e93\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684shell\uff0c\u5177\u4f53\u6211\u4eec\u770b\u4e0b\u8fb9\uff01<\/p>\n

Linux\u4e91\u4f30\u7b97\u2014\u2014\u57fa\u7840\u91cd\u70b9\u77e5\u8bc6\u5907\u8003\u9898<\/p>\n

6.\u6b7b\u673a\u64cd\u4f5c\uff08\u4e09\u4e2a\uff09\uff1ainit0shutdown-hpoweroff<\/p>\n

Linux\u547d\u4ee4<\/a>\uff08\u7b14\u8bd5+\u5de5\u4f5c\u7248\uff09<\/p>\n

Linux\u547d\u4ee4\uff08\u7b14\u8bd5+\u5de5\u4f5c\u7248\uff091.tar\u521b\u5efa\u4e00\u4e2a\u65b0\u7684tar\u6587\u4ef6\u89e3\u538btar\u6587\u4ef6\u67e5\u770btar\u6587\u4ef62.grep\u5728\u6587\u4ef6\u4e2d\u67e5\u627e\u5b57\u7b26\u4e32(\u4e0d\u5206\u8fa8\u5927\u5c0f\u5199)\u8f93\u51fa\u6210\u529f\u5339\u914d\u7684\u884c\uff0c\u4ee5\u53ca\u8be5\u884c\u4ee5\u540e\u7684\u4e09\u884c\u5728\u4e00\u4e2a\u6587<\/p>\n

Linux\u4e0b\u5b89\u88c5Oracle\u7684\u8fc7\u7a0b\u548c\u6d89\u53ca\u7684\u77e5\u8bc6\u70b9-\u7cfb\u52175<\/p>\n

\u4f7f\u7528root\u767b\u9646\uff0c\u7f16\u8f91\/etc\/inittab\u6587\u4ef6linux\u5207\u6362oracle\u7528\u6237<\/strong>\uff0c\u5c06d:5:initdefault:\u6539\u4e3ad:3:initdefault:<\/p>\n

linux\u57fa\u672c\u547d\u4ee4\u5b66\u4e6001<\/p>\n

=============================================================================Unix\/Linux\u6700\u4e3b\u8981\u7684\u5e94\u7528\u9886\u57df\u662f\u57fa\u7840\u670d\u52a1\u5668\u5e94\u7528\uff0c\u5982DNS\u670d\u52a1\u5668\uff08\u57df\u540d\u7cfb\u7edf\uff09\u3001DHCP\u670d\u52a1\u5668\uff08\u52a8\u6001\u4e3b\u673a\u914d\u7f6e\u5408\u540c\uff09\u3001Web\u670d\u52a1\u5668\uff08\u7f51\u7ad9\u670d\u52a1\u5668\uff09\u3001FTP\u670d\u52a1\u5668\uff08\u6587\u4ef6\u4f20\u8f93\u5408\u540c\uff09\u3001\u9632\u706b\u5899\u7b49\u3002<\/p>\n

0\u57fa\u7840Linux\u81ea\u5b66\u4e4b\u8def<\/p>\n

\u5728\u8ba1\u7b97\u673a\u64cd\u4f5c\u7cfb\u7edf\u7684\u53d1\u5c55\u53f2\u4e0a\uff0cUnix\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u91cc\u7a0b\u7891\u3002Unix\u64cd\u4f5c\u7cfb\u7edf\u6700\u65e9\u7531\u8d1d\u5c14\u5b9e\u9a8c\u5ba4\u4e8e1969\u5e74\u5f00\u53d1\uff0c\u5e76\u57281971\u5e74\u53d1\u5e03\u3002Unix\u64cd\u4f5c\u7cfb\u7edf\u4ee5\u5176\u7b80\u7ea6\u3001\u7075\u6d3b\u548c\u53ef\u6269\u5145\u7684\u8bbe\u8ba1\u7406\u5ff5\u800c\u906d\u5230\u5e7f\u6cdb\u7684\u8d5e\u626c\u3002\u5b83\u57fa\u4e8e\u5206\u65f6\u64cd\u4f5c\u7cfb\u7edf\u7684\u601d\u60f3\uff0c\u5141\u8bb8\u591a\u4e2a\u7528\u6237\u540c\u65f6\u8bbf\u95ee\u8ba1\u7b97\u673a\u7cfb\u7edf\uff0c\u5e76\u63d0\u4f9b\u4e86\u8bb8\u591a\u529f\u80fd\u5f3a\u608d\u7684\u5de5\u5177\u548c\u547d\u4ee4\u884c\u754c\u9762\u3002Unix\u7684\u8bbe\u8ba1\u88ab\u5e7f\u6cdb\u91c7\u7528\uff0c\u5e76\u6210\u4e3a\u540e\u6765\u64cd\u4f5c\u7cfb\u7edf\u7684\u91cd\u8981\u5f71\u54cd\u8bf1\u56e0\u3002<\/p>\n

Linux\u9000\u51fa\u547d\u4ee4\u4e3a\u521d\u5b66\u8005\u89e3\u91ca\uff08\u9644\u4f8b\uff09<\/p>\n

\u5018\u82e5\u60a8\u662fLinux\u83dc\u9e1f\uff0c\u800c\u4e14\u60a8\u7684\u5de5\u4f5c\u6d89\u53ca\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u884c\u4efb\u52a1\uff0c\u8fd9\u4e48\u4e0d\u7528\u8bf4\uff0c\u60a8\u5fc5\u987b\u5728\u7ec8\u7aef\u7a97\u53e3\u4e0a\u8017\u8d39\u5927\u91cf\u65f6\u95f4\u3002\u4f60\u53ef\u80fd\u4f1a\u540c\u610f\uff0c\u6709\u4e00\u4e9b\u6211\u4eec\u5e38\u5e38\u4f7f\u7528\u7684\u547d\u4ee4\uff0c\u4f8b\u5982ls\uff0ccp\u548crm\u3002\u4f46\u662f\uff0c\u8fd8\u6709\u4e00\u4e9b\u6bd4\u8f83\u5c11\u4f7f\u7528\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u8ba8\u8bba\u4e00\u4e2a\u8fd9\u6837\u8f83\u5c11\u4f7f\u7528\u7684\u547d\u4ee4\uff1aExit\u3002<\/p>\n

\u73a9\u8f6crlwrap\uff0c\u6572\u547d\u4ee4\u66f4\u8212\u9002<\/p>\n

\u5207\u6362\u7528\u6237\u5feb\u6377\u952e_\u5207\u6362\u7528\u6237\u600e\u4e48\u5207\u6362\u56de\u6765_linux\u5207\u6362oracle\u7528\u6237<\/p>\n

\u5047\u5982\u8ba4\u4e3a\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9\uff0c\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u5173\u6ce8\u3001\u8bc4\u8bba\uff0c\u4e00\u952e\u56db\u8fde\u652f\u6301\uff0c\u4f60\u7684\u652f\u6301\u5c31\u662f\u6211\u521b\u4f5c\u6700\u5927\u7684\u52a8\u529b\uff0c\u6280\u672f\u4ea4\u6d41\u53ef\u4ee5\u5173\u6ce8\u516c\u4f17\u53f7~<\/p>\n

\u4f7f\u7528expect\u8fd0\u884c\u52a8\u6001\u811a\u672c(r6\u7b14\u8bb0\u7b2c19\u5929)<\/p>\n

\u5728\u5e73\u5e38\u7684\u5de5\u4f5c\u4e2d\uff0c\u5047\u5982\u63a5\u624b\u7684\u73af\u5883\u591a\u4e86\u4ee5\u540e\uff0c\u6bcf\u665a\u53bb\u5c1d\u8bd5\u8054\u63a5\u670d\u52a1\u5668\uff0c\u90fd\u662f\u4f8b\u884c\u7684\u6b65\u9aa4linux\u64cd\u4f5c\u7cfb\u7edf\u600e\u4e48\u6837\uff0c\u65f6\u95f4\u957f\u4e86\u4ee5\u540e\u8fd8\u4f1a\u89c9\u5f97\u8fd9\u79cd\u5de5\u4f5c\u90fd\u662f\u5197\u957f\u91cd\u590d\u7684\u5de5\u4f5c\uff0c\u867d\u7136\u6211\u4eec\u53ef\u4ee5\u5c1d\u8bd5\u8ba9\u5de5\u4f5c\u66f4\u7b80\u5316\uff0c\u66f4\u9ad8\u6548\u4e00\u4e9b\u3002\u4f8b\u5982\u6211\u4eec\u8bbe\u5b9a\u4e0b\u8fb9\u7684\u573a\u666f\uff0c\u6211\u4eec\u5b58\u5728\u670d\u52a1\u5668A,\u8fd9\u4e2a\u670d\u52a1\u5668\u53ef\u4ee5\u8054\u63a5\u5230\u7f51\u8def\u73af\u5883\u4e2d\u7684\u5176\u5b83\u673a\u5668\uff0c\u6211\u4eec\u5047\u8bbe\u8fd9\u4e2a\u673a\u5668\u5c31\u662f\u4e2d\u63a7\u673a\u3002\u901a\u8fc7\u4e2d\u63a7\u673a\u8054\u63a5\u5230\u5404\u4e2a\u670d\u52a1\u5668\u73af\u5883\uff0c\u6709\u4e0b\u8fb9\u51e0\u4e2a\u6b65\u9aa4\uff0c1)\u8054\u63a5\u5230\u67d0\u4e00\u53f0\u670d\u52a1\u5668B2)\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f3)\u67e5\u770b\u7cfb\u7edf\u7684\u5185\u6838\u4fe1\u606f4)\u5207\u6362\u5230Oracle\u7528\u6237\u4e0b5)\u67e5\u770b\u670d\u52a1\u5668\u6240\u4f7f\u7528\u7684Oracle\u7248\u672c\u7531\u4e8e\u5207\u6362\u7528\u6237\u7684\u7f18\u7531\uff0c\u6240\u4ee5\u5355\u7eaf\u4f7f<\/p>\n

Linux\u4e0b\u542f\u52a8\u3001\u5173\u95edOracle<\/p>\n

Linux\u4e0b\u600e\u6837\u542f\u52a8\u548c\u5173\u6389Oracle\uff1fOracleDatabase\uff0c\u4ea6\u79f0OracleRDBMS\uff0c\u6216\u7b80\u79f0Oracle\u3002\u662f\u7532\u9aa8\u6587\u516c\u53f8\u7684\u4e00\u6b3e\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u3002\u5b83\u662f\u5728\u6570\u636e\u5e93\u9886\u57df\u4ecd\u7136\u5904\u4e8e\u9886\u5148\u5730\u4f4d\u7684\u4ea7\u54c1\uff0c\u4e0b\u8fb9\u4e3a\u4f60\u4eec\u5206\u4eab\u4e00\u4e0bLinux\u4e0b\u542f\u52a8\u3001\u5173\u95edOracle\u5177\u4f53\u65b9\u5f0f\u3002<\/p>\n

\u300aLinux\u64cd\u4f5c\u7cfb\u7edf\u7f16\u7a0b\u300b\u7b2c\u4e09\u7ae0Linux\u64cd\u4f5c\u7cfb\u7edf\u57fa\u7840:\u4e86\u89e3Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u76f8\u5173\u6982\u5ff5<\/p>\n

\u200b\u8ba9\u4e2d\u5b66\u751f\u4e86\u89e3Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u76f8\u5173\u6982\u5ff5\uff1aLinux\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b9a\u4e49\u3001Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u7ec4\u6210\u3001Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e3b\u8981\u7248\u672c\u3001Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u8fd0\u884c\u6a21\u5f0f\u3001\u53d1\u5c55\uff0c\u4ee5\u53caLinux\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e3b\u8981\u7248\u672c\u548c\u8fd0\u884c\u6a21\u5f0f\u3002\u4f7f\u4e2d\u5b66\u751f\u5177\u6709\u4e0a\u673a\u64cd\u4f5cLinux\u7cfb\u7edf\u7684\u80fd\u529b\u3002<\/p>\n

ssh\u914d\u7f6e\u547d\u4ee4_sshconfig\u914d\u7f6e<\/p>\n

\u542f\u52a8\u670d\u52a1\uff1asudo\/etc\/init.d\/apache2start\u6216serviceapache2start<\/p>\n

3\u4e2a\u4e2d\u5b66\u751f\u7684linux\u89c6\u9891\u5b66\u4e60\u7b14\u8bb0<\/p>\n

linux\u5207\u6362oracle\u7528\u6237_\u5207\u6362\u7528\u6237\u5feb\u6377\u952e_\u5207\u6362\u7528\u6237\u600e\u4e48\u5207\u6362\u56de\u6765<\/p>\n

\u5de5\u6b32\u5584\u5176\u4e8b\u5fc5\u5148\u5229\u5176\u5668\uff0c\u8fd9\u4e00\u8282\u8bfe\u4e3b\u8981\u4ee5Windows\u7cfb\u7edf\u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u4e86\u7528Linux\u7f16\u7a0b\u4e4b\u524d\u987b\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5\u7684\u8f6f\u4ef6\uff1aXshell\uff0cgit\uff0cmarkdown\uff0cWinscp\uff0c\u5e55\u5e03\u4ee5\u53canotepad++\u3002\u4ecb\u7ecd\u4e86\u600e\u6837\u4e0b\u8f7d\u5e76\u5b89\u88c5R\u53caR\u7684\u64cd\u4f5c\u8f6f\u4ef6Rstudio\uff0c\u5728Rstudio\u91cc\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u547d\u4ee4\u6f14\u793a\u4ee5\u53ca\u600e\u6837\u5b89\u88c5\u5e76\u8c03\u7528\u5305\uff0c\u987b\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6240\u6709\u8f6f\u4ef6\u63a8\u8350\u4ece\u5b98\u7f51\u8fdb\u884c\u4e0b\u8f7d\uff0c\u800c\u4e14\u5728\u5b89\u88c5\u7684\u65f6\u4faf\u9ed8\u8ba4\u8fdb\u884c\uff0c\u57fa\u672c\u4e0d\u987b\u8981\u6539\u52a8\u4efb\u4f55\u9009\u9879\u3002\u5bf9\u4e8eWindows\u7528\u6237\u8981\u628a\u6240\u6709\u8f6f\u4ef6\u88c5\u5728C\u76d8\uff0c\u5bf9\u4e8eMac\u7528\u6237\u5219\u9ed8\u8ba4\u5b89\u88c5\uff0c\u5b89\u88c5\u8f6f\u4ef6\u65f6\u52ff\u51fa\u73b0\u82f1\u6587\u8def\u5f84\u3002<\/p>\n

Linux\u7b14\u8bd5\u5e38\u89c1\u547d\u4ee4<\/p>\n

\u5e38\u7528\u6307\u4ee4ls\u663e\u793a\u6587\u4ef6\u6216\u76ee\u5f55-l\u5217\u4e3e\u6587\u4ef6\u8be6\u5c3d\u4fe1\u606fl(list)-a\u5217\u4e3e\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u53ca\u76ee\u5f55\uff0c\u5305\u62ec\u9690\u85cf\u7684a(all)mkdir\u521b\u5efa\u76ee\u5f55-p\u521b\u5efa\u76ee\u5f55\uff0c\u82e5\u65e0\u7236\u76ee\u5f55\uff0c\u5219\u521b\u5efap(parent)cd\u5207\u6362\u76ee\u5f55touch\u521b\u5efa\u7a7a\u6587\u4ef6echo\u521b\u5efa\u5e26\u6709\u5185\u5bb9\u7684\u6587\u4ef6\u3002cat<\/p>\n

Linux\u6742\u8bb0-\u547d\u4ee4(0x00)<\/p>\n

lscdpwdmkdirtouchfileldd\u67e5\u770bc\u5e93\u4f9d\u8d56ldGNU\u94fe\u63a5\u5668(\u7f6e\u4e8e\u8fd9\u513f\u4e0d\u592a\u5408\u9002\u4e3b\u8981\u662f\u548cldd\u505a\u4e00\u4e0b\u5206\u8fa8)ln\u521b\u5efa\u94fe\u63a5(\u901a\u5e38\u7528\u4f5c\u8f6f\u8054\u63a5)mount\u6302\u8f7d\u5916\u90e8\u6587\u4ef6man\u67e5\u770b\u6307\u5357<\/p>\n

Linux\uff1a\u6743\u9650\u76f8\u5173\u77e5\u8bc6\u89e3\u8bfb<\/p>\n

\u5e38\u7528\u7684\u57fa\u672c\u6307\u4ee4\u65e9\u5df2\u8bb2\u89e3\u5b8c\u6bd5\u5566\uff1a\u63a2\u6c42Linux\u4e16\u754c\uff1a\u57fa\u672c\u6307\u4ee4\uff08\u6587\u4ef6\u67e5\u770b\u3001\u65f6\u95f4\u76f8\u5173\u3001grep\u3001\u6253\u5305\u538b\u7f29\u53ca\u76f8\u5173\u77e5\u8bc6\uff09<\/p>\n

kalilinux\u83dc\u9e1f\u5165\u95e8\u624b\u518c<\/p>\n

Kali\u662f\u4e00\u4e2a\u57fa\u4e8eDebian\u7684Linux\u53d1\u884c\u7248\u3002\u5b83\u7684\u76ee\u6807\u5c31\u662f\u4e3a\u4e86\u7b80\u5355\uff1a\u5728\u4e00\u4e2a\u5b9e\u7528\u7684\u5de5\u5177\u5305\u91cc\u5c3d\u53ef\u80fd\u591a\u7684\u5305\u542b\u6e17\u900f\u548c\u5ba1\u8ba1\u5de5\u5177\u3002KaliLinuxisanopensourceprojectthatismaintainedandfundedbyOffensiveSecurity,aproviderofworld-classinformationsecuritytrainingandpenetrationtestingservices.<\/p>\n

Linux\u64cd\u4f5c\u624b\u518c<\/p>\n

Linux\u7cfb\u7edf\u662f\u4e00\u79cd\u5f00\u6e90\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e38\u7528\u4e8e\u670d\u52a1\u5668\u548c\u5de5\u4f5c\u7ad9\u3002\u5b83\u4f7f\u7528\u547d\u4ee4\u884c\u754c\u9762\uff0c\u56e0\u800c\u5bf9\u4e8e\u65b0\u7528\u6237\u6765\u8bf4\u53ef\u80fd\u6709\u4e9b\u964c\u751f\u3002\u4e0b\u8fb9\u662f\u4e00\u4e9b\u5e38\u7528\u7684Linux\u547d\u4ee4\u548c\u5b83\u4eec\u7684\u7528\u6cd5\u3002<\/p>\n

Linux\u5e38\u7528\u547d\u4ee4\uff08\u7b14\u8bd5\u9898\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"

\u901a\u8fc7su\u547d\u4ee4\uff0c\u53ef\u4ee5\u4ece\u666e\u901a\u7528\u6237\u5207\u6362\u5230root\u7528\u6237\uff0c\u4e5f\u53ef\u4ee5\u4eceroot\u7528\u6237\u5207\u6362\u5230\u666e\u901a\u7528\u6237\u3002\u4ece\u666e\u901a\u7528\u6237\u5207\u6362\u5230root\u7528\u6237\u9700\u8981\u5bc6\u7801(\u8be5\u5bc6\u7801\u662f\u666e\u901a\u7528\u6237\u7684\u5bc6\u7801)\uff0c\u4eceroot\u7528\u6237\u5207\u6362\u5230\u666e\u901a\u7528\u6237\u4e0d\u9700\u8981\u5bc6\u7801\u3002mysql\u548coracle\u7684\u533a\u522b\u6709\u4ec0\u4e48linux\u521b\u5efa\u3001\u5220\u9664\u53ca\u5207\u6362\u7528\u6237linux\u57fa\u672c\u547d\u4ee4\u5b66\u4e6001<\/p>\n","protected":false},"author":1,"featured_media":294682,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[4596,4597,613,187,4598],"class_list":["post-294681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-k8s","tag-kubecm","tag-linux","tag-mysql","tag-nbpx"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=294681"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294681\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294682"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}