\u7cfb\u7edf<\/a>\u7684\u8c03\u5ea6\u65b9\u6cd5\u57fa\u672c\u4e0a\u91c7\u7528\u201c\u62a2\u5360\u5f0f\u4f18\u5148\u7ea7\u201d\u65b9\u5f0f\uff0c\u5f53\u8fdb\u7a0b\u5728\u7528\u6237\u6a21\u5f0f\u4e0b\u8fd0\u884c\u65f6\uff0c\u4e0d\u7ba1\u5b83\u662f\u5426\u81ea\u613f\uff0c\u6838\u5fc3\u5728\u4e00\u5b9a\u6761\u4ef6\u4e0b(\u5982\u8be5\u8fdb\u7a0b\u7684\u65f6\u95f4\u7247\u7528\u5b8c\u6216\u7b49\u5f85I\/O)\u53ef\u4ee5\u6682\u65f6\u7ec8\u6b62\u5176\u8fd0\u884c\uff0c\u800c\u8c03\u5ea6\u5176\u4ed6\u8fdb\u7a0b\u8fd0\u884c\u3002<\/p>\n\u5b9e\u73b0\u8c03\u5ea6\u542f\u52a8\u8fdb\u7a0b\u7684\u65b9\u5f0f\u6709\u597d\u591a\uff0c\u4f8b\u5982\u901a\u8fc7crontab\u3001cat\u7b49\u547d\u4ee4\u3002<\/p>\n
<\/p>\n
\u524d\u53f0\u542f\u52a8\u8fd9\u5176\u5b9e\u662f\u624b\u5de5\u542f\u52a8\u4e00\u4e2a\u8fdb\u7a0b\u7684\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002\u901a\u5e38\u5730\uff0c\u7528\u6237\u952e\u5165\u4e00\u4e2a\u547d\u4ee4\u201cls\u2013l\u201dlinux\u5173\u673a\u547d\u4ee4\uff0c\u8fd9\u5c31\u65e9\u5df2\u542f\u52a8\u4e86\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u5e76\u4e14\u662f\u4e00\u4e2a\u524d\u53f0\u7684\u8fdb\u7a0b\u3002\u8fd9\u65f6\u4faf\u7cfb\u7edf\u867d\u7136\u65e9\u5df2\u5904\u4e8e\u4e00\u4e2a\u591a\u8fdb\u7a0b\u72b6\u6001\u3002\u4f3c\u4e4e\u6709\u4e9b\u7528\u6237\u4f1a\u7591\u95ee\uff1a\u6211\u53ea\u542f\u52a8\u4e86\u4e00\u4e2a\u8fdb\u7a0b\u800c\u5df2\u3002<\/p>\n
linux\u542f\u52a8\u8fdb\u7a0b\u7684\u547d\u4ee4\u53ef\u4ee5\u7528sh\uff0cpython\uff0c.\/\u6587\u4ef6\u540d\u3002\u4e0b\u8fb9\u662f\u6709\u5173\u8fdb\u7a0b\u7684\u64cd\u4f5c\uff1a\u67e5\u8fdb\u7a0bps\u547d\u4ee4\u67e5\u627e\u4e0e\u8fdb\u7a0b\u76f8\u5173\u7684PID\u53f7\uff1apsa\u663e\u793a\u73b0\u884c\u7ec8\u7aef\u673a\u4e0b\u7684\u6240\u6709\u7a0b\u5e8f\uff0c\u5305\u62ec\u5176\u4ed6\u7528\u6237\u7684\u7a0b\u5e8f\u3002ps-A\u663e\u793a\u6240\u6709\u7a0b\u5e8f\u3002<\/p>\n
Linux\u542f\u52a8\u8fdb\u7a0b\u7684\u547d\u4ee4<\/p>\n
\u5b9e\u73b0\u8c03\u5ea6\u542f\u52a8\u8fdb\u7a0b\u7684\u65b9\u5f0f\u6709\u597d\u591a\uff0c\u4f8b\u5982\u901a\u8fc7crontab\u3001cat\u7b49\u547d\u4ee4\u3002<\/p>\n
\u597d\u591a\u540c\u5b66\u90fd\u60f3\u6653\u5f97linux\u5982\u4f55\u67e5\u770b\u542f\u52a8\u8fdb\u7a0b\uff1f\u4e0b\u8fb9\u5c31\u4e00\u4e0a\u53bb\u77a7\u77a7\u5427\uff01linux\u67e5\u770b\u542f\u52a8\u8fdb\u7a0b\u6253\u5f00linux\u7cfb\u7edf\uff0c\u5728linux\u7684\u684c\u9762\u7684\u7a7a\u767d\u5904\u53f3\u51fb\u3002\u5728\u5f39\u51fa\u7684\u4e0b\u62c9\u9009\u9879\u91cc\uff0c\u70b9\u51fb\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n
\u624b\u5de5\u542f\u52a8\u3002\u7528\u6237\u5728\u8f93\u5165\u7aef\u53d1\u51fa\u547d\u4ee4\uff0c\u76f4\u63a5\u542f\u52a8\u8fdb\u7a0b\u3002\u5206\u4e3a\u524d\u53f0\u542f\u52a8\u548c\u540e\u53f0\u542f\u52a8\u3002\u524d\u53f0\u542f\u52a8\uff1a\u76f4\u63a5\u5728SHELL\u4e2d\u8f93\u5165\u547d\u4ee4\u8fdb\u884c\u542f\u52a8\u3002\u540e\u53f0\u542f\u52a8\uff1a\u542f\u52a8\u4e00\u4e2a\u76ee\u524d\u5e76\u4e0d\u7d27\u6025\u7684\u8fdb\u7a0b\u3002\u8c03\u5ea6\u542f\u52a8\u3002<\/p>\n
\u542f\u52a8\u76f4\u63a5\u70b9\u5f00\u673a\u952e\u5c31\u53ef\u4ee5\u3002\u91cd\u542freboot\u5c31\u53ef\u4ee5\u4e86\u3002\u6b7b\u673alinux\u9a71\u52a8\u4e0b\u8f7d\uff0cinitshutdown-fnow\u3001halt\u90fd\u53ef\u4ee5\u6b7b\u673a\u3002\u91cd\u542f\u670d\u52a1services\u670d\u52a1restart\u3002\u505c\u6b62\u670d\u52a1services\u670d\u52a1stop\u3002\u5f00\u59cb\u670d\u52a1services\u670d\u52a1start\u3002\u670d\u52a1\u72b6\u6001services\u670d\u52a1status\u3002<\/p>\n
linux\u542f\u52a8\u8fdb\u7a0b\u7684\u547d\u4ee4\u53ef\u4ee5\u7528sh\uff0cpython\uff0c.\/\u6587\u4ef6\u540d\u3002\u4e0b\u8fb9\u662f\u6709\u5173\u8fdb\u7a0b\u7684\u64cd\u4f5c\uff1a\u67e5\u8fdb\u7a0bps\u547d\u4ee4\u67e5\u627e\u4e0e\u8fdb\u7a0b\u76f8\u5173\u7684PID\u53f7\uff1apsa\u663e\u793a\u73b0\u884c\u7ec8\u7aef\u673a\u4e0b\u7684\u6240\u6709\u7a0b\u5e8f\uff0c\u5305\u62ec\u5176\u4ed6\u7528\u6237\u7684\u7a0b\u5e8f\u3002ps-A\u663e\u793a\u6240\u6709\u7a0b\u5e8f\u3002<\/p>\n
\u8ba8\u6559linux\u7684\u542f\u52a8\u8fc7\u7a0b<\/p>\n
1\u3001\u5f88\u591a\u540c\u5b66\u90fd\u60f3\u6653\u5f97linux\u5982\u4f55\u542f\u52a8\uff1f\u4e0b\u8fb9\u5c31\u4e00\u4e0a\u53bb\u77a7\u77a7\u5427\uff01linux\u5982\u4f55\u542f\u52a8\u6253\u5f00\u7b14\u8bb0\u672c\u4e0a\u7684VMware\u8f6f\u4ef6\u3002\u9009\u62e9\u5de6\u4fa7\u6211\u7684\u8ba1\u7b97\u673a\u4e2d\u7684Linux\u7cfb\u7edf\u5e76\u70b9\u51fb\u5f00\u542f\u865a\u62df\u673a\u3002\u70b9\u51fb\u754c\u9762\u4e2d\u7684\u4e2d\u6587\u3002<\/p>\n
2\u3001\u9996\u5148\u6211\u9996\u8981\u628alinux\u5f00\u673a\uff0c\u547d\u4ee4rebot\u8fd9\u4e2a\u662flinux\u7684\u91cd\u542f\u547d\u4ee4\uff0c\u8f93\u5165\u56de\u8f66\u5c31\u91cd\u65b0\u542f\u52a8\u3002reboot\u6709\u4e00\u53c2\u6570\uff0c\u6267\u884c\u7684\u610f\u4e49\u5c31\u4e0d\u4e00\u6837\u4e86reboot-f\u5c31\u662f\u5f3a\u5236\u6b7b\u673a\u4e0d\u8c03\u7528shutdown\u3002<\/p>\n
3\u3001\u64cd\u4f5c\u7cfb\u7edf\u5c06\u6709\u6548\u5730\u7ba1\u7406\u548c\u8ddf\u8e2a\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002Linux\u4e2d\u600e\u6837\u542f\u52a8\u8fdb\u7a0b\uff1f\u542f\u52a8\u8fdb\u7a0b\u7684\u65b9\u5f0f\u662f\u54ea\u4e9b\uff1f\u624b\u5de5\u542f\u52a8\u3002\u7528\u6237\u5728\u8f93\u5165\u7aef\u53d1\u51fa\u547d\u4ee4\uff0c\u76f4\u63a5\u542f\u52a8\u8fdb\u7a0b\u3002\u5206\u4e3a\u524d\u53f0\u542f\u52a8\u548c\u540e\u53f0\u542f\u52a8\u3002\u524d\u53f0\u542f\u52a8\uff1a\u76f4\u63a5\u5728SHELL\u4e2d\u8f93\u5165\u547d\u4ee4\u8fdb\u884c\u542f\u52a8\u3002<\/p>\n
linux\u542f\u52a8app\u547d\u4ee4<\/p>\n
1\u3001linux\u542f\u52a8app\u547d\u4ee4\uff1a\u505aLinux\u5d4c\u5165\u5f0f\u5f00\u53d1\uff0c\u5e38\u5e38\u4f1a\u9047\u89c1\u8981\u8bbe\u7f6e\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u5728\u7cfb\u7edf\u5f00\u673a\u7684\u65f6\u4faf\u624b\u52a8\u542f\u52a8\uff0c\u4f46\u662f\u901a\u5e38\u60c5\u51b5\u6211\u4eec\u4e0d\u60f3\u5b89\u88c5\u4e00\u4e9b\u989d\u5916\u7684\u8f6f\u4ef6\u53bb\u5b9e\u73b0\u6b64\u79cd\u9700\u6c42\u3002\u8fd9\u4e48\u76f4\u63a5\u6309\u7167\u5f53\u524d\u7cfb\u7edf\u81ea\u5e26\u7684\u9ed8\u8ba4\u7684\u4e00\u4e9b\u5de5\u5177\u5b9e\u73b0\u7528\u6237\u8f6f\u4ef6\u7684\u5f00\u673a\u81ea\u542f\u52a8\u3002<\/p>\n
2\u3001\u70b9\u51fb\u7b14\u8bb0\u672c\u5de6\u4e0b\u89d2linux\u542f\u52a8\u8fdb\u7a0b\u547d\u4ee4<\/strong>\uff0c\u70b9\u51fb\u5de6\u4e0b\u89d2\u4e0a\u7684\u8bbe\u7f6e\u3002\u4e4b\u540e\u6211\u4eec\u70b9\u51fb\u4f1a\u8bdd\u542f\u52a8\uff0c\u70b9\u51fb\u5e94\u7528\u7a0b\u5e8f\u81ea\u542f\u52a8\u3002\u70b9\u51fb\u8fd9\u4e2a\u6dfb\u52a0\uff0c\u4e4b\u540e\u70b9\u51fb\u7bad\u5934\u4e0a\u7684\u4f4d\u7f6e\u3002\u70b9\u51fb\u6587\u4ef6\u7cfb\u7edf\uff0c\u70b9\u51fbusr\uff0c\u4e4b\u540e\u70b9\u51fb\u8fd9\u4e2ashare\u76ee\u5f55\u3002<\/p>\n3\u3001\u6bd4\u5982\u8bf4\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u201cfirefox\u201d\u6765\u542f\u52a8Firefox\u3002\u5728\u7ec8\u7aef\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u7528\u5904\u662f\uff0c\u4f60\u53ef\u4ee5\u5305\u542b\u4e00\u4e9b\u989d\u5916\u7684\u53c2\u6570\u3002<\/p>\n
4\u3001\u4ece\u547d\u4ee4\u884c\u8fd0\u884c\uff1a\u4ece\u547d\u4ee4\u884c\u6216\u5219shell\u63d0\u793a\u7b26\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u4e2a\u5e38\u7528\u6280\u5de7\u662f\u4f7f\u7528.\/\u547d\u4ee4\u3002\u5018\u82e5\u60a8\u5728Linux\u4e2d\u4f7f\u7528\u53e5\u53f7(\u3002)\u548c\u6b63\u659c\u6760(\/)\uff0c\u5c31\u610f\u5473\u7740\u544a\u8bc9\u73af\u5883\u60a8\u60f3\u8981\u4ee5\u53ef\u6267\u884c\u6587\u4ef6\u8fd0\u884c\u8be5\u6587\u4ef6\u3002<\/p>\n
linux\u542f\u52a8\u7528\u53cb\u4e2d\u95f4\u4ef6\u5f88\u6162\u600e\u6837\u529e<\/p>\n
<\/p>\n
1\u3001\u5982\u679c\u4ee5\u4e0a\u65b9\u5f0f\u90fd\u672a\u80fd\u89e3\u51b3\u95ee\u9898\uff0c\u53ef\u4ee5\u8003\u8651\u5c1d\u8bd5\u91cd\u88c5\u4e2d\u95f4\u4ef6\u6216\u5219\u67e5\u770b\u76f8\u5173\u65e5\u5fd7\u6587\u4ef6\u6765\u8fdb\u884c\u5b9a\u4f4d\u548c\u89e3\u51b3\u3002<\/p>\n
2\u3001\u91c7\u53d6\u4e3e\u63aa\uff1a\u5728\u7528\u53cb\u7684\u767b\u9646\u7a97\u53e3\u670d\u52a1\u5668\u4f4d\u7f6e\u8f93\u5165\u670d\u52a1\u5668\u6240\u5904\u7684IP\u5730\u5740\u4f8b\u59821916254\uff0c\u8f93\u5165\u7528\u6237\u540d\u540e\uff0c\u53d1\u89c9\u767b\u5165\u754c\u9762\u4e2d\u6709\u51fa\u73b0\u53ef\u4ee5\u64cd\u4f5c\u7684\u5e10\u5957\u3002\u8f93\u5165\u5bc6\u7801\u76f4\u63a5\u767b\u9646\uff0c\u53d1\u89c9\u8054\u63a5\u767b\u9646\u5931\u8d25\u3002<\/p>\n
3\u3001\u5b89\u88c5\u6210\u529f\u540e\uff0c\u6253\u5f00\u8f6f\u4ef6\u63d0\u793a\u672a\u80fd\u521b\u5efa\u4e2d\u95f4\u5c42\u7ec4\u4ef6linux\u542f\u52a8\u8fdb\u7a0b\u547d\u4ee4<\/strong>\uff0c\u81f4\u547d\u96be\u4ee5\u4f7f\u7528\u3002\u4ece\u5f00\u59cb\u83dc\u5355\u4e2d\u627e\u5230\u8f6f\u4ef6\u6587\u4ef6\u5939-\u5de5\u5177-\u8fdc\u7a0b\u7ec4\u4ef6\u914d\u7f6e\u6587\u4ef6\u3002\u6253\u5f00\u7a97\u53e3\u540e\u5728\u4e2d\u95f4\u5c42\u670d\u52a1\u5668\u4e2d\u586b\u5199\u7cfb\u7edf\u7684\u670d\u52a1\u5668IP\u5730\u5740\u3002\u5730\u5740\u53ef\u4ee5\u4ece\u516c\u53f8\u7f51\u7ba1\u5904\u83b7\u5f97\u3002<\/p>\n4\u3001\u653e\u7f6e\u5e03\u7f72\u5305\uff0c\u914d\u7f6e\u57df\u7aef\u53e3\uff0c\u542f\u52a8\u7528\u53cb\u627e\u5230\/opt\/AAS\/domains\/mydomain\/bin\u8be5\u8def\u5f84\u5728\u7ec8\u7aef\u4e2d\u6253\u5f00\uff0c\u8fdb\u884c\u7528\u53cb\u7684\u542f\u52a8\u547d\u4ee4.\/startapsic\u3002\u7b2c\u4e00\u6b21\u5e03\u7f72\u987b\u8981\u7528\u53cb\u5bc6\u7801\u3002\u5e03\u7f72\u8fc7\u7a0b\u53ef\u80fd\u4f1a\u6709\u62a5\u9519\u3002\u987b\u8981\u4f9d\u7167\u63a7\u5236\u53f0\u7684\u63d0\u793a\u89e3\u51b3\u3002<\/p>\n
5\u3001\uff0c\u767b\u5f55\u6f14\u793a\u5e10\u5957\u540e\u5173\u6389\u201c\u4f1a\u8ba1\u4e4b\u5bb6\u201d(\u7b2c2\u7684\u5173\u6389\u7a97\u53e3)\u7a97\u53e3\uff0c\u5728\u5de6\u4e0a\u89d2\u6587\u4ef6\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u7f51\u7edc\u52a0\u5bc6\u5361\u8bbe\u7f6e\u201d\uff0c\u67e5\u770b\u8054\u63a5\u7f51\u8def\u52a0\u5bc6\u670d\u52a1\u5668\u7684\u540d\u79f0\u662f\u5426\u4e0e\u670d\u52a1\u5668\u540d\u79f0\u6216\u670d\u52a1\u5668IP\u4e0d\u540c\uff0c\u82e5\u4e0d\u540c\u8bf7\u66f4\u6539\u4e3a\u4e00\u81f4\u5373\u53ef\u3002<\/p>\n
6\u3001\u786c\u4ef6\u8001\u5316\u9020\u6210\u3002\u6240\u6709\u7684\u8f6f\u4ef6\u7a0b\u5e8f\uff0c\u5728\u7b14\u8bb0\u672c\u786c\u4ef6\u7684\u60c5\u51b5\u4e0b\uff0c\u53ea\u4f1a\u8d8a\u6765\u8d8a\u6162\u3002\u5047\u5982\u662f\u591a\u4eba\u4f7f\u7528\u7684\uff0c\u67e5\u770b\u5c40\u57df\u7f51\u8054\u63a5\u662f\u5426\u53d8\u6162\uff0c\u4f8b\u5982\u987e\u5ba2\u7aef\u548c\u670d\u52a1\u5668\u76f8\u4e92\u6838\u5b9e\u4e00\u4e0b\uff0c\u77a7\u77a7\u662f\u5426\u5ef6\u65f6\u8fc7\u957f\u3002\u7528\u53cb\u901a\u5e38\u6307\u7528\u53cb\u56fd\u9645\u8f6f\u4ef6\u96c6\u56e2\u6709\u9650\u516c\u53f8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u8fdb\u7a0b\u8c03\u5ea6\u547d\u4ee4\u6709\u54ea\u4e9b?\u201d\u65b9\u5f0f\uff0c\u5f53\u8fdb\u7a0b\u5728\u7528\u6237\u6a21\u5f0f\u4e0b\u8fd0\u884c\u65f6\uff0c\u4e0d\u7ba1\u5b83\u662f\u5426\u81ea\u613f\uff0c\u6838\u5fc3\u5728\u4e00\u5b9a\u6761\u4ef6\u4e0b(\u5982\u8be5\u8fdb\u7a0b\u7684\u65f6\u95f4\u7247\u7528\u5b8c\u6216\u7b49\u5f85I\/O)\u53ef\u4ee5\u6682\u65f6\u4e2d\u6b62\u5176\u8fd0\u884c\uff0c\u800c\u8c03\u5ea6\u5176\u4ed6\u8fdb\u7a0b\u8fd0\u884c\u3002\u5b9e\u73b0\u8c03\u5ea6\u542f\u52a8\u8fdb\u7a0b\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u6bd4\u5982\u901a\u8fc7crontab\u3001cat\u7b49\u547d\u4ee4\u3002Linux\u542f\u52a8\u8fdb\u7a0b\u7684\u547d\u4ee4\u5b9e\u73b0\u8c03\u5ea6\u542f\u52a8\u8fdb\u7a0b\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u6bd4\u5982\u901a\u8fc7crontab\u3001cat\u7b49\u547d\u4ee4\u3002\u7528\u6237\u5728\u8f93\u5165\u7aef\u53d1\u51fa\u547d\u4ee4\uff0c\u76f4\u63a5\u542f\u52a8\u8fdb\u7a0b\u3002\u8fd9\u4e2a\u662flinux\u7684\u91cd\u542f\u547d\u4ee4\uff0c\u8f93\u5165\u56de\u8f66\u5c31\u91cd\u65b0\u542f\u52a8\u3002Linux\u4e2d\u5982\u4f55\u542f\u52a8\u8fdb\u7a0b\uff1f\u7528\u6237\u5728\u8f93\u5165\u7aef\u53d1\u51fa\u547d\u4ee4\uff0c\u76f4\u63a5\u542f\u52a8\u8fdb\u7a0b\u3002linux\u542f\u52a8app\u547d\u4ee4<\/p>\n","protected":false},"author":1,"featured_media":284070,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-284069","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\/284069","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=284069"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/284069\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/284070"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=284069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=284069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=284069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}