{"id":9530,"date":"2025-04-18T17:28:15","date_gmt":"2025-04-18T09:28:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/9530.html"},"modified":"2025-04-18T17:28:15","modified_gmt":"2025-04-18T09:28:15","slug":"arm%e5%86%85%e6%a0%b8%e6%9e%b6%e6%9e%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%9c%ac%e5%9c%b0%e7%a6%bb%e7%ba%bf%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/9530.html","title":{"rendered":"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1"},"content":{"rendered":"<h3>\u4e00\u3001\u4e0b\u8f7dnginx\u5b89\u88c5\u5305<\/h3>\n<p>nginx\u4e0b\u8f7d\u5730\u5740&#xff1a;https:\/\/nginx.org\/en\/download.html<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"565\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2d422f3.png\" width=\"1245\" \/><\/p>\n<h3>\u4e8c\u3001\u89e3\u538b\u5e76\u7f16\u8bd1nginx\u5e94\u7528<\/h3>\n<h4>&#xff08;1&#xff09;\u89e3\u538b\u5b89\u88c5\u5305<\/h4>\n<p>\u9996\u5148\u5c06\u7b2c\u4e00\u6b65\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e0a&#xff0c;\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo tar -zxvf nginx-1.26.3.tar.gz -C \/opt <\/p>\n<p>\u00a0\u8be5\u6307\u4ee4\u7684\u610f\u4e49\u5c31\u662f\u5c06\u3010nginx-1.26.3.tar.gz\u3011\u6587\u4ef6\u52a0\u538b\u5230\u3010\/opt\u3011<\/p>\n<h4>&#xff08;2&#xff09;\u7f16\u8bd1nginx\u7a0b\u5e8f<\/h4>\n<h5>1.\u67e5\u770bc\u7f16\u8bd1\u73af\u5883<\/h5>\n<p>\u5728\u547d\u4ee4\u7a97\u53e3\u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo gcc -v <\/p>\n<p>\u00a0\u6307\u4ee4\u8f93\u5165\u540e\u7684\u6548\u679c\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"194\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2d7fa24.png\" width=\"676\" \/><\/p>\n<p>\u5982\u679c\u662f\u6ca1\u6709\u8f93\u51fagcc\u7248\u672c\u76f8\u5173\u7684\u5185\u5bb9\u6216\u8005\u662f\u8f93\u51fa\u201c\u8be5\u6307\u4ee4\u4e0d\u662f\u5185\u90e8\u6307\u4ee4\u201d&#xff0c;\u5219\u4ee3\u8868\u6ca1\u6709\u5b89\u88c5gcc\u4f9d\u8d56&#xff0c;\u5219\u9700\u8981\u624b\u52a8\u4e0b\u8f7d\u955c\u50cf\u5305\u8fdb\u884c\u5b89\u88c5&#xff0c;\u4e0b\u8f7darm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740\u5982\u4e0b&#xff1a;<\/p>\n<p>arm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740&#xff1a;https:\/\/update.cs2c.com.cn\/NS\/V10\/V10SP1\/os\/adv\/lic\/base\/aarch64\/Packages\/<\/p>\n<p>\u00a0\u8bbf\u95ee\u955c\u50cf\u4e0b\u8f7d\u9875\u9762\u540e&#xff0c;\u4e0b\u8f7d\u4ee5\u4e0b\u5173\u4e8egcc\u7684\u4f9d\u8d56\u955c\u50cf\u5305<\/p>\n<p>gcc-7.3.0-20190804.h30.ky10.aarch64.rpm<\/p>\n<p>mpfr-3.1.6-3.ky10.aarch64.rpm<\/p>\n<p>mpfr-devel-3.1.6-3.ky10.aarch64.rpm<\/p>\n<p>libmpc-devel-1.1.0-3.ky10.aarch64.rpm<\/p>\n<p>libmpc-1.1.0-3.ky10.aarch64.rpm<\/p>\n<p>glibc-devel-2.28-36.1.p03.01.ky10.aarch64.rpm<\/p>\n<p>cpp-7.3.0-20190804.h30.ky10.aarch64.rpm<\/p>\n<p>\u00a0\u5c06\u4ee5\u4e0a\u955c\u50cf\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u6267\u884c\u76ee\u5f55\u4e0b&#xff0c;\u8fdb\u5165\u8be5\u76ee\u5f55\u540e&#xff0c;\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u5b89\u88c5\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rpm -ivh *.rpm &#8211;nodeps &#8211;force <\/p>\n<h5>2.\u67e5\u770bopenssl\u4f9d\u8d56\u00a0<\/h5>\n<p>\u5728\u547d\u4ee4\u7a97\u53e3\u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rpm -qa | grep openssl  # \u4f7f\u7528rpm\u5305\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4<br \/>\nsudo dpkg -l | grep openssl  # \u4f7f\u7528deb\u5305\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4<br \/>\nsudo yum list installed | grep openssl  # \u4f7f\u7528yum\u65b9\u5f0f\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4 <\/p>\n<p>\u00a0\u6307\u4ee4\u8f93\u5165\u540e\u7684\u6548\u679c\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"154\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2d8bdca.png\" width=\"679\" \/><\/p>\n<p>\u00a0\u5982\u679c\u662f\u6ca1\u6709\u8f93\u51fa\u76f8\u5173\u7684\u5185\u5bb9&#xff0c;\u5219\u4ee3\u8868\u6ca1\u6709\u5b89\u88c5openssl\u4f9d\u8d56&#xff0c;\u5219\u9700\u8981\u624b\u52a8\u4e0b\u8f7d\u955c\u50cf\u5305\u8fdb\u884c\u5b89\u88c5&#xff0c;\u4e0b\u8f7darm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740\u5982\u4e0b&#xff1a;<\/p>\n<p>arm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740&#xff1a;https:\/\/update.cs2c.com.cn\/NS\/V10\/V10SP1\/os\/adv\/lic\/base\/aarch64\/Packages\/<\/p>\n<p>\u00a0\u8bbf\u95ee\u955c\u50cf\u4e0b\u8f7d\u9875\u9762\u540e&#xff0c;\u4e0b\u8f7d\u4ee5\u4e0b\u5173\u4e8eopenssl\u7684\u4f9d\u8d56\u955c\u50cf\u5305<\/p>\n<p>openssl-devel-1.1.1d-9.ky10.aarch64.rpm<\/p>\n<p>libsepol-devel-2.9-1.ky10.aarch64.rpm<\/p>\n<p>libverto-devel-0.3.1-2.ky10.aarch64.rpm<\/p>\n<p>libselinux-devel-2.9-se.05.ky10.aarch64.rpm<\/p>\n<p>krb5-devel-1.17-9.ky10.aarch64.rpm<\/p>\n<p>libcomps-devel-0.1.8-20.ky10.aarch64.rpm<\/p>\n<p>keyutils-libs-devel-1.5.10-11.ky10.aarch64.rpm<\/p>\n<p>\u00a0\u5c06\u4ee5\u4e0a\u955c\u50cf\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u6267\u884c\u76ee\u5f55\u4e0b&#xff0c;\u8fdb\u5165\u8be5\u76ee\u5f55\u540e&#xff0c;\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u5b89\u88c5\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rpm -ivh *.rpm &#8211;nodeps &#8211;force <\/p>\n<h5>3.\u67e5\u770bzlib\u4f9d\u8d56<\/h5>\n<p>\u00a0\u5728\u547d\u4ee4\u7a97\u53e3\u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rpm -qa | grep zlib  # \u4f7f\u7528rpm\u5305\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4<br \/>\nsudo dpkg -l | grep zlib  # \u4f7f\u7528deb\u5305\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4<br \/>\nsudo yum list installed | grep zlib  # \u4f7f\u7528yum\u65b9\u5f0f\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4 <\/p>\n<p>\u00a0\u6307\u4ee4\u8f93\u5165\u540e\u7684\u6548\u679c\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"68\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2d95bf4.png\" width=\"676\" \/><\/p>\n<\/p>\n<p>\u00a0\u5982\u679c\u662f\u6ca1\u6709\u8f93\u51fa\u76f8\u5173\u7684\u5185\u5bb9&#xff0c;\u5219\u4ee3\u8868\u6ca1\u6709\u5b89\u88c5zlib\u4f9d\u8d56&#xff0c;\u5219\u9700\u8981\u624b\u52a8\u4e0b\u8f7d\u955c\u50cf\u5305\u8fdb\u884c\u5b89\u88c5&#xff0c;\u4e0b\u8f7darm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740\u5982\u4e0b&#xff1a;<\/p>\n<p>arm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740&#xff1a;https:\/\/update.cs2c.com.cn\/NS\/V10\/V10SP1\/os\/adv\/lic\/base\/aarch64\/Packages\/<\/p>\n<p>\u00a0\u8bbf\u95ee\u955c\u50cf\u4e0b\u8f7d\u9875\u9762\u540e&#xff0c;\u4e0b\u8f7d\u4ee5\u4e0b\u5173\u4e8eopenssl\u7684\u4f9d\u8d56\u955c\u50cf\u5305<\/p>\n<p>zlib-1.2.11-17.1.ky10.aarch64.rpm<\/p>\n<p>zlib-devel-1.2.11-17.1.ky10.aarch64.rpm<\/p>\n<p>\u00a0\u5c06\u4ee5\u4e0a\u955c\u50cf\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u6267\u884c\u76ee\u5f55\u4e0b&#xff0c;\u8fdb\u5165\u8be5\u76ee\u5f55\u540e&#xff0c;\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u5b89\u88c5\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rpm -ivh *.rpm &#8211;nodeps &#8211;force <\/p>\n<h5>4.\u67e5\u770bpcre<\/h5>\n<p>\u00a0\u5728\u547d\u4ee4\u7a97\u53e3\u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rpm -qa | grep pcre  # \u4f7f\u7528rpm\u5305\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4<br \/>\nsudo dpkg -l | grep pcre  # \u4f7f\u7528deb\u5305\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4<br \/>\nsudo yum list installed | grep pcre  # \u4f7f\u7528yum\u65b9\u5f0f\u5b89\u88c5\u7684\u4f7f\u7528\u8be5\u6307\u4ee4 <\/p>\n<p>\u00a0\u6307\u4ee4\u8f93\u5165\u540e\u7684\u6548\u679c\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"116\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2d9eb36.png\" width=\"679\" \/><\/p>\n<\/p>\n<p>\u00a0\u5982\u679c\u662f\u6ca1\u6709\u8f93\u51fa\u76f8\u5173\u7684\u5185\u5bb9&#xff0c;\u5219\u4ee3\u8868\u6ca1\u6709\u5b89\u88c5openssl\u4f9d\u8d56&#xff0c;\u5219\u9700\u8981\u624b\u52a8\u4e0b\u8f7d\u955c\u50cf\u5305\u8fdb\u884c\u5b89\u88c5&#xff0c;\u4e0b\u8f7darm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740\u5982\u4e0b&#xff1a;<\/p>\n<p>arm\u67b6\u6784\u7684\u955c\u50cf\u5730\u5740&#xff1a;https:\/\/update.cs2c.com.cn\/NS\/V10\/V10SP1\/os\/adv\/lic\/base\/aarch64\/Packages\/<\/p>\n<p>\u00a0\u8bbf\u95ee\u955c\u50cf\u4e0b\u8f7d\u9875\u9762\u540e&#xff0c;\u4e0b\u8f7d\u4ee5\u4e0b\u5173\u4e8eopenssl\u7684\u4f9d\u8d56\u955c\u50cf\u5305<\/p>\n<p>pcre-8.43-5.ky10.aarch64.rpm<\/p>\n<p>pcre-devel-8.43-5.ky10.aarch64.rpm<\/p>\n<p>\u00a0\u5c06\u4ee5\u4e0a\u955c\u50cf\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u6267\u884c\u76ee\u5f55\u4e0b&#xff0c;\u8fdb\u5165\u8be5\u76ee\u5f55\u540e&#xff0c;\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u5b89\u88c5\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo rpm -ivh *.rpm &#8211;nodeps &#8211;force <\/p>\n<h5>5.\u7f16\u8bd1nginx<\/h5>\n<p>\u9996\u5148\u8fdb\u5165\u89e3\u538b\u540e\u7684nginx\u76ee\u5f55&#xff0c;\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4&#xff1a;<\/p>\n<p>sudo .\/configure &#8211;prefix&#061;\/opt\/nginx &#8211;with-http_ssl_module  # \u521d\u59cb\u5316\u76f8\u5173\u914d\u7f6e&#xff0c;\u5e76\u6307\u5b9a\u5b89\u88c5nginx\u7684\u76ee\u5f55\u662f\u3010\/opt\/nginx\u3011&#xff0c;\u540c\u65f6\u5f00\u542fssl\u670d\u52a1<\/p>\n<p>sudo make   # \u7f16\u8bd1nginx\u7a0b\u5e8f<\/p>\n<p>sudo make install   # \u7f16\u8bd1\u540e\u5b89\u88c5nginx <\/p>\n<p>\u6267\u884c\u540e&#xff0c;\u5728\u4f60\u6307\u5b9a\u7684nginx\u5b89\u88c5\u76ee\u5f55\u4f1a\u51fa\u73b0\u5bf9\u5e94\u7684\u3010config\u3001sbin\u3001logs\u3001html\u3011\u8fd9\u56db\u4e2a\u6587\u4ef6\u5939<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"229\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2da8274.png\" width=\"667\" \/><\/p>\n<h3>\u4e09\u3001\u542f\u52a8nginx\u670d\u52a1\u5e76\u9a8c\u8bc1<\/h3>\n<p>\u8fdb\u5165\u521a\u521a\u5728\u7f16\u8bd1\u540e\u751f\u6210\u51fa\u6765\u7684\u6587\u4ef6\u5939\u3010sbin\u3011\u4e2d&#xff0c;\u6267\u884c\u4ee5\u4e0b\u542f\u52a8\u6307\u4ee4<\/p>\n<p>sudo .\/nginx <\/p>\n<p>\u9a8c\u8bc1\u662f\u5426\u90e8\u7f72\u6210\u529f&#xff0c;\u53ef\u4ee5\u8f93\u5165\u4e00\u4e0b\u6307\u4ee4\u67e5\u8be2nginx\u670d\u52a1\u662f\u5426\u5f00\u542f<\/p>\n<p>sudo ps -aux|grep nginx <\/p>\n<p>\u00a0\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a&#xff1a;<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"65\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2db5438.png\" width=\"912\" \/><\/p>\n<p>\u00a0\u5982\u679c\u90e8\u7f72nginx\u7684\u670d\u52a1\u5668\u53ef\u4ee5\u6709\u53ef\u89c6\u5316\u754c\u9762\u7684\u670d\u52a1\u5668\u8bbf\u95ee&#xff0c;\u53ef\u4ee5\u5728\u6709\u53ef\u89c6\u5316\u754c\u9762\u7684\u670d\u52a1\u5668\u7684\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u4ee5\u4e0b\u7f51\u5740<\/p>\n<p>http:\/\/\u670d\u52a1\u5668ip:80<\/p>\n<p>\u00a0nginx\u670d\u52a1\u542f\u52a8\u6210\u529f\u4f1a\u663e\u793a\u7684\u6548\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"316\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2dc1615.png\" width=\"1039\" \/><\/p>\n<p>\u00a0\u6ce8\u610f&#xff1a;\u5982\u679c\u65e0\u6cd5\u542f\u52a8nginx\u670d\u52a1&#xff0c;\u53ef\u4ee5\u67e5\u770b\u65e5\u5fd7&#xff0c;\u6392\u67e5\u62a5\u9519\u539f\u56e0&#xff0c;\u65e5\u5fd7\u8def\u5f84\u5728\u521a\u521a\u5728\u7f16\u8bd1\u540e\u751f\u6210\u51fa\u6765\u7684\u6587\u4ef6\u5939\u3010logs\u3011\u4e2d\u7684\u3010error.log\u3011\u6587\u4ef6\u3002<\/p>\n<\/p>\n<h3>\u56db\u3001\u914d\u7f6e\u7cfb\u7edf\u542f\u52a8\u9879\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8<\/h3>\n<h4>&#xff08;1&#xff09;\u7f16\u5199\u7cfb\u7edf\u542f\u52a8\u9879\u811a\u672c<\/h4>\n<p>\u9996\u5148&#xff0c;\u9700\u8981\u6211\u4eec\u5728\u3010\/etc\/systemd\/system\u3011\u6587\u4ef6\u5939\u4e0b\u65b0\u5efa\u3010nginx.service\u3011\u811a\u672c\u6587\u4ef6&#xff0c;\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4<\/p>\n<p>sudo vi \/etc\/systemd\/system\/nginx.service <\/p>\n<p>\u3010nginx.service\u3011\u811a\u672c\u6587\u4ef6\u7684\u5185\u5bb9\u5982\u4e0b\u00a0<\/p>\n<p>[Unit]<br \/>\nDescription&#061;The NGINX HTTP and reverse proxy server<br \/>\nAfter&#061;network-online.target<\/p>\n<p>[Service]<br \/>\n# \u5728\u4e0b\u5217\u6240\u6709\u914d\u7f6e\u4e2d\u7684\u3010\/opt\/nginx\u3011\u662f\u9700\u8981\u66ff\u6362\u6210\u4f60\u5728\u6267\u884c\u3010.\/configure &#8211;prefix&#061;\/opt\/nginx\u3011\u4e2d\u3010&#8211;prefix&#061;\u3011\u540e\u9762\u7684\u4e00\u6bb5\u5730\u5740<br \/>\nType&#061;forking<br \/>\nPIDFile&#061;\/opt\/nginx\/logs\/nginx.pid<br \/>\nExecStartPre&#061;\/opt\/nginx\/sbin\/nginx -t -c \/opt\/nginx\/conf\/nginx.conf<br \/>\nExecStart&#061;\/opt\/nginx\/sbin\/nginx -c \/opt\/nginx\/conf\/nginx.conf<br \/>\nExecReload&#061;\/opt\/nginx\/sbin\/nginx -s reload<br \/>\nExecStop&#061;\/bin\/kill -s QUIT $MAINPID<br \/>\nPrivateTmp&#061;true<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target <\/p>\n<h4>\u00a0&#xff08;2&#xff09;\u6267\u884c\u7cfb\u7edf\u542f\u52a8\u9879\u811a\u672c<\/h4>\n<p>\u63a5\u7740&#xff0c;\u9700\u8981\u6211\u4eec\u7ed9\u3010nginx.service\u3011\u5206\u914d\u6267\u884c\u6743\u9650&#xff0c;\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4<\/p>\n<p>sudo chmod 777 \/etc\/systemd\/system\/nginx.service <\/p>\n<p>\u00a0\u518d\u7136\u540e&#xff0c;\u9700\u8981\u6211\u4eec\u5237\u65b0\u73af\u5883\u53d8\u91cf&#xff0c;\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4<\/p>\n<p>sudo systemctl daemon-reload <\/p>\n<p>\u800c\u540e&#xff0c;\u6211\u4eec\u4fbf\u53ef\u4ee5\u6267\u884c\u542f\u52a8\u547d\u4ee4&#xff0c;\u542f\u52a8nginx\u670d\u52a1&#xff0c;\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4<\/p>\n<p>sudo systemctl start nginx.service  # \u542f\u52a8\u6307\u4ee4<\/p>\n<p>sudo systemctl stop nginx.service  # \u5173\u505c\u6307\u4ee4<\/p>\n<p>sudo systemctl reload nginx.service  # \u5237\u65b0nginx\u914d\u7f6e <\/p>\n<p>\u00a0\u6700\u540e&#xff0c;\u6211\u4eec\u53ef\u4ee5\u9a8c\u8bc1nginx\u670d\u52a1\u662f\u5426\u542f\u52a8\u6210\u529f&#xff0c;\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4<\/p>\n<p>sudo systemctl status nginx.service <\/p>\n<p>\u6267\u884c\u4e0a\u9762\u7684\u6307\u4ee4\u7684\u6548\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"257\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2de9434.png\" width=\"967\" \/><\/p>\n<h4>&#xff08;3&#xff09;\u8bbe\u7f6enginx\u670d\u52a1\u5f00\u673a\u81ea\u542f\u52a8<\/h4>\n<p>\u4e0a\u9762\u6240\u6709\u7684\u6b65\u9aa4\u90fd\u6267\u884c\u6210\u529f\u540e&#xff0c;\u6211\u4eec\u4fbf\u53ef\u4ee5\u5c06nginx\u670d\u52a1\u8bbe\u7f6e\u4e3a\u5f00\u542f\u81ea\u542f&#xff0c;\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4<\/p>\n<p>sudo systemctl enable nginx.service <\/p>\n<p>\u672c\u6587\u53c2\u8003\u4ee5\u4e0b\u6587\u7ae0&#xff1a;<\/p>\n<p>\u9e92\u9e9f\u670d\u52a1\u5668 arrch64\u67b6\u6784 nginx \u79bb\u7ebfRPM\u5b89\u88c5&#8212;-\u6b63\u5fc3\u5b88\u4e00\u00a0<\/p>\n<p>linux\u4e0b\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u8fc7\u67d0\u8f6f\u4ef6\u5305&#8212;-menghefang\u00a0<\/p>\n<\/p>\n<p>\u672c\u6587\u7ae0\u7684\u5185\u5bb9\u5230\u8fd9\u5c31\u5df2\u7ecf\u7ed3\u675f\u4e86&#xff0c;\u5e0c\u671b\u6587\u7ae0\u53ef\u4ee5\u5e2e\u5230\u4f60\u4eec&#xff0c;\u611f\u8c22\u4f60\u4eec\u7684\u9605\u8bfb&#xff0c;\u89c9\u5f97\u5c0f\u7f16\u7684\u6587\u7ae0\u5199\u5f97\u4e0d\u9519\u53ef\u4ee5\u5173\u6ce8\u5c0f\u7f16&#xff0c;\u6211\u5c06\u4f1a\u4e0d\u5b9a\u671f\u66f4\u65b0\u5173\u4e8e\u670d\u52a1\u5668\u90e8\u7f72\u5e94\u7528\u76f8\u5173\u77e5\u8bc6\u7684\u535a\u6587\u3002\u5c0f\u7f16\u8fd8\u7f16\u5199\u4e86\u5173\u4e8e\u90e8\u7f72redis\u670d\u52a1\u7684\u535a\u6587&#xff0c;\u5e0c\u671b\u53ef\u4ee5\u5e2e\u5230\u4f60\u4eec\u3002<\/p>\n<p>\u6587\u7ae0\u5165\u53e3\u53ef\u70b9\u51fb&#xff1a;arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u673a\u79bb\u7ebf\u5b89\u88c5redis\u670d\u52a1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf26\u6b21\u3002arm64\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u90e8\u7f72nignx\u5168\u6d41\u7a0b\u6b65\u9aa4\u8be6\u89e3_arm\u67b6\u6784\u5b89\u88c5nginx<\/p>\n","protected":false},"author":2,"featured_media":9521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[117,43,188],"topic":[],"class_list":["post-9530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-nginx","tag-43","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1 - \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\/9530.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf26\u6b21\u3002arm64\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u90e8\u7f72nignx\u5168\u6d41\u7a0b\u6b65\u9aa4\u8be6\u89e3_arm\u67b6\u6784\u5b89\u88c5nginx\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/9530.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T09:28:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2d422f3.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/9530.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/9530.html\",\"name\":\"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T09:28:15+00:00\",\"dateModified\":\"2025-04-18T09:28:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/9530.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/9530.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/9530.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1\"}]},{\"@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":"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1 - \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\/9530.html","og_locale":"zh_CN","og_type":"article","og_title":"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf26\u6b21\u3002arm64\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u90e8\u7f72nignx\u5168\u6d41\u7a0b\u6b65\u9aa4\u8be6\u89e3_arm\u67b6\u6784\u5b89\u88c5nginx","og_url":"https:\/\/www.wsisp.com\/helps\/9530.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T09:28:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418092813-68021b2d422f3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/9530.html","url":"https:\/\/www.wsisp.com\/helps\/9530.html","name":"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T09:28:15+00:00","dateModified":"2025-04-18T09:28:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/9530.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/9530.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/9530.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"arm\u5185\u6838\u67b6\u6784\u670d\u52a1\u5668\u672c\u5730\u79bb\u7ebf\u5b89\u88c5nginx\u670d\u52a1"}]},{"@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\/9530","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=9530"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/9530\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/9521"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=9530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=9530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=9530"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=9530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}