{"id":33007,"date":"2022-11-24T01:44:31","date_gmt":"2023-09-07T10:19:53","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/"},"modified":"2024-04-29T02:13:12","modified_gmt":"2024-04-28T18:13:12","slug":"%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/","title":{"rendered":"\u5728CentOS7\u4e0a\u5b89\u88c5nginx"},"content":{"rendered":"<p>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u7f51\u7ad9\uff1a<br \/>\nhttps:\/\/www.rem-system.com\/centos-nginx-inst\/<\/p>\n<pre class=\"post-pre\"><code>$ cat \/etc\/redhat-release\r\nCentOS Linux release 7.9.2009 (Core)\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code># firewall-cmd --add-service=http --permanent\r\nsuccess\r\n# firewall-cmd --reload\r\nsuccess\r\n# firewall-cmd --list-all\r\npublic (active)\r\n  target: default\r\n  icmp-block-inversion: no\r\n  interfaces: eth0\r\n  sources:\r\n  services: dhcpv6-client http ssh\r\n  ports:\r\n  protocols:\r\n  masquerade: no\r\n  forward-ports:\r\n  source-ports:\r\n  icmp-blocks:\r\n  rich rules:\r\n<\/code><\/pre>\n<p>\u8981\u5b89\u88c5nginx\uff0c\u9700\u8981\u6dfb\u52a0nginx\u5e93\u5b58\u5e93\u3002<br \/>\n\u68c0\u67e5\u5f53\u524d\u7684\u5e93\u5b58\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ls -s \/etc\/yum.repos.d\/\r\ntotal 48\r\n 4 CentOS-Base.repo        4 CentOS-Media.repo           4 epel.repo\r\n 4 CentOS-CR.repo          4 CentOS-Sources.repo         4 epel-testing.repo\r\n 4 CentOS-Debuginfo.repo  12 CentOS-Vault.repo\r\n 4 CentOS-fasttrack.repo   4 CentOS-x86_64-kernel.repo\r\n<\/code><\/pre>\n<p>\u5c06\u7528\u4e8enginx\u7684\u5b58\u50a8\u5e93\u6587\u4ef6\u6dfb\u52a0\u5230\u4e0a\u8ff0\u76ee\u5f55\u4e2d\u3002<\/p>\n<h3>\u6dfb\u52a0Nginx\u7684\u5b58\u50a8\u5e93\u6587\u4ef6\u3002<\/h3>\n<pre class=\"post-pre\"><code># vi \/etc\/yum.repos.d\/nginx.repo\r\n\r\n#\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\r\n[nginx]\r\nname=nginx repo\r\nbaseurl=http:\/\/nginx.org\/packages\/mainline\/centos\/7\/$basearch\/\r\ngpgcheck=0\r\nenabled=1\r\n\r\ngpgkey=https:\/\/nginx.org\/keys\/nginx_signing.key\r\nmodule_hotfixes=true\r\n<\/code><\/pre>\n<p>\u6211\u5011\u5c07\u9032\u884c\u9644\u52a0\u78ba\u8a8d\u3002<\/p>\n<pre class=\"post-pre\"><code>$ yum search nginx\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: ty1.mirror.newmediaexpress.com\r\n * epel: ftp.iij.ad.jp\r\n * extras: ty1.mirror.newmediaexpress.com\r\n * updates: ty1.mirror.newmediaexpress.com\r\nnginx                                                    | 2.9 kB     00:00\r\nnginx\/x86_64\/primary_db                                    | 186 kB   00:01\r\n============================== N\/S matched: nginx ==============================\r\ncollectd-nginx.x86_64 : Nginx plugin for collectd\r\nmunin-nginx.noarch : NGINX support for Munin resource monitoring\r\nnginx-all-modules.noarch : A meta package that installs all available Nginx\r\n                         : modules\r\nnginx-debug.x86_64 : debug version of nginx\r\nnginx-debuginfo.x86_64 : Debug information for package nginx\r\nnginx-filesystem.noarch : The basic directory layout for the Nginx server\r\nnginx-mod-http-image-filter.x86_64 : Nginx HTTP image filter module\r\nnginx-mod-http-perl.x86_64 : Nginx HTTP perl module\r\nnginx-mod-http-xslt-filter.x86_64 : Nginx XSLT module\r\nnginx-mod-mail.x86_64 : Nginx mail modules\r\nnginx-mod-stream.x86_64 : Nginx stream modules\r\nnginx-module-geoip.x86_64 : nginx GeoIP dynamic modules\r\nnginx-module-geoip-debuginfo.x86_64 : Debug information for package\r\n                                    : nginx-module-geoip\r\nnginx-module-image-filter.x86_64 : nginx image filter dynamic module\r\nnginx-module-image-filter-debuginfo.x86_64 : Debug information for package\r\n                                           : nginx-module-image-filter\r\nnginx-module-njs.x86_64 : nginx njs dynamic modules\r\nnginx-module-njs-debuginfo.x86_64 : Debug information for package\r\n                                  : nginx-module-njs\r\nnginx-module-perl.x86_64 : nginx Perl dynamic module\r\nnginx-module-perl-debuginfo.x86_64 : Debug information for package\r\n                                   : nginx-module-perl\r\nnginx-module-xslt.x86_64 : nginx xslt dynamic module\r\nnginx-module-xslt-debuginfo.x86_64 : Debug information for package\r\n                                   : nginx-module-xslt\r\nnginx-nr-agent.noarch : New Relic agent for NGINX and NGINX Plus\r\nowncloud-nginx.noarch : Nginx integration for ownCloud\r\npagure-web-nginx.noarch : Nginx configuration for Pagure\r\npcp-pmda-nginx.x86_64 : Performance Co-Pilot (PCP) metrics for the Nginx\r\n                      : Webserver\r\npython2-certbot-nginx.noarch : The nginx plugin for certbot\r\nsympa-nginx.x86_64 : Sympa with nginx\r\nnginx.x86_64 : High performance web server\r\nunit.x86_64 : NGINX Unit\r\nunit-devel.x86_64 : NGINX Unit (development tools)\r\n\r\n  Name and summary matches only, use \"search all\" for everything.\r\n<\/code><\/pre>\n<p>\u987a\u4fbf\u63d0\u4e00\u53e5\uff0c\u5b89\u88c5nginx\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u662f nginx.x86_64: \u9ad8\u6027\u80fd\u7f51\u9875\u670d\u52a1\u5668\u3002<\/p>\n<h3>nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u5c06\u786e\u8ba4nginx\u8f6f\u4ef6\u5305\u7684\u4fe1\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ yum info nginx\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: ty1.mirror.newmediaexpress.com\r\n * epel: ftp.iij.ad.jp\r\n * extras: ty1.mirror.newmediaexpress.com\r\n * updates: ty1.mirror.newmediaexpress.com\r\nInstalled Packages\r\nName        : nginx\r\nArch        : x86_64\r\nEpoch       : 1\r\nVersion     : 1.16.1\r\nRelease     : 3.el7\r\nSize        : 1.6 M\r\nRepo        : installed\r\nFrom repo   : epel\r\nSummary     : A high performance web server and reverse proxy server\r\nURL         : http:\/\/nginx.org\/\r\nLicense     : BSD\r\nDescription : Nginx is a web server and a reverse proxy server for HTTP, SMTP,\r\n            : POP3 and IMAP protocols, with a strong focus on high concurrency,\r\n            : performance and low memory usage.\r\n\r\nAvailable Packages\r\nName        : nginx\r\nArch        : x86_64\r\nEpoch       : 1\r\nVersion     : 1.19.5\r\nRelease     : 1.el7.ngx\r\nSize        : 788 k\r\nRepo        : nginx\/x86_64\r\nSummary     : High performance web server\r\nURL         : http:\/\/nginx.org\/\r\nLicense     : 2-clause BSD-like license\r\nDescription : nginx [engine x] is an HTTP and reverse proxy server, as well as\r\n            : a mail proxy server.\r\n<\/code><\/pre>\n<p>\u3067\u306fnginx\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>#-y\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306e\u78ba\u8a8d\u5fdc\u7b54\u3092\u7701\u3051\u308b(\u77e5\u3089\u306a\u304b\u3063\u305f)\r\n# yum -y install nginx\r\n\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\nepel\/x86_64\/metalink                                     | 8.7 kB     00:00\r\n * base: ty1.mirror.newmediaexpress.com\r\n * epel: ftp.iij.ad.jp\r\n * extras: ty1.mirror.newmediaexpress.com\r\n * updates: ty1.mirror.newmediaexpress.com\r\nbase                                                     | 3.6 kB     00:00\r\nextras                                                   | 2.9 kB     00:00\r\nnginx                                                    | 2.9 kB     00:00\r\nupdates                                                  | 2.9 kB     00:00\r\nnginx\/x86_64\/primary_db                                    | 186 kB   00:01\r\nResolving Dependencies\r\n--&gt; Running transaction check\r\n---&gt; Package nginx.x86_64 1:1.16.1-3.el7 will be updated\r\n---&gt; Package nginx.x86_64 1:1.19.5-1.el7.ngx will be an update\r\n--&gt; Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n================================================================================\r\n Package       Arch           Version                       Repository     Size\r\n================================================================================\r\nUpdating:\r\n nginx         x86_64         1:1.19.5-1.el7.ngx            nginx         788 k\r\n\r\nTransaction Summary\r\n================================================================================\r\nUpgrade  1 Package\r\n\r\nTotal download size: 788 k\r\nDownloading packages:\r\nDelta RPMs disabled because \/usr\/bin\/applydeltarpm not installed.\r\nnginx-1.19.5-1.el7.ngx.x86_64.rpm                          | 788 kB   00:02\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  Updating   : 1:nginx-1.19.5-1.el7.ngx.x86_64                              1\/2\r\n  Cleanup    : 1:nginx-1.16.1-3.el7.x86_64                                  2\/2\r\n  Verifying  : 1:nginx-1.19.5-1.el7.ngx.x86_64                              1\/2\r\n  Verifying  : 1:nginx-1.16.1-3.el7.x86_64                                  2\/2\r\n\r\nUpdated:\r\n  nginx.x86_64 1:1.19.5-1.el7.ngx\r\n<\/code><\/pre>\n<h3>\u786e\u8ba4\u5df2\u5b89\u88c5\u7684nginx\u8f6f\u4ef6\u5305<\/h3>\n<pre class=\"post-pre\"><code>$ yum list installed | grep nginx\r\nnginx.x86_64                       1:1.19.5-1.el7.ngx             @nginx\r\n<\/code><\/pre>\n<p>\u5df2\u7ecf\u5b89\u88c5\u4e86\u3002<\/p>\n<h3>\u542f\u52a8nginx<\/h3>\n<pre class=\"post-pre\"><code>$ systemctl start nginx\r\n#\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\r\n$ systemctl status nginx\r\n\u25cf nginx.service - nginx - high performance web server\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/nginx.service; disabled; vendor preset: disabled)\r\n   Active: active (running) since Sun 2020-12-13 09:36:54 JST; 17s ago\r\n     Docs: http:\/\/nginx.org\/en\/docs\/\r\n  Process: 30579 ExecStart=\/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf (code=exited, status=0\/SUCCESS)\r\n Main PID: 30580 (nginx)\r\n   CGroup: \/system.slice\/nginx.service\r\n           tq30580 nginx: master process \/usr\/sbin\/nginx -c \/etc\/nginx\/nginx....\r\n           mq30581 nginx: worker process\r\n\r\nDec 13 09:36:54 f5les1se systemd[1]: Starting nginx - high performance web .....\r\nDec 13 09:36:54 f5les1se systemd[1]: Can't open PID file \/var\/run\/nginx.pid...ry\r\nDec 13 09:36:54 f5les1se systemd[1]: Started nginx - high performance web s...r.\r\nHint: Some lines were ellipsized, use -l to show in full.\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u6b63\u5728\u8fd0\u884c\uff0c\u6240\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002<br \/>\n\u4f3c\u4e4e\u8fd8\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7528ps\u547d\u4ee4\u6765\u786e\u8ba4\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ps -aux | grep nginx\r\nroot     30580  0.0  0.0  46492   972 ?        Ss   09:36   0:00 nginx: master process \/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf\r\nnginx    30581  0.0  0.1  46884  1600 ?        S    09:36   0:00 nginx: worker process\r\nadmin    30602  0.0  0.0 112812   972 pts\/0    S+   09:39   0:00 grep --color=auto nginx\r\n<\/code><\/pre>\n<h3>Nginx\u7684\u81ea\u52a8\u542f\u52a8\u8bbe\u7f6e<\/h3>\n<p>\u30b5\u30fc\u30dc\u306e\u518d\u8d77\u52d5\u6642\u306a\u3069\u306b\u3001nginx\u304c\u81ea\u52d5\u7684\u306b\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u3082systemctl\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>#centOS\u3067enable\u306f\u81ea\u52d5\u8d77\u52d5\u3092\u610f\u5473\u3059\u308b\r\n$ systemctl enable nginx\r\n<\/code><\/pre>\n<p>\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\u3082\u5ff5\u306e\u305f\u3081\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ systemctl is-enabled nginx\r\nenabled\r\n<\/code><\/pre>\n<p>\u7531\u65bc\u5df2\u555f\u7528\uff0c\u6240\u4ee5\u8a2d\u5b9a\u5df2\u5b8c\u6210\u3002<\/p>\n<h3>\u5728\u7f51\u9875\u4e0a\u8fdb\u884c\u786e\u8ba4<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u5e94\u8be5\u80fd\u591f\u5728\u63d0\u4f9b\u7684nginx\u8f6f\u4ef6\u5305\u4e2d\u663e\u793a\u201c\u7f51\u9875\u3002<br \/>\n\u5728\u4e2a\u4eba\u7684\u7f51\u7edc\u6d4f\u89c8\u5668\u4e2d\u641c\u7d22\u5b89\u88c5\u4e86nginx\u670d\u52a1\u5668\u7684IP\u5730\u5740\u3002<br \/>\n\u4f8b\u5982\uff1ahttp:\/\/140.00.00.00\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d154f37434c4406bfe1b1\/31-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5982\u679c\u51fa\u73b0\u4e0a\u8ff0\u7684\u753b\u9762\u663e\u793a\uff0c\u8868\u793a\u8bbe\u7f6e\u5df2\u7ecf\u6b63\u5e38\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u7f51\u7ad9\uff1a https:\/\/www.rem-system.com\/centos-nginx-inst\/  [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33007","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728CentOS7\u4e0a\u5b89\u88c5nginx - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5nginx\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728CentOS7\u4e0a\u5b89\u88c5nginx\" \/>\n<meta property=\"og:description\" content=\"\u8bf7\u53c2\u8003\u4ee5\u4e0b\u7f51\u7ad9\uff1a https:\/\/www.rem-system.com\/centos-nginx-inst\/ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5nginx\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-07T10:19:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T18:13:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d154f37434c4406bfe1b1\/31-0.png\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/\",\"name\":\"\u5728CentOS7\u4e0a\u5b89\u88c5nginx - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-07T10:19:53+00:00\",\"dateModified\":\"2024-04-28T18:13:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728CentOS7\u4e0a\u5b89\u88c5nginx\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728CentOS7\u4e0a\u5b89\u88c5nginx - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5nginx\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728CentOS7\u4e0a\u5b89\u88c5nginx","og_description":"\u8bf7\u53c2\u8003\u4ee5\u4e0b\u7f51\u7ad9\uff1a https:\/\/www.rem-system.com\/centos-nginx-inst\/ [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728centos7\u4e0a\u5b89\u88c5nginx\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-07T10:19:53+00:00","article_modified_time":"2024-04-28T18:13:12+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d154f37434c4406bfe1b1\/31-0.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/","name":"\u5728CentOS7\u4e0a\u5b89\u88c5nginx - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-07T10:19:53+00:00","dateModified":"2024-04-28T18:13:12+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728CentOS7\u4e0a\u5b89\u88c5nginx"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8centos7%e4%b8%8a%e5%ae%89%e8%a3%85nginx%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=33007"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33007\/revisions"}],"predecessor-version":[{"id":74192,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33007\/revisions\/74192"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=33007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=33007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=33007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}