{"id":52955,"date":"2025-08-11T21:59:11","date_gmt":"2025-08-11T13:59:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/52955.html"},"modified":"2025-08-11T21:59:11","modified_gmt":"2025-08-11T13:59:11","slug":"%e3%80%90centos8%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%89%8d%e5%90%8e%e7%ab%af%e9%83%a8%e7%bd%b2%e3%80%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/52955.html","title":{"rendered":"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011"},"content":{"rendered":"<h3>\u4fee\u6539root\u5bc6\u7801<\/h3>\n<p>passwd root<\/p>\n<h3>\u5173\u95ed\u9632\u706b\u5899<\/h3>\n<p>systemctl disable firewalld<br \/>\nsystemctl stop firewalld<\/p>\n<h3>\u5173\u95edselinux<\/h3>\n<p>1\u3001\u4e34\u65f6 getenforce setenforce 0 2\u3001\u6c38\u4e45 \u4fee\u6539\u914d\u7f6e\u6587\u4ef6 vim \/etc\/selinux\/config SELINUX&#061;enforcing\u6539\u4e3adisabled ELINUX&#061;disabled<\/p>\n<h3>\u4fee\u6539hostname<\/h3>\n<p>hostnamectl set-hostname luoyangligong1<\/p>\n<h3>\u5982\u679c\u662fcentos8,\u6267\u884c\u5982\u4e0b\u547d\u4ee4<\/h3>\n<p>CentOS Linux 8\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u57282022\u5e7412\u670831\u65e5\u7ed3\u675f\u4e86\u751f\u547d\u5468\u671f&#xff08;EOL&#xff09;&#xff0c;Linux\u793e\u533a\u4e0d\u518d\u7ef4\u62a4\u8be5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002\u6240\u6709\u7684CentOS Linux 8\u7684yum\u6e90\u90fd\u65e0\u6548&#xff01;<\/p>\n<p>sudo sed -i -e &#034;s|mirrorlist&#061;|#mirrorlist&#061;|g&#034; \/etc\/yum.repos.d\/CentOS-*<br \/>\nsudo sed -i -e &#034;s|#baseurl&#061;http:\/\/mirror.centos.org|baseurl&#061;http:\/\/vault.centos.org|g&#034; \/etc\/yum.repos.d\/CentOS-*<\/p>\n<h3>\u66f4\u65b0\u8f6f\u4ef6<\/h3>\n<p>yum update -y<\/p>\n<h3>\u5b89\u88c5docker<\/h3>\n<p>\u5b89\u88c5\u4f9d\u8d56\u5305&#xff0c;yum-utils\u63d0\u4f9byum-config-manager\u5de5\u5177&#xff0c;devicemapper\u5b58\u50a8\u9a71\u52a8\u9700\u8981device-mapper-persistent-data\u548clvm2<\/p>\n<p>yum install -y yum-utils<\/p>\n<p>\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5b89\u88c5\u7a33\u5b9a\u7248\u4ed3\u5e93&#xff0c;\u5373\u4f7f\u5b89\u88c5\u6700\u65b0\u4f53\u9a8c\u7248\u6216\u8005\u662f\u6d4b\u8bd5\u7248\u4e5f\u9700\u8981\u7a33\u5b9a\u7248\u4ed3\u5e93\u3002<\/p>\n<p>sudo yum-config-manager \\\\<br \/>\n    &#8211;add-repo \\\\<br \/>\n    https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo<\/p>\n<p>\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684docker CE<\/p>\n<p>sudo yum install -y docker-ce<\/p>\n<p>\u542f\u52a8docker<\/p>\n<p>sudo systemctl start docker<\/p>\n<p>docker\u5f00\u673a\u542f\u52a8<\/p>\n<p>systemctl enable docker<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811135908-6899f72c8f3d9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7f16\u8f91 \/etc\/docker\/daemon.json\u52a0\u5165\u4e0b\u5217\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string\">&#034;registry-mirrors&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token string\">&#034;https:\/\/registry.cn-hangzhou.aliyuncs.com\/&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;https:\/\/dockerproxy.com&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;https:\/\/docker.nju.edu.cn&#034;<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u91cd\u542fdocker sudo systemctl restart docker<\/p>\n<h3>docker\u5b89\u88c5mysql<\/h3>\n<p>\u5982\u679c\u6ca1\u6709\u955c\u50cf,\u5219\u6309\u7167\u4e0b\u5217\u65b9\u5f0f\u8fdb\u884c https:\/\/blog.csdn.net\/zhangkanglei\/article\/details\/126698682?spm&#061;1011.2415.3001.5331 \u5982\u679c\u5df2\u7ecf\u5728\u5176\u4ed6\u670d\u52a1\u5546\u62c9\u53d6\u8fc7(\u56e0\u4e3a\u73b0\u5728docker\u62c9\u53d6\u955c\u50cf\u62a5\u9519,\u7f51\u7edc\u4e0d\u901a),\u5219\u7528\u5bfc\u51fa\u5bfc\u5165\u7684\u65b9\u5f0f \u5bfc\u51famysql docker save -o mysql8-image.tar mysql <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811135909-6899f72d4be83.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u628amysql8-image.tar\u4e0a\u4f20\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a \u5bfc\u5165 docker load &lt; mysql8-image.tar \u5bfc\u5165\u540e\u5c31\u7528\u6309\u7167\u6587\u7ae0\u7ee7\u7eed\u8fdb\u884c\u5373\u53ef<\/p>\n<h3>docker \u5b89\u88c5redis<\/h3>\n<p>\u6309\u7167mysql\u65b9\u6cd5\u5bfc\u51fa\u5bfc\u5165,\u6587\u7ae0\u5982\u4e0b https:\/\/blog.csdn.net\/zhangkanglei\/article\/details\/126698875?spm&#061;1011.2415.3001.5331<\/p>\n<h3>\u5b89\u88c5jkd8<\/h3>\n<p>https:\/\/blog.csdn.net\/zhangkanglei\/article\/details\/138570063?spm&#061;1011.2415.3001.5331<\/p>\n<h3>\u5b89\u88c5Tdengine<\/h3>\n<p>\u5b98\u7f51\u4e0b\u8f7dtd\u5b89\u88c5\u5305 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811135909-6899f72dbf776.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u89e3\u538btd tar -zxvf TDengine-server-3.2.3.0-Linux-x64.tar.gz \u8fdb\u5165\u76ee\u5f55,\u6267\u884cinstall.sh\u5b89\u88c5\u811a\u672c cd TDengine-server-3.2.3.0 sudo .\/install.sh systemctl start taosd<\/p>\n<h3>\u5b89\u88c5NGINX<\/h3>\n<p>https:\/\/blog.csdn.net\/zhangkanglei\/article\/details\/128115495?spm&#061;1011.2415.3001.5331<\/p>\n<h3>minio\u5b89\u88c5<\/h3>\n<p>https:\/\/blog.csdn.net\/zhangkanglei\/article\/details\/127568193?spm&#061;1011.2415.3001.5331<\/p>\n<h3>nacos\u5b89\u88c5(\u5982\u679c\u6ca1\u6709\u7ecf\u5e38\u9700\u8981\u4fee\u6539\u7684\u914d\u7f6e,\u53ef\u4ee5\u4e0d\u7528)<\/h3>\n<p>https:\/\/blog.csdn.net\/zhangkanglei\/article\/details\/128812666?spm&#061;1011.2415.3001.5331 \u628anacos\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u52a8\u542f\u52a8 https:\/\/blog.csdn.net\/weixin_48949991\/article\/details\/131724432<\/p>\n<h3>\u5b89\u88c5emqx<\/h3>\n<p>https:\/\/blog.csdn.net\/zhangkanglei\/article\/details\/138572515?spm&#061;1011.2415.3001.5331<\/p>\n<h3>\u540e\u7aef\u9879\u76ee\u90e8\u7f72<\/h3>\n<p>\u521b\u5efa\u76ee\u5f55(\u6ca1\u6709\u7f51\u5173\u7684\u53ef\u4ee5\u4e0d\u7528\u521b\u5efagateway\u6587\u4ef6\u5939)<\/p>\n<p>mkdir -p \/data\/project\/backend<br \/>\nmkdir -p \/data\/project\/front<br \/>\nmkdir -p \/data\/project\/gateway<\/p>\n<p>\u540e\u7aef\u6570\u636e\u5e93\u521b\u5efa,\u9996\u5148\u5bfc\u5165mysql(\u5168\u90e8\u5bfc\u51fa\u5305\u62ec\u6570\u636e) \u5176\u6b21\u5bfc\u5165Tdengine(\u53ea\u8fd0\u884c\u8868\u7ed3\u6784,\u4e0d\u5bfc\u5165\u6570\u636e,\u5728\u9879\u76eedoc\u4e0b)<\/p>\n<p>\u540e\u7aef\u9879\u76ee\u6253\u5305,\u540e\u7aefspringboot\u9879\u76ee\u6253\u5305\u547d\u4ee4 mvn clean package \u5c06\u6253\u5305\u597d\u7684zhongyuan-domain-1.0.0-SNAPSHOT.jar\u653e\u5165 \/data\/project\/backend\u4e2d \u7136\u540e\u540c\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a\u540d\u4e3adeploy.sh\u7684\u90e8\u7f72\u811a\u672c,\u811a\u672c\u547d\u4ee4\u5982\u4e0b<\/p>\n<p><span class=\"token shebang important\">#!\/bin\/bash<\/span><br \/>\n<span class=\"token comment\">#######################<\/span><br \/>\n<span class=\"token comment\">#\u811a\u672c\u4f7f\u7528\u65b9\u6cd5&#xff1a;<\/span><br \/>\n<span class=\"token comment\">#\u672c\u811a\u672c\u548cjar\u5305\u5728\u540c\u4e00\u76ee\u5f55\u4e0b&#xff0c;\u4fdd\u8bc1\u5f53\u524d\u76ee\u5f55\u6709\u4e14\u53ea\u6709\u4e00\u4e2ajar\u5305\u5373\u53ef\u3002\u65e0\u9700\u4fee\u6539\u4efb\u4f55\u4e1c\u897f\u3002<\/span><br \/>\n<span class=\"token comment\"># Usage: $0 {start|stop|status|restart|log}<\/span><br \/>\n<span class=\"token comment\">#######################<\/span><br \/>\n<span class=\"token comment\">#\u53ef\u5728\u6b64\u5904\u6dfb\u52a0\u9700\u8981\u52a0\u8f7d\u7684\u73af\u5883\u53d8\u91cf<\/span><br \/>\n<span class=\"token comment\">#######################<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> <span class=\"token function\">ls<\/span> *.jar <span class=\"token operator\">&amp;&gt;<\/span>\/dev\/null<span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">then<\/span><br \/>\n  <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">ls<\/span> *.jar <span class=\"token operator\">|<\/span> <span class=\"token function\">wc<\/span> -l<span class=\"token variable\">)<\/span><\/span> -eq <span class=\"token number\">1<\/span> <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">then<\/span><br \/>\n    <span class=\"token assign-left variable\">APP_NAME<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">find<\/span> -maxdepth <span class=\"token number\">1<\/span> -name <span class=\"token string\">&#034;*.jar&#034;<\/span><span class=\"token variable\">)<\/span><\/span><br \/>\n  <span class=\"token keyword\">else<\/span><br \/>\n    <span class=\"token builtin class-name\">echo<\/span> -e <span class=\"token string\">&#034;<span class=\"token entity\" title=\"\\\\033\">\\\\033<\/span>[31m&#8212;&#8212;   Error! Too Much JAR Packages In This Directory !<span class=\"token entity\" title=\"\\\\033\">\\\\033<\/span>[0&#034;<\/span><br \/>\n    <span class=\"token builtin class-name\">exit<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token keyword\">fi<\/span><br \/>\n<span class=\"token keyword\">else<\/span><br \/>\n  <span class=\"token builtin class-name\">echo<\/span> -e <span class=\"token string\">&#034;<span class=\"token entity\" title=\"\\\\033\">\\\\033<\/span>[31m&#8212;&#8212;   Error! No JAR Package In Current Directory !<span class=\"token entity\" title=\"\\\\033\">\\\\033<\/span>[0&#034;<\/span><br \/>\n  <span class=\"token builtin class-name\">exit<\/span> <span class=\"token number\">1<\/span><br \/>\n<span class=\"token keyword\">fi<\/span><\/p>\n<p><span class=\"token function-name function\">exist<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token assign-left variable\">pid<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">ps<\/span> aux <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$APP_NAME<\/span>&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -v <span class=\"token function\">grep<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;jar$&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">awk<\/span> <span class=\"token string\">&#039;{print <span class=\"token variable\">$2<\/span>}&#039;<\/span><span class=\"token variable\">)<\/span><\/span><br \/>\n  <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">[<\/span> -z <span class=\"token string\">&#034;<span class=\"token variable\">$pid<\/span>&#034;<\/span> <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">then<\/span><br \/>\n    <span class=\"token builtin class-name\">return<\/span> <span class=\"token number\">1<\/span><br \/>\n  <span class=\"token keyword\">else<\/span><br \/>\n    <span class=\"token builtin class-name\">return<\/span> <span class=\"token number\">0<\/span><br \/>\n  <span class=\"token keyword\">fi<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token function-name function\">start<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  exist<br \/>\n  <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token variable\">$?<\/span> -eq <span class=\"token number\">0<\/span> <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">then<\/span><br \/>\n    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">${APP_NAME}<\/span> is already running. pid is <span class=\"token variable\">${pid}<\/span>.&#034;<\/span><br \/>\n  <span class=\"token keyword\">else<\/span><br \/>\n    <span class=\"token function\">nohup<\/span> java -jar  -XX:MetaspaceSize<span class=\"token operator\">&#061;<\/span>256m -XX:MaxMetaspaceSize<span class=\"token operator\">&#061;<\/span>256m -Xms2048m -Xmx2048m -Xmn512m -Xss512k -XX:SurvivorRatio<span class=\"token operator\">&#061;<\/span><span class=\"token number\">8<\/span> -XX:&#043;UseConcMarkSweepGC -XX:&#043;PrintGCDetails -XX:&#043;PrintGCDateStamps  <span class=\"token string\">&#034;<span class=\"token variable\">$APP_NAME<\/span>&#034;<\/span> <span class=\"token operator\">&amp;&gt;<\/span>nohup.out <span class=\"token operator\">&amp;<\/span><br \/>\n  <span class=\"token keyword\">fi<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token function-name function\">stop<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  exist<br \/>\n  <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token variable\">$?<\/span> -eq <span class=\"token number\">0<\/span> <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">then<\/span><br \/>\n    <span class=\"token function\">kill<\/span> -9 <span class=\"token string\">&#034;<span class=\"token variable\">$pid<\/span>&#034;<\/span><br \/>\n  <span class=\"token keyword\">else<\/span><br \/>\n    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">${APP_NAME}<\/span> is not running&#034;<\/span><br \/>\n  <span class=\"token keyword\">fi<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token function-name function\">status<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  exist<br \/>\n  <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token variable\">$?<\/span> -eq <span class=\"token number\">0<\/span> <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">then<\/span><br \/>\n    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">${APP_NAME}<\/span> is running. pid is <span class=\"token variable\">${pid}<\/span>.&#034;<\/span><br \/>\n  <span class=\"token keyword\">else<\/span><br \/>\n    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">${APP_NAME}<\/span> is not running&#034;<\/span><br \/>\n  <span class=\"token keyword\">fi<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token function-name function\">log<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token function\">tail<\/span> -9999f nohup.out<br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">case<\/span> <span class=\"token variable\">$1<\/span> <span class=\"token keyword\">in<\/span><br \/>\nstart<span class=\"token punctuation\">)<\/span><br \/>\n  start<br \/>\n  <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nstop<span class=\"token punctuation\">)<\/span><br \/>\n  stop<br \/>\n  <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nrestart<span class=\"token punctuation\">)<\/span><br \/>\n  stop<br \/>\n  start<br \/>\n  <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nstatus<span class=\"token punctuation\">)<\/span><br \/>\n  status<br \/>\n  <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nlog<span class=\"token punctuation\">)<\/span><br \/>\n  log<br \/>\n  <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n*<span class=\"token punctuation\">)<\/span><br \/>\n  <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Usage: <span class=\"token variable\">$0<\/span> {start|stop|status|restart|log}&#034;<\/span><br \/>\n  <span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">esac<\/span><\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p><span class=\"token comment\"># \u542f\u52a8<\/span><br \/>\n<span class=\"token function\">sh<\/span> deploy.sh start<br \/>\n<span class=\"token comment\"># \u505c\u6b62<\/span><br \/>\n<span class=\"token function\">sh<\/span> deploy.sh stop<br \/>\n<span class=\"token comment\"># \u91cd\u542f<\/span><br \/>\n<span class=\"token function\">sh<\/span> deploy.sh restart<\/p>\n<h3>\u7f51\u5173\u90e8\u7f72\u53c2\u8003\u540e\u7aef\u90e8\u7f72<\/h3>\n<h3>\u524d\u7aef\u9879\u76ee\u90e8\u7f72<\/h3>\n<p>\u524d\u7aef\u9879\u76ee\u6253\u5305\u6210dist\u6587\u4ef6\u5939 \u5c06dist\u6587\u4ef6\u5939\u62f7\u8d1d\u5230\u670d\u52a1\u5668\/data\/project\/front\u76ee\u5f55\u4e0b \u8fdb\u5165\/etc\/nginx\u76ee\u5f55\u4e0b,\u4fee\u6539nginx.conf\u6587\u4ef6,\u53c2\u8003\u793a\u4f8b\u5982\u4e0b<\/p>\n<p><span class=\"token comment\">#user  nobody;<\/span><br \/>\nworker_processes  <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>error_log \/var\/log\/nginx\/error.log<span class=\"token punctuation\">;<\/span><br \/>\npid       \/var\/run\/nginx.pid<span class=\"token punctuation\">;<\/span><\/p>\n<p>events <span class=\"token punctuation\">{<\/span><br \/>\n    worker_connections  <span class=\"token number\">1024<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>http <span class=\"token punctuation\">{<\/span><br \/>\n    client_max_body_size 1024m<span class=\"token punctuation\">;<\/span><br \/>\n    include       mime.types<span class=\"token punctuation\">;<\/span><br \/>\n    default_type  application\/octet-stream<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">#log_format  main  &#039;$remote_addr &#8211; $remote_user [$time_local] &#034;$request&#034; &#039;<\/span><br \/>\n    <span class=\"token comment\">#                  &#039;$status $body_bytes_sent &#034;$http_referer&#034; &#039;<\/span><br \/>\n    <span class=\"token comment\">#                  &#039;&#034;$http_user_agent&#034; &#034;$http_x_forwarded_for&#034;&#039;;<\/span><\/p>\n<p>    <span class=\"token comment\">#access_log  logs\/access.log  main;<\/span><\/p>\n<p>    sendfile        on<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token comment\">#tcp_nopush     on;<\/span><\/p>\n<p>    <span class=\"token comment\">#keepalive_timeout  0;<\/span><br \/>\n    keepalive_timeout  <span class=\"token number\">65<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\"># \u4e2d\u539f\u5de5\u5b66\u9662<\/span><br \/>\n    server <span class=\"token punctuation\">{<\/span><br \/>\n        listen       <span class=\"token number\">3008<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        server_name  localhost<span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">#charset koi8-r;<\/span><\/p>\n<p>        <span class=\"token comment\">#access_log  logs\/host.access.log  main;<\/span><\/p>\n<p>        location \/ <span class=\"token punctuation\">{<\/span><\/p>\n<p>            <span class=\"token comment\"># add_header &#039;Access-Control-Allow-Origin&#039; &#039;*&#039;;<\/span><br \/>\n             <span class=\"token comment\"># add_header &#039;Access-Control-Allow-Headers&#039; &#039;*&#039;;<\/span><br \/>\n             <span class=\"token comment\"># add_header &#039;Access-Control-Allow-Methods&#039; &#039;*&#039;;<\/span><br \/>\n              <span class=\"token comment\"># OPTIONS \u76f4\u63a5\u8fd4\u56de204<\/span><br \/>\n             <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token variable\">$request_method<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;OPTIONS&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                 <span class=\"token builtin class-name\">return<\/span> <span class=\"token number\">204<\/span><span class=\"token punctuation\">;<\/span><br \/>\n             <span class=\"token punctuation\">}<\/span><\/p>\n<p>            root  \/data\/project\/front\/dist<span class=\"token punctuation\">;<\/span><br \/>\n            index  index.html index.htm<span class=\"token punctuation\">;<\/span><br \/>\n            try_files <span class=\"token variable\">$uri<\/span> <span class=\"token variable\">$uri<\/span>\/ \/index.html<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        location \/zhongyuan-backend <span class=\"token punctuation\">{<\/span><\/p>\n<p>  proxy_set_header Host <span class=\"token variable\">$http_host<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header X-Real-IP <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header REMOTE-HOST <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header X-Forwarded-For <span class=\"token variable\">$proxy_add_x_forwarded_for<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header x-appId 379e8211-fddd-e789-6332-515130cbb2cf<span class=\"token punctuation\">;<\/span><br \/>\n  proxy_pass http:\/\/localhost:8098\/zhongyuan-backend<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        location \/sso <span class=\"token punctuation\">{<\/span><br \/>\n          proxy_pass http:\/\/localhost:8098\/sso<span class=\"token punctuation\">;<\/span><br \/>\n          proxy_set_header x-appId cb9bef40-28f4-5cd1-70b1-eb71c398a87c<span class=\"token punctuation\">;<\/span><br \/>\n     <span class=\"token punctuation\">}<\/span><br \/>\n        location \/zhongyuan-energy <span class=\"token punctuation\">{<\/span><br \/>\n        proxy_buffering off<span class=\"token punctuation\">;<\/span><br \/>\n        proxy_set_header Host <span class=\"token variable\">$http_host<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        proxy_pass http:\/\/localhost:8098\/zhongyuan-energy<span class=\"token punctuation\">;<\/span><br \/>\n        proxy_set_header x-appId cb9bef40-28f4-5cd1-70b1-eb71c398a87c<span class=\"token punctuation\">;<\/span><br \/>\n     <span class=\"token punctuation\">}<\/span><br \/>\n        location \/zhongyuan-backend\/websocket <span class=\"token punctuation\">{<\/span><\/p>\n<p>   proxy_http_version <span class=\"token number\">1.1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Upgrade <span class=\"token variable\">$http_upgrade<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Connection <span class=\"token string\">&#034;Upgrade&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            proxy_pass http:\/\/localhost:8098\/zhongyuan-backend\/websocket<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><\/p>\n<p>        <span class=\"token comment\">#error_page  404              \/404.html;<\/span><\/p>\n<p>        <span class=\"token comment\"># redirect server error pages to the static page \/50x.html<\/span><br \/>\n        <span class=\"token comment\">#<\/span><br \/>\n        error_page   <span class=\"token number\">500<\/span> <span class=\"token number\">502<\/span> <span class=\"token number\">503<\/span> <span class=\"token number\">504<\/span>  \/50x.html<span class=\"token punctuation\">;<\/span><br \/>\n        location <span class=\"token operator\">&#061;<\/span> \/50x.html <span class=\"token punctuation\">{<\/span><br \/>\n            root   html<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token punctuation\">}<\/span><\/p>\n<p>\u7136\u540e\u6267\u884cnginx -s reload\u547d\u4ee4<\/p>\n<p>\u8bbf\u95eehttp:\/\/localhost:3008\/,\u5982\u679c\u80fd\u6b63\u5e38\u8bbf\u95ee\u524d\u7aef\u9875\u9762\u4ee3\u8868\u90e8\u7f72\u6210\u529f<\/p>\n<h3>\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u540e\u7aef<\/h3>\n<p>\u7f16\u8f91\/etc\/rc.local\u6587\u4ef6<\/p>\n<p>vim \/etc\/rc.local<\/p>\n<p>\u589e\u52a0\u4e0b\u8fb9\u4ee3\u7801<\/p>\n<p>cd \/data\/project\/backend<br \/>\nsh deploy.sh start<br \/>\ncd \/data\/project\/gateway<br \/>\nsh deploy.sh start<\/p>\n<p>\u8d4b\u4e88rc.local\u53ef\u6267\u884c\u6743\u9650 chmod &#043;x \/etc\/rc.d\/rc.local \u914d\u7f6erc.local\u670d\u52a1 vim \/usr\/lib\/systemd\/system\/rc-local.service \u5185\u5bb9\u5982\u4e0b<\/p>\n<p>[Unit]<br \/>\nDescription&#061;\/etc\/rc.d\/rc.local Compatibility<br \/>\nDocumentation&#061;man:systemd-rc-local-generator(8)<br \/>\nConditionFileIsExecutable&#061;\/etc\/rc.d\/rc.local<br \/>\nAfter&#061;network.target<\/p>\n<p>[Service]<br \/>\nType&#061;forking<br \/>\nExecStart&#061;\/etc\/rc.d\/rc.local start<br \/>\nTimeoutSec&#061;0<br \/>\nRemainAfterExit&#061;yes<br \/>\nGuessMainPID&#061;no<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u8bf4\u660e&#xff1a;\u6700\u540e\u7684install\u4e00\u6bb5\u4e0d\u53ef\u5c11&#xff0c;\u5982\u679c\u5f53\u524d\u7684service\u6587\u4ef6\u4e2d\u6ca1\u6709\u8fd9\u6bb5&#xff0c;\u9700\u624b\u52a8\u6dfb\u52a0&#xff08;\u9ed8\u8ba4\u6709\u524d\u4e24\u90e8\u5206&#xff09; \u5426\u5219\u670d\u52a1\u542f\u52a8\u65f6\u4f1a\u62a5\u9519 \u6211\u662f\u5728\u539f\u6709\u811a\u672c\u7684\u57fa\u7840\u4e0a,\u52a0\u4e0a\u8fd9\u4e2aInstall\u8fd9\u4e00\u6bb5\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>\u542f\u52a8rc-local\u670d\u52a1<\/p>\n<p> systemctl daemon-reload<br \/>\n systemctl start rc-local<br \/>\n systemctl enable rc-local<\/p>\n<p>\u5982\u679c\u627e\u4e0d\u5230Java\u547d\u4ee4,\u5219\u628aJava\u7684\u5168\u8def\u5f84\u62fc\u4e0a nohup \/usr\/local\/java\/jdk1.8.0_202\/bin\/java -jar -XX:MetaspaceSize&#061;256m -XX:MaxMetaspaceSize&#061;256m -Xms2048m -Xmx2048m -Xmn512m -Xss512k -XX:SurvivorRatio&#061;8 -XX:&#043;UseConcMarkSweepGC -XX:&#043;PrintGCDetails -XX:&#043;PrintGCDateStamps &#034;$APP_NAME&#034; &amp;&gt;nohup.out &amp;<\/p>\n<h3>\u81f3\u6b64\u524d\u540e\u7aef\u9879\u76ee\u5c31\u7b97\u90e8\u7f72\u5b8c\u6210\u4e86,\u6709\u5565\u95ee\u9898\u6216\u8005\u4e0d\u61c2\u7684\u5730\u65b9\u8bc4\u8bba\u533a\u6c9f\u901a<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb637\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf7\u6b21\u3002CentOS Linux 8\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u57282022\u5e7412\u670831\u65e5\u7ed3\u675f\u4e86\u751f\u547d\u5468\u671f\uff08EOL\uff09\uff0cLinux\u793e\u533a\u4e0d\u518d\u7ef4\u62a4\u8be5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002\u6240\u6709\u7684CentOS Linux 8\u7684yum\u6e90\u90fd\u65e0\u6548\uff01\u5982\u679c\u5df2\u7ecf\u5728\u5176\u4ed6\u670d\u52a1\u5546\u62c9\u53d6\u8fc7(\u56e0\u4e3a\u73b0\u5728docker\u62c9\u53d6\u955c\u50cf\u62a5\u9519,\u7f51\u7edc\u4e0d\u901a),\u5219\u7528\u5bfc\u51fa\u5bfc\u5165\u7684\u65b9\u5f0f\u3002\u628amysql8-image.tar\u4e0a\u4f20\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\u3002\u8fdb\u5165\u76ee\u5f55,\u6267\u884cinstall.sh\u5b89\u88c5\u811a\u672c\u3002\u6309\u7167mysql\u65b9\u6cd5\u5bfc\u51fa\u5bfc\u5165,\u6587\u7ae0\u5982\u4e0b\u3002\u5982\u679c\u6ca1\u6709\u955c\u50cf,\u5219\u6309\u7167\u4e0b\u5217\u65b9\u5f0f\u8fdb\u884c\u3002\u5bfc\u5165\u540e\u5c31\u7528\u6309\u7167\u6587\u7ae0\u7ee7\u7eed\u8fdb\u884c\u5373\u53ef\u3002\u628anacos\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n","protected":false},"author":2,"featured_media":52952,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-52955","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/52955.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb637\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf7\u6b21\u3002CentOS Linux 8\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u57282022\u5e7412\u670831\u65e5\u7ed3\u675f\u4e86\u751f\u547d\u5468\u671f\uff08EOL\uff09\uff0cLinux\u793e\u533a\u4e0d\u518d\u7ef4\u62a4\u8be5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002\u6240\u6709\u7684CentOS Linux 8\u7684yum\u6e90\u90fd\u65e0\u6548\uff01\u5982\u679c\u5df2\u7ecf\u5728\u5176\u4ed6\u670d\u52a1\u5546\u62c9\u53d6\u8fc7(\u56e0\u4e3a\u73b0\u5728docker\u62c9\u53d6\u955c\u50cf\u62a5\u9519,\u7f51\u7edc\u4e0d\u901a),\u5219\u7528\u5bfc\u51fa\u5bfc\u5165\u7684\u65b9\u5f0f\u3002\u628amysql8-image.tar\u4e0a\u4f20\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\u3002\u8fdb\u5165\u76ee\u5f55,\u6267\u884cinstall.sh\u5b89\u88c5\u811a\u672c\u3002\u6309\u7167mysql\u65b9\u6cd5\u5bfc\u51fa\u5bfc\u5165,\u6587\u7ae0\u5982\u4e0b\u3002\u5982\u679c\u6ca1\u6709\u955c\u50cf,\u5219\u6309\u7167\u4e0b\u5217\u65b9\u5f0f\u8fdb\u884c\u3002\u5bfc\u5165\u540e\u5c31\u7528\u6309\u7167\u6587\u7ae0\u7ee7\u7eed\u8fdb\u884c\u5373\u53ef\u3002\u628anacos\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/52955.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T13:59:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811135908-6899f72c8f3d9.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52955.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/52955.html\",\"name\":\"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T13:59:11+00:00\",\"dateModified\":\"2025-08-11T13:59:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/52955.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/52955.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52955.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/52955.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb637\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf7\u6b21\u3002CentOS Linux 8\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u57282022\u5e7412\u670831\u65e5\u7ed3\u675f\u4e86\u751f\u547d\u5468\u671f\uff08EOL\uff09\uff0cLinux\u793e\u533a\u4e0d\u518d\u7ef4\u62a4\u8be5\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002\u6240\u6709\u7684CentOS Linux 8\u7684yum\u6e90\u90fd\u65e0\u6548\uff01\u5982\u679c\u5df2\u7ecf\u5728\u5176\u4ed6\u670d\u52a1\u5546\u62c9\u53d6\u8fc7(\u56e0\u4e3a\u73b0\u5728docker\u62c9\u53d6\u955c\u50cf\u62a5\u9519,\u7f51\u7edc\u4e0d\u901a),\u5219\u7528\u5bfc\u51fa\u5bfc\u5165\u7684\u65b9\u5f0f\u3002\u628amysql8-image.tar\u4e0a\u4f20\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\u3002\u8fdb\u5165\u76ee\u5f55,\u6267\u884cinstall.sh\u5b89\u88c5\u811a\u672c\u3002\u6309\u7167mysql\u65b9\u6cd5\u5bfc\u51fa\u5bfc\u5165,\u6587\u7ae0\u5982\u4e0b\u3002\u5982\u679c\u6ca1\u6709\u955c\u50cf,\u5219\u6309\u7167\u4e0b\u5217\u65b9\u5f0f\u8fdb\u884c\u3002\u5bfc\u5165\u540e\u5c31\u7528\u6309\u7167\u6587\u7ae0\u7ee7\u7eed\u8fdb\u884c\u5373\u53ef\u3002\u628anacos\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/52955.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T13:59:11+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811135908-6899f72c8f3d9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/52955.html","url":"https:\/\/www.wsisp.com\/helps\/52955.html","name":"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T13:59:11+00:00","dateModified":"2025-08-11T13:59:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/52955.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/52955.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/52955.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010centos8\u670d\u52a1\u5668\u524d\u540e\u7aef\u90e8\u7f72\u3011"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=52955"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52955\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/52952"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=52955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=52955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=52955"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=52955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}