{"id":288855,"date":"2023-12-12T05:18:10","date_gmt":"2023-12-11T21:18:10","guid":{"rendered":"https:\/\/lrxjmw.cn\/lzdgwjmzxtys.html"},"modified":"2023-12-12T05:18:10","modified_gmt":"2023-12-11T21:18:10","slug":"lzdgwjmzxtys","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lzdgwjmzxtys.html","title":{"rendered":"Linux\u4e2d\u591a\u4e2a\u6587\u4ef6\u540d\u6307\u5411\u540c\u4e00\u7d22\u5f15\u8282\u70b9\u7684\u7528\u6cd5"},"content":{"rendered":"
\u8f6f\u8054\u63a5\u662flinux\u4e2d\u4e00\u4e2a\u5e38\u7528\u547d\u4ee4<\/a>\uff0c\u5b83\u7684\u529f\u80fd\u662f\u4e3a\u67d0\u4e00\u4e2a\u6587\u4ef6\u5728\u53e6\u5916\u4e00\u4e2a\u4f4d\u7f6e\u6784\u5efa\u4e00\u4e2a\u540c\u4e0d\u7684\u94fe\u63a5\u3002<\/p>\n \u5177\u4f53\u7528\u6cd5\u662f\uff1aln-s\u6e90\u6587\u4ef6\u76ee\u6807\u6587\u4ef6\u3002<\/p>\n \u5f53\u6211\u4eec\u987b\u8981\u5728\u4e0d\u540c\u7684\u76ee\u5f55\uff0c\u7528\u5230\u76f8\u540c\u7684\u6587\u4ef6\u65f6linux\u4f0a\u7538\u56ed\uff0c\u6211\u4eec\u4e0d\u987b\u8981\u5728\u6bcf\u4e00\u4e2a\u987b\u8981\u7684\u76ee\u5f55\u4e0b\u90fd\u653e\u4e00\u4e2a\u5fc5\u987b\u76f8\u540c\u7684\u6587\u4ef6\uff0c\u6211\u4eec\u53ea\u8981\u5728\u5176\u5b83\u7684\u76ee\u5f55\u4e0b\u7528ln\u547d\u4ee4\u94fe\u63a5\uff08link\uff09\u5c31\u53ef\u4ee5\uff0c\u4f55\u5fc5\u91cd\u590d\u7684\u5360\u7528c\u76d8\u7a7a\u95f4\u3002<\/p>\n \u6bd4\u5982\uff1a<\/p>\n ln-s\/usr\/local\/mysql\/bin\/mysql\/usr\/bin<\/p>\n \u8fd9\u6837\u6211\u4eec\u5c31\u5bf9\/usr\/bin\u76ee\u5f55\u4e0b\u7684mysql\u547d\u4ee4\u521b\u5efa\u4e86\u8f6f\u8054\u63a5<\/p>\n \u3010\u786c\u8054\u63a5\u3011<\/p>\n <\/p>\n \u786c\u8054\u63a5\u6307\u901a\u8fc7\u7d22\u5f15\u8282\u70b9\u6765\u8fdb\u884c\u8054\u63a5\u3002\u5728Linux<\/a>\u7684\u6587\u4ef6\u7cfb\u7edf<\/a>\u4e2dlinux \u8f6f\u8fde\u63a5<\/strong>\uff0c\u4fdd\u5b58\u5728c\u76d8\u5206\u533a\u4e2d\u7684\u6587\u4ef6\u4e0d\u7ba1\u662f\u54ea\u4e9b\u7c7b\u578b\u90fd\u7ed9\u5b83\u5206\u914d\u4e00\u4e2a\u7f16\u53f7\uff0c\u79f0\u4e3a\u7d22\u5f15\u8282\u70b9\u53f7(InodeIndex)\u3002\u5728Linux\u4e2d\uff0c\u591a\u4e2a\u6587\u4ef6\u540d\u6307\u5411\u540c\u4e00\u7d22\u5f15\u8282\u70b9\u662f\u5b58\u5728\u7684\u3002\u901a\u5e38\u8fd9\u4e9b\u8054\u63a5\u5c31\u662f\u786c\u8054\u63a5\u3002\u786c\u8054\u63a5\u7684\u4f5c\u7528\u662f\u5bb9\u8bb8\u4e00\u4e2a\u6587\u4ef6\u62e5\u6709\u591a\u4e2a\u6709\u6548\u8def\u5f84\u540d\uff0c\u8fd9\u6837\u7528\u6237\u5c31\u53ef\u4ee5\u6784\u5efa\u786c\u8054\u63a5\u5230\u91cd\u8981\u6587\u4ef6\uff0c\u4ee5\u907f\u514d\u201c\u8bef\u5220\u201d\u7684\u529f\u80fd\u3002\u5176\u7f18\u7531\u5982\u4e0a\u6240\u8ff0\uff0c\u7531\u4e8e\u5bf9\u5e94\u5f53\u76ee\u5f55\u7684\u7d22\u5f15\u8282\u70b9\u6709\u4e00\u4e2a\u4ee5\u4e0a\u7684\u8054\u63a5\u3002\u53ea\u5220\u6389\u4e00\u4e2a\u8054\u63a5\u5e76\u4e0d\u5f71\u54cd\u7d22\u5f15\u8282\u70b9\u672c\u8eab\u548c\u5176\u5b83\u7684\u8054\u63a5\uff0c\u53ea\u6709\u5f53\u6700\u540e\u4e00\u4e2a\u8054\u63a5\u88ab\u5220\u6389\u540e\uff0c\u6587\u4ef6\u7684\u6570\u636e\u5757\u53ca\u76ee\u5f55\u7684\u8054\u63a5\u5c31\u4f1a\u88ab\u91ca\u653e\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6587\u4ef6\u771f\u6b63\u5220\u6389\u7684\u6761\u4ef6\u662f\u4e0e\u4e4b\u76f8\u5173\u7684\u6240\u6709\u786c\u8054\u63a5\u6587\u4ef6\u5747\u88ab\u5220\u6389\u3002<\/p>\n \u3010\u8f6f\u8054\u63a5\u3011<\/p>\n \u53e6\u5916\u4e00\u79cd\u8054\u63a5\u79f0\u4e4b\u4e3a\u7b26\u53f7\u8054\u63a5\uff08SymbolicLink\uff09\uff0c\u4e5f\u53eb\u8f6f\u8054\u63a5\u3002\u8f6f\u94fe\u63a5\u6587\u4ef6\u6709\u7c7b\u4f3c\u4e8eWindows\u7684\u5feb\u6377\u65b9\u6cd5\u3002\u5b83\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u6587\u4ef6\u3002\u5728\u7b26\u53f7\u8054\u63a5\u4e2dlinux \u8f6f\u8fde\u63a5<\/strong>\uff0c\u6587\u4ef6\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u7684\u6709\u53e6\u4e00\u6587\u4ef6\u7684\u4f4d\u7f6e\u4fe1\u606f\u3002<\/p>\n \u4f7f\u7528\u65b9\u6cd5<\/p>\n \u521b\u5efa\u8f6f\u94fe\u63a5<\/p>\n ln-s[\u6e90\u6587\u4ef6\u6216\u76ee\u5f55][\u76ee\u6807\u6587\u4ef6\u6216\u76ee\u5f55]<\/p>\n \u4f8b\uff1a<\/p>\n \u5f53\u524d\u8def\u5f84\u521b\u5efatest\u5f15\u5411\/var\/www\/test\u6587\u4ef6\u5939<\/p>\n ln\u2013s\/var\/www\/testtest<\/p>\n \u521b\u5efa\/var\/test\u5f15\u5411\/var\/www\/test\u6587\u4ef6\u5939<\/p>\n ln\u2013s\/var\/www\/test\/var\/test<\/p>\n \u5220\u6389\u8f6f\u94fe\u63a5<\/p>\n \u548c\u5220\u6389\u666e\u901a\u7684\u6587\u4ef6\u662f\u4e00\u6837\u7684redhat linux\uff0c\u5220\u6389\u90fd\u662f\u4f7f\u7528rm\u6765\u8fdb\u884c\u64cd\u4f5c<\/p>\n \u4f8b\uff1a<\/p>\n \u5220\u6389test<\/p>\n rm\u2013rftest<\/p>\n \u66f4\u6539\u8f6f\u94fe\u63a5<\/p>\n ln\u2013snf[\u65b0\u7684\u6e90\u6587\u4ef6\u6216\u76ee\u5f55][\u76ee\u6807\u6587\u4ef6\u6216\u76ee\u5f55]<\/p>\n \u8fd9\u5c06\u4f1a\u66f4\u6539\u539f\u6709\u7684\u94fe\u63a5\u5730\u5740\u4e3a\u65b0\u7684\u5730\u5740<\/p>\n \u6bd4\u5982\uff1a<\/p>\n \u521b\u5efa\u4e00\u4e2a\u8f6f\u94fe\u63a5<\/p>\n ln\u2013s\/var\/www\/test\/var\/test<\/p>\n \u66f4\u6539\u6307\u5411\u7684\u65b0\u8def\u5f84<\/p>\n ln\u2013snf\/var\/www\/test1\/var\/test<\/p>\n \u5e38\u7528\u53c2\u6570\uff1a<\/p>\n \n \u8f6c\u81ea\uff1alinux\u8f6f\u8054\u63a5\u7684\u4f7f\u7528-\u5c11\u8bf4\u70b9\u8bdd-\u535a\u5ba2\u56ed<\/p>\n","protected":false},"excerpt":{"rendered":" \u8f6f\u8fde\u63a5\u662flinux\u4e2d\u4e00\u4e2a\u5e38\u7528\u547d\u4ee4\uff0c\u5b83\u7684\u529f\u80fd\u662f\u4e3a\u67d0\u4e00\u4e2a\u6587\u4ef6\u5728\u53e6\u5916\u4e00\u4e2a\u4f4d\u7f6e\u5efa\u7acb\u4e00\u4e2a\u540c\u4e0d\u7684\u94fe\u63a5\u3002\u8fd9\u6837\u6211\u4eec\u5c31\u5bf9\/usr\/bin\u76ee\u5f55\u4e0b\u7684mysql\u547d\u4ee4\u521b\u5efa\u4e86\u8f6f\u8fde\u63a5\u786c\u8fde\u63a5\u6307\u901a\u8fc7\u7d22\u5f15\u8282\u70b9\u6765\u8fdb\u884c\u8fde\u63a5\u3002\u3010\u8f6f\u8fde\u63a5\u3011Link\uff09\uff0c\u4e5f\u53eb\u8f6f\u8fde\u63a5\u3002\u8f6f\u94fe\u63a5\u6587\u4ef6\u6709\u7c7b\u4f3c\u4e8eWindows\u7684\u5feb\u6377\u65b9\u5f0f\u3002\u521b\u5efa\u8f6f\u94fe\u63a5\u521b\u5efa\u4e00\u4e2a\u8f6f\u94fe\u63a5<\/p>\n","protected":false},"author":1,"featured_media":288856,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-288855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/288855","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=288855"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/288855\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/288856"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=288855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=288855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=288855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u3000-f : \u94fe\u7ed3\u65f6\u5148\u5c06\u4e0e dist \u540c\u6863\u540d\u7684\u6863\u6848\u5220\u9664\n\u3000\u3000-d : \u5141\u8bb8\u7cfb\u7edf\u7ba1\u7406\u8005\u786c\u94fe\u7ed3\u81ea\u5df1\u7684\u76ee\u5f55\n\u3000\u3000-i : \u5728\u5220\u9664\u4e0e dist \u540c\u6863\u540d\u7684\u6863\u6848\u65f6\u5148\u8fdb\u884c\u8be2\u95ee\n\u3000\u3000-n : \u5728\u8fdb\u884c\u8f6f\u8fde\u7ed3\u65f6\uff0c\u5c06 dist \u89c6\u4e3a\u4e00\u822c\u7684\u6863\u6848\n\u3000\u3000-s : \u8fdb\u884c\u8f6f\u94fe\u7ed3(symbolic link)\n\u3000\u3000-v : \u5728\u8fde\u7ed3\u4e4b\u524d\u663e\u793a\u5176\u6863\u540d\n\u3000\u3000-b : \u5c06\u5728\u94fe\u7ed3\u65f6\u4f1a\u88ab\u8986\u5199\u6216\u5220\u9664\u7684\u6863\u6848\u8fdb\u884c\u5907\u4efd\n\u3000\u3000-S SUFFIX : \u5c06\u5907\u4efd\u7684\u6863\u6848\u90fd\u52a0\u4e0a SUFFIX \u7684\u5b57\u5c3e\n\u3000\u3000-V METHOD : \u6307\u5b9a\u5907\u4efd\u7684\u65b9\u5f0f\n\u3000\u3000--help : \u663e\u793a\u8f85\u52a9\u8bf4\u660e\n\u3000\u3000--version : \u663e\u793a\u7248\u672c<\/pre>\n<\/p>\n