{"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 <\/p>\n \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\/resolv.conf#DNS\u914d\u7f6e<\/p>\n \n \/etc\/hosts\u5c40\u57df\u7f51\u89e3\u6790<\/p>\n \n \/etc\/sysconfig\/network#\u4e3b\u673a\u540d\u8bb0\u5f55<\/p>\n \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 fstab6\u5217\u8bf4\u660e[fstab\u6587\u4ef6\u89e3\u8bfb\uff1a]<\/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
\/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
\u8bbe\u7f6edns\u914d\u7f6e\u7684\u6587\u4ef6\n<\/code><\/pre>\n<\/p>\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
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
blkid \u67e5\u770bUUID\n<\/code><\/pre>\n<\/p>\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