{"id":286616,"date":"2023-11-02T04:05:30","date_gmt":"2023-11-01T20:05:30","guid":{"rendered":"https:\/\/lrxjmw.cn\/kjzdwjxtdwjp.html"},"modified":"2023-11-02T04:05:30","modified_gmt":"2023-11-01T20:05:30","slug":"kjzdwjxtdwjp","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kjzdwjxtdwjp.html","title":{"rendered":"\u5f00\u673a\u81ea\u52a8\u6587\u4ef6\u7cfb\u7edf\u7684\u6587\u4ef6\u914d\u7f6e\u9519\u8bef\u53ef\u80fd\u4f1a\u5bfc\u81f4\u670d\u52a1\u5668\u65e0\u6cd5\u542f\u52a8\u4fee\u590d\u65b9\u6cd5"},"content":{"rendered":"

\u7cfb\u7edf<\/a>\u4fe1\u606f\u76f8\u5173\u6587\u4ef6\/etc\/issue\u8bb0\u5f55\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<\/p>\n

head\/etc\/issue<\/p>\n

\/proc\/cpuinfo\u8bb0\u5f55cpu\u4fe1\u606f<\/p>\n

cat\/proc\/cpuinfo<\/p>\n

\/proc\/meminfo\u8bb0\u5f55\u663e\u5b58\u4fe1\u606f<\/p>\n

cat\/proc\/meminfo<\/p>\n

grepMemTotal\/proc\/meminfo#\u67e5\u770b\u663e\u5b58\u603b\u6570<\/p>\n

grepMemFree\/proc\/meminfo#\u67e5\u770b\u7a7a\u95f2\u663e\u5b58\u91cf<\/p>\n

\/proc\/loadavg\u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7dc\u76d8\u548c\u5206\u533a<\/p>\n

[root@leileinetwork-scripts]#cat\/proc\/loadavg<\/p>\n

0.000.010.011\/951425<\/p>\n

\u91cd\u8981\u76ee\u5f55\u8bf4\u660e<\/p>\n

linux\u7684tmp\u76ee\u5f55_linux\u7684tmp\u76ee\u5f55_linux\u7684tmp\u76ee\u5f55<\/p>\n

\n

\/home    #\u666e\u901a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\n\/root\t #\u7ba1\u7406\u5458\u5bb6\u76ee\u5f55\uff0c\u666e\u901a\u7528\u6237\u65e0\u6cd5\u8fdb\u5165\n\/lib\t #\u5e93\u6587\u4ef6\u76f8\u5173\u76ee\u5f55\n\/sbin\t #\u7cfb\u7edf\u7ba1\u7406\u547d\u4ee4 \u4e00\u822c\u662f\u8d85\u7ea7\u6743\u9650\u7528\u6237root \u53ef\u4ee5\u6267\u884c\u7684\u547d\u4ee4\u5b58\u653e\n\/lost_found  #\u610f\u5916\u5173\u673a\u4ea7\u751f\u7684\u4e34\u65f6\u6587\u4ef6\u788e\u7247\uff0c\u7cfb\u7edf\u542f\u52a8\u8fc7\u7a0b\u4e2dfsck\u5de5\u5177\u4f1a\u68c0\u67e5\u8fd9\u91cc\uff0c\u5e76\u4fee\u590d\u5df2\u7ecf\u635f\u574f\u7684\u6587\u4ef6\u7cfb\u7edf\n\/mnt\t#\u7528\u4e8e\u4e34\u65f6\u6302\u8f7d\u5b58\u50a8\u8bbe\u5907\u7684\u76ee\u5f55  \u5982 cdrom u\u76d8\n\/opt\t#\u81ea\u5b9a\u4e49\u8f6f\u4ef6\u5305\u5b58\u653e\u76ee\u5f55  \u5728\u7f16\u8bd1\u8f6f\u4ef6\u7684\u65f6\u5019\u7528 .\/configure --prefix=\/opt\n\/proc\/meminfo\t# \u5185\u5b58\u76f8\u5173\u4fe1\u606f \u4e5f\u53ef\u4ee5\u901a\u8fc7free -m\n\/proc\/cpuinfo\t# cpu\u76f8\u5173\u4fe1\u606f\n\/proc\/mounts\t# \u6302\u8f7d\u4fe1\u606f\n\/tmp\t\t\t# \u4e34\u65f6\u6587\u4ef6\u5b58\u653e\u5730\n\/usr\t\t\t# \u7cfb\u7edf\u5b58\u653e\u7a0b\u5e8f\u7684\u76ee\u5f55 uinx software resource\n\/usr\/lib\t\t# \u5e93\u6587\u4ef6\n\/usr\/bin\t\t# \u666e\u901a\u7528\u6237\u53ef\u6267\u884c\u7684\u6587\u4ef6\u76ee\u5f55\n\/usr\/local\/\t\t#\u5b58\u653e\u8f6f\u4ef6\u7684\u76ee\u5f55\n\/usr\/share\t\t# \u5b58\u653e\u8f6f\u4ef6\u7684\u76ee\u5f55\n\/usr\/share\/fonts #\u5b57\u4f53\u76ee\u5f55\n\/usr\/share\/man\t #\u5e2e\u52a9\u76ee\u5f55\n\/usr\/share\/doc\t #\u6587\u6863\u76ee\u5f55\n\/usr\/src\t\t #\u7a0b\u5e8f\u6e90\u7801\u76ee\u5f55 \u5b89\u88c5\u7a0b\u5e8f# rpm -ivh \u5305\u540d.rpm   yum install -y \u8f6f\u4ef6\u540d\n\/var\t\t\t # \u7cfb\u7edf\u65e5\u5fd7\u76ee\u5f55\n\/var\/log\/messages   # \u7cfb\u7edf\u65e5\u5fd7\n\/var\/log\/secure\t\t# \u767b\u5f55\u65e5\u5fd7\n\/var\/spool\/cron\t\t# \u5b9a\u65f6\u4efb\u52a1\n<\/code><\/pre>\n<\/p>\n

\u91cd\u8981\u6587\u4ef6\u8bf4\u660e\/etc\/sysconfig\/network-scripts\/ifcfg-eth0#\u7b2c\u4e00\u5757\u7f51\u5361\u7684\u4fe1\u606f\u8bb0\u5f55\u6587\u4ef6<\/p>\n

\n

\/etc\/sysconfig\/network-scripts\/ifcfg-eth0   #\u7b2c\u4e00\u5757\u7f51\u5361\u7684\u4fe1\u606f\u8bb0\u5f55\u6587\u4ef6\n\u7f51\u5361\u4fe1\u606f\u8bf4\u660e\uff1a\nTYPE=Ethernet \t\t#\u7f51\u5361\u63cf\u8ff0\u4fe1\u606f\nBOOTPROTO=none\t\t# none\uff1a\u5f15\u5bfc\u65f6\u4e0d\u4f7f\u7528\u534f\u8bae  static\uff1a\u4f7f\u7528\u9759\u6001ip\u5730\u5740  dhcp\uff1a\u4f7f\u7528\u81ea\u52a8\u83b7\u53d6\nNAME=eth0\t\t\t# \u7f51\u5361\u540d\nDEVICE=eth0\t\t\t# \u8bbe\u5907\u540d\nOnBOOT=yes\t\t\t# \u5f00\u673a\u662f\u5426\u81ea\u52a8\u542f\u52a8\nIPADDR=10.0.0.20\t# ip\nNETMASK=255.255.255.0   # \u63a9\u7801\nGATEWAY=10.0.0.254  # \u7f51\u5173\nDNS1=223.5.5.5      # dns\u4fe1\u606f\n<\/code><\/pre>\n<\/p>\n

\/etc\/resolv.conf#DNS\u914d\u7f6e<\/p>\n

\n

\u8bbe\u7f6edns\u914d\u7f6e\u7684\u6587\u4ef6\n<\/code><\/pre>\n<\/p>\n

\/etc\/hosts\u5c40\u57df\u7f51\u89e3\u6790<\/p>\n

\n

\u8fd9\u91cc\u914d\u7f6e\u7684\u662f\u672c\u5730\u7684\u89e3\u6790\uff0c\u91cc\u9762\u914d\u7f6e\u7684\u89e3\u6790\u8bb0\u5f55\u53ea\u5141\u8bb8\u5728\u672c\u5730\u6d4b\u8bd5\u4f7f\u7528\uff0c\u516c\u7f51\u65e0\u6cd5\u8bbf\u95ee\n\u89e3\u6790\u6848\u4f8b\uff1a\n192.168.10.10 www.baidu.com  \n\u8ba9\u5230\u767e\u5ea6\u7684\u8bbf\u95ee\u6307\u5411\u672c\u5730\u7684\u4e00\u53f0\u673a\u5668\u3002\n<\/code><\/pre>\n<\/p>\n

\/etc\/sysconfig\/network#\u4e3b\u673a\u540d\u8bb0\u5f55<\/p>\n

\n

centos 6 \u7528\u4e8e\u8bbe\u7f6e\u4e3b\u673a\u540d\ncantos 7 \u8bbe\u7f6e\u4e3b\u673a\u540d\u4f7f\u7528  hostnamectl set-hostname \u3010name\u3011\n<\/code><\/pre>\n<\/p>\n

\/etc\/fstab\u5f00\u673a\u624b\u52a8\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u7684\u6587\u4ef6<\/p>\n

\u8be5\u6587\u4ef6\u914d\u7f6e\u9519\u8bef\u53ef\u80fd\u4f1a\u9020\u6210\u670d\u52a1\u5668\u672a\u80fd\u542f\u52a8<\/p>\n

\u4fee\u8865\u65b9\u5f0f\uff1a<\/p>\n

\n

blkid \u67e5\u770bUUID\n<\/code><\/pre>\n<\/p>\n

fstab6\u5217\u8bf4\u660e[fstab\u6587\u4ef6\u89e3\u8bfb\uff1a]<\/p>\n

\n

UUID=11e940b3-ca63-433d-92ea-c46ed3b82a38  \/         xfs     defaults        0 0\n\u7b2c\u4e00\u5217\uff1a  UUID=xxx    \u8981\u6302\u8f7d\u7684\u8bbe\u5907\n\u7b2c\u4e8c\u5217\uff1a  \/\t\t\t  \u6302\u8f7d\u70b9\n\u7b2c\u4e09\u5217\uff1a  xfs\t\t  \u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\n\u7b2c\u56db\u5217\uff1a  defaults    \u6302\u8f7d\u7c7b\u578b  \n\u7b2c\u4e94\u5217\uff1a 0 \t\t\t  \u662f\u5426\u8fdb\u884c\u5907\u4efd\n\u7b2c\u516d\u5217\uff1a 0 \t\t\t  \u662f\u5426\u8fdb\u884c\u78c1\u76d8\u68c0\u67e5\n<\/code><\/pre>\n<\/p>\n

\/etc\/rc.local\u50a8\u5b58\u5f00\u673a\u542f\u52a8\u7a0b\u5e8f\u547d\u4ee4<\/a>\u7684\u6587\u4ef6<\/p>\n

\u7c7b\u4f3c\u4e8eWindows\u4e0b\u7684\u542f\u52a8\u76ee\u5f55<\/p>\n

\/etc\/inittab\u8bbe\u5b9a\u7cfb\u7edf\u542f\u52a8\u65f6\u7684\u542f\u52a8\u7ea7\u522b<\/p>\n

init0\u6b7b\u673a<\/p>\n

init1\u5355\u7528\u6237<\/p>\n

init2\u5355\u7528\u6237\u6709nfs\u6587\u4ef6\u7cfb\u7edf\u7684<\/p>\n

init3\u6b63\u5e38\u7528\u6237<\/p>\n

init4\u4fdd\u7559\u7684<\/p>\n

init5\u56fe\u5f62\u754c\u9762<\/p>\n

init6\u91cd\u542f<\/p>\n

\/etc\/init.d\u547d\u4ee4\u7684\u5feb\u6377\u65b9\u6cd5<\/p>\n

\u4ed6\u662frc.d\/init.d\u7684\u5feb\u6377\u65b9\u6cd5\u4f7f\u7528yumrpm\u8f6f\u4ef6\u5b89\u88c5\u4f1a\u624b\u52a8\u5c06\u547d\u4ee4\u50a8\u5b58\u5230\u8fd9\u513f<\/p>\n

\/etc\/exportsnfs\u7684\u670d\u52a1\u914d\u7f6e\u6587\u4ef6<\/p>\n

\u5b89\u88c5\u4e86NFS\u6587\u4ef6\u7cfb\u7edf\u670d\u52a1\u540elinux\u91cd\u542f\u547d\u4ee4\uff0c\u53ef\u4ee5\u5728\u8fd9\u513f\u914d\u7f6enfs\u670d\u52a1<\/p>\n

\/etc\/xinit.d\u4f9d\u8d56\u4e8e\u8be5\u670d\u52a1\u7684\u914d\u7f6e\u76ee\u5f55<\/p>\n

\u5047\u5982\u670d\u52a1\u53ef\u4ee5\u901a\u8fc7xinetd\u6a21\u5f0f\u8fd0\u884c\uff0c\u4ed6\u7684\u811a\u672c\u4f1a\u653e\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\/<\/p>\n

\/etc\/profile\u5168\u5c40\u73af\u5883\u53d8\u91cf<\/p>\n

\u5168\u5c40\u73af\u5883\u53d8\u91cf\u7684\u914d\u7f6e\u6587\u4ef6linux\u7684tmp\u76ee\u5f55<\/strong>\uff0c\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u53d8\u91cf\u5168\u5c40\u751f\u6548\u3002<\/p>\n

\/etc\/profile.d\/<\/p>\n

\u52a0\u8f7d\u7cfb\u7edf\u767b\u5165\u7a0b\u5e8f\u7684\u4e00\u4e2a\u76ee\u5f55\uff0c\u5fc5\u987b\u662f\u4ee5\u6587\u4ef6\u7684\u65b9\u5f0f\u5b58\u5728linux\u7684tmp\u76ee\u5f55<\/strong>\uff0c\u4e14\u987b\u8981\u53ef\u6267\u884c\u6743\u9650<\/p>\n

\/etc\/issue\u7248\u672c\u4fe1\u606f<\/p>\n

\u8bb0\u5f55\u7528\u6237\u767b\u5f55\u524d\u663e\u793a\u7684\u7248\u672c\u7b49\u4fe1\u606f<\/p>\n

\/etc\/motd\u767b\u5165\u540e\u7684\u63d0\u793a<\/p>\n

\u767b\u5f55\u540e\u7684\u63d0\u793a<\/p>\n

\/etc\/redhat-release\u7248\u672c\u4fe1\u606f<\/p>\n

\u67e5\u770bLinux<\/a>\u7248\u672c\u4fe1\u606f\u7684\u6587\u4ef6cat\/etc\/redhat-release<\/p>\n

\/usr\/local\u81ea\u7f16\u8bd1\u8f6f\u4ef6\u76ee\u5f55<\/p>\n

\u901a\u8fc7\u81ea\u884c\u7f16\u8bd1\u5b89\u88c5\u7684\u8f6f\u4ef6\u50a8\u5b58\u76ee\u5f55<\/p>\n

\/usr\/local\/bin\u81ea\u7f16\u8bd1\u8f6f\u4ef6\u547d\u4ee4\u76ee\u5f55<\/p>\n

\u901a\u8fc7\u81ea\u884c\u7f16\u8bd1\u5b89\u88c5\u7684\u8f6f\u4ef6\u547d\u4ee4\u50a8\u5b58\u76ee\u5f55<\/p>\n

\/usr\/share\u7cfb\u7edf\u5171\u6709\u7684\u5e2e\u52a9\u6587\u6863<\/p>\n

\u7cfb\u7edf\u516c\u7528\u7684\u6587\u4ef6\u6d3b\u76ee\u5f55\u50a8\u5b58\u5730\uff0c\u4f8b\u5982\/usr\/share\/doc\u7b49\u5e2e\u52a9\u6587\u4ef6<\/p>\n

\/usr\/src\u6e90\u7801\u76ee\u5f55<\/p>\n

\u8f6f\u4ef6\u7684\u5185\u6838\u6e90\u7801\u50a8\u5b58\u76ee\u5f55<\/p>\n

\/usr\/bin\u7528\u6237\u6267\u884c\u547d\u4ee4\u76ee\u5f55<\/p>\n

\u7528\u6237\u53ef\u6267\u884c\u7684\u547d\u4ee4\u6587\u4ef6\u76ee\u5f55<\/p>\n

\/etc\/skel\u7528\u6237\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/p>\n

\u7cfb\u7edf\u5728\u6dfb\u52a0\u7528\u6237\u540e\u4f1a\u624b\u52a8\u62f7\u8d1d\/etc\/skel\/*\u4e0b\u8fb9\u7684\u6587\u4ef6\u62f7\u8d1d\u5230\/home\/chenleilei\/\u76ee\u5f55\u4e2dchenleilei\u4e3a\u65b0\u7528\u6237\u540d<\/p>\n

\u6709\u65f6\u4faf\u767b\u5165\u7cfb\u7edf\u53d1\u89c9\u6ca1\u6709\u5bb6\u76ee\u5f55\u5c31\u65f6\u8fd9\u5199\u6587\u4ef6\u6ca1\u6709\u88ab\u62f7\u8d1d\u8fc7\u53bb\u3002<\/p>\n

\u4f60\u987b\u8981\u64cd\u4f5c\uff1a<\/p>\n

cp-a\/etc\/skel\/*~<\/p>\n

\/var\/log\/message\u7cfb\u7edf\u65e5\u5fd7<\/p>\n

\u7cfb\u7edf\u4fe1\u606f\u9ed8\u8ba4\u7684\u65e5\u5fd7\u6587\u4ef6\u6309\u5468\u5bfb\u5740\u8986\u76d6<\/p>\n

\u53ef\u4ee5\u901a\u8fc7dmseg\u547d\u4ee4\u4e5f\u53ef\u4ee5\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u4fe1\u606f\u4e2d\u6807\u9e92\u9e9flinux\uff0c\u4ed6\u4f9d\u8d56\u4e8ersyslog<\/p>\n

linux\u7cfb\u7edf\u91cd\u8981\u6587\u4ef6\u548c\u76ee\u5f55\u8bf4\u660e<\/p>\n","protected":false},"excerpt":{"rendered":"

\/etc\/rc.local\u5b58\u653e\u5f00\u673a\u542f\u52a8\u7a0b\u5e8f\u547d\u4ee4\u7684\u6587\u4ef6\u5355\u7528\u6237\u6709nfs\u6587\u4ef6\u7cfb\u7edf\u7684nfs\u7684\u670d\u52a1\u914d\u7f6e\u6587\u4ef6\u5b89\u88c5\u4e86NFS\u6587\u4ef6\u7cfb\u7edf\u670d\u52a1\u540e\uff0c\u53ef\u4ee5\u5728\u8fd9\u91cc\u914d\u7f6enfs\u670d\u52a1\u901a\u8fc7\u81ea\u884c\u7f16\u8bd1\u5b89\u88c5\u7684\u8f6f\u4ef6\u5b58\u653e\u76ee\u5f55\u901a\u8fc7\u81ea\u884c\u7f16\u8bd1\u5b89\u88c5\u7684\u8f6f\u4ef6\u547d\u4ee4\u5b58\u653e\u76ee\u5f55\u8f6f\u4ef6\u7684\u5185\u6838\u6e90\u7801\u5b58\u653e\u76ee\u5f55\u7528\u6237\u53ef\u6267\u884c\u7684\u547d\u4ee4\u6587\u4ef6\u76ee\u5f55\u7528\u6237\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/p>\n","protected":false},"author":1,"featured_media":286617,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-286616","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\/286616","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=286616"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/286616\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/286617"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=286616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=286616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=286616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}