{"id":24720,"date":"2025-04-19T10:36:17","date_gmt":"2025-04-19T02:36:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/24720.html"},"modified":"2025-04-19T10:36:17","modified_gmt":"2025-04-19T02:36:17","slug":"redhat7-6_x86_x64%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e6%9c%80%e5%b0%8f%e5%8c%96%e5%ae%89%e8%a3%85%ef%bc%89%e6%90%ad%e5%bb%ba%e4%bd%bf%e7%94%a8%e8%ae%b0%e5%bd%95%ef%bc%88%e4%ba%8c%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/24720.html","title":{"rendered":"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09"},"content":{"rendered":"<ul>\n<li>\n<h4>PostgreSQL\u6570\u636e\u5e93\u90e8\u7f72\u7ba1\u7406<\/h4>\n<\/li>\n<\/ul>\n<p>1.rpm\u65b9\u5f0f\u5b89\u88c5<\/p>\n<p>\u6302\u8f7d\u7cfb\u7edf\u5b89\u88c5\u955c\u50cf&#xff1a;<\/p>\n<p><span style=\"color:#4b4b4b\">[root&#064;localhost ~]# mount \/dev\/cdrom \/mnt<\/span><\/p>\n<p><span style=\"color:#4b4b4b\">\u8fdb\u5165\u5b89\u88c5\u5305\u8def\u5f84&#xff1a;<\/span><\/p>\n<p><span style=\"color:#4b4b4b\">[root&#064;localhost ~]# cd \/mnt\/Packages<\/span><\/p>\n<p>\u4f9d\u6b21\u5b89\u88c5\u5982\u4e0b\u7a0b\u5e8f\u5305&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[root&#064;localhost Packages]# rpm -ihv postgresql-libs-9.2.7-1.el7.x86_64.rpm<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[root&#064;localhost Packages]# rpm -ihv postgresql-9.2.7-1.el7.x86_64.rpm<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[root&#064;localhost Packages]# rpm -ihv postgresql-server-9.2.7-1.el7.x86_64.rpm<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">2.\u521d\u59cb\u5316\u6570\u636e\u5e93\u5e76\u5efa\u7acb\u6570\u636e\u5e93\u548c\u7528\u6237<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u5207\u6362\u7cfb\u7edf\u7528\u6237&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[root&#064;localhost ~]# su &#8211; postgres<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u521d\u59cb\u5316\u6570\u636e\u5e93&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[postgres&#064;localhost ~]$ initdb -D \/var\/lib\/pgsql\/data\/<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">3.\u6570\u636e\u5e93\u542f\u505c<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u542f\u52a8\u6570\u636e\u5e93&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[postgres&#064;localhost ~]$\u00a0<\/span>pg_ctl -D \/var\/lib\/pgsql\/data start<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u505c\u7528\u6570\u636e\u5e93&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[postgres&#064;localhost ~]$\u00a0<\/span>pg_ctl -D \/var\/lib\/pgsql\/data\u00a0stop<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u91cd\u542f\u6570\u636e\u5e93&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[postgres&#064;localhost ~]$\u00a0<\/span>pg_ctl -D \/var\/lib\/pgsql\/data restart<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u67e5\u770b\u6570\u636e\u5e93\u662f\u5426\u542f\u52a8&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[postgres&#064;localhost ~]$\u00a0<\/span>ps -A | grep postgres<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">4.\u6570\u636e\u5e93\u7ba1\u7406<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u521b\u5efa\u6570\u636e\u5e93&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">[postgres&#064;localhost ~]$ createdb \u6570\u636e\u5e93\u540d<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u521b\u5efa\u6570\u636e\u5e93\u7528\u6237&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">[postgres&#064;localhost ~]$ createuser \u7528\u6237\u540d<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u8bbf\u95ee\u6570\u636e\u5e93&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#4b4b4b\">[postgres&#064;localhost ~]$ psql -d \u6570\u636e\u5e93\u540d -U \u7528\u6237\u540d<\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4f7f\u7528&#034;\\\\q&#034;\u547d\u4ee4\u9000\u51fapostgresql\u7ba1\u7406\u5de5\u5177<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u67e5\u770bpostgresql\u4f7f\u7528\u7684\u7aef\u53e3&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">[postgres&#064;localhost ~]$\u00a0netstat -a | grep postgresql postgresql\u6570\u636e\u76ee\u5f55&#xff1a;\/var\/lib\/pgsql\/data<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">5.\u6570\u636e\u5e93\u53c2\u6570\u914d\u7f6e<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\/var\/lib\/pgsql\/data\u76ee\u5f55\u4e0b\u7f16\u8f91postgresql.conf\u6587\u4ef6&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">listen_addresses &#061; &#039;*&#039; \u00a0#\u5c06\u524d\u9762\u6ce8\u91ca\u53bb\u6389\u5e76\u5c06\u503c\u6539\u4e3a* \u00a0 \u00a0 \u00a0 # PostgreSQL\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u9ed8\u8ba4\u662f\u53ea\u63a5\u53d7\u6765\u5728\u672c\u673alocalhost\u7684\u8fde\u63a5\u8bf7\u6c42&#xff0c;\u6b64\u5904\u5c06\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u76d1\u542c\u6a21\u5f0f\u4fee\u6539\u4e3a\u76d1\u542c\u6240\u6709\u4e3b\u673a\u53d1\u51fa\u7684\u8fde\u63a5\u8bf7\u6c42 port &#061; 5432 \u00a0 \u00a0 #\u5c06\u524d\u9762\u6ce8\u91ca\u53bb\u6389\u00a0 # \u00a0\u9ed8\u8ba4\u7aef\u53e3 \/var\/lib\/pgsql\/data\u76ee\u5f55\u4e0b&#xff0c;\u4fee\u6539pg_hba.conf\u6587\u4ef6&#xff0c;\u914d\u7f6e\u5bf9\u6570\u636e\u5e93\u7684\u8bbf\u95ee\u6743\u9650&#xff1a;<\/p>\n<p>\u5728\u6700\u540e\u4e00\u884c\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>host \u00a0 \u00a0 \u00a0all \u00a0 \u00a0 \u00a0all \u00a0 \u00a0 \u00a0 \u00a0 192.168.61.0\/24 \u00a0 \u00a0 \u00a0 \u00a0 trust<\/p>\n<p>\u4fdd\u5b58\u9000\u51fa \u4fee\u6539\u9ed8\u8ba4\u6570\u636e\u5e93\u7528\u6237\u540d\u767b\u9646\u5bc6\u7801&#xff1a;<\/p>\n<p>su &#8211; postgres<\/p>\n<p>psql\u00a0<\/p>\n<p>postgres&#061;# \\\\password<\/p>\n<p>\u63d0\u793a\u4fee\u6539\u5bc6\u7801\u3002<\/p>\n<p>\u53c2\u6570\u4fee\u6539\u540e&#xff0c;\u9700\u8981\u91cd\u542f\u6570\u636e\u5e93<\/p>\n<ul>\n<li>\n<h4>Apache&#043;PHP\u73af\u5883\u642d\u5efa\u914d\u7f6e<\/h4>\n<\/li>\n<\/ul>\n<p>Apache\u5b89\u88c5\u914d\u7f6e&#xff1a;<\/p>\n<p>1.\u5b89\u88c5apache\u8f6f\u4ef6\u5305 yum install httpd -y<\/p>\n<p>2.\u542f\u52a8apache\u670d\u52a1 systemctl start httpd \u00a0 \u00a0\/\/\u5f00\u542f\u670d\u52a1 systemctl enable httpd \u00a0 \/\/\u5f00\u673a\u81ea\u542f<\/p>\n<p>3.Apache\u7684\u914d\u7f6e Apache\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff1a;\/etc\/httpd\/conf\/httpd.conf ServerRoot \u201c\/etc\/httpd\u201d \u7528\u4e8e\u6307\u5b9aApache\u7684\u8fd0\u884c\u76ee\u5f55 Listen 80 \u76d1\u542c\u7aef\u53e3 DocumentRoot \u201c\/var\/www\/html\u201d \u7f51\u9875\u6587\u4ef6\u7684\u5b58\u653e\u76ee\u5f55<\/p>\n<p>&lt;Directory &#034;\/var\/www\/html&#034;&gt; \u00a0 \u00a0 \u00a0 \u00a0Require all granted \u00a0 \u00a0\u81ea\u5b9a\u4e49\u76ee\u5f55\u6743\u9650\u00a0 \u00a0&lt;\/Directory&gt;\u00a0<\/p>\n<p>ErrorLog \u201clogs\/error_log\u201d \u9519\u8bef\u65e5\u5fd7\u5b58\u653e\u4f4d\u7f6e DirectoryIndex index.html \u9ed8\u8ba4\u4e3b\u9875\u540d\u79f0<\/p>\n<p>PHP\u5b89\u88c5\u914d\u7f6e&#xff1a;<\/p>\n<p>1.\u5b89\u88c5php yum -y install php php-mysql<\/p>\n<p>2.\u4fee\u6539\/etc\/php.ini\u6587\u4ef6 cgi.fix_pathinfo&#061;0 date.timezone &#061; PRC<\/p>\n<p>3.\u91cd\u542fApache\u670d\u52a1 systemctl restart httpd<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb956\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf5\u6b21\u3002PostgreSQL\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9ed8\u8ba4\u662f\u53ea\u63a5\u53d7\u6765\u5728\u672c\u673alocalhost\u7684\u8fde\u63a5\u8bf7\u6c42\uff0c\u6b64\u5904\u5c06\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u76d1\u542c\u6a21\u5f0f\u4fee\u6539\u4e3a\u76d1\u542c\u6240\u6709\u4e3b\u673a\u53d1\u51fa\u7684\u8fde\u63a5\u8bf7\u6c42\u3002ServerRoot \u201c\/etc\/httpd\u201d \u7528\u4e8e\u6307\u5b9aApache\u7684\u8fd0\u884c\u76ee\u5f55\u3002Apache\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1a\/etc\/httpd\/conf\/httpd.conf\u3002DocumentRoot \u201c\/var\/www\/html\u201d \u7f51\u9875\u6587\u4ef6\u7684\u5b58\u653e\u76ee\u5f55\u3002postgresql\u6570\u636e\u76ee\u5f55\uff1a\/var\/lib\/pgsql\/data\u30022.\u4fee\u6539\/etc\/php.ini\u6587\u4ef6\u3002_redhat\u6700\u5c0f\u5316\u5b89\u88c5<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,766,44],"topic":[],"class_list":["post-24720","post","type-post","status-publish","format-standard","hentry","category-server","tag-43","tag-766","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09 - \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\/24720.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb956\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf5\u6b21\u3002PostgreSQL\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9ed8\u8ba4\u662f\u53ea\u63a5\u53d7\u6765\u5728\u672c\u673alocalhost\u7684\u8fde\u63a5\u8bf7\u6c42\uff0c\u6b64\u5904\u5c06\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u76d1\u542c\u6a21\u5f0f\u4fee\u6539\u4e3a\u76d1\u542c\u6240\u6709\u4e3b\u673a\u53d1\u51fa\u7684\u8fde\u63a5\u8bf7\u6c42\u3002ServerRoot \u201c\/etc\/httpd\u201d \u7528\u4e8e\u6307\u5b9aApache\u7684\u8fd0\u884c\u76ee\u5f55\u3002Apache\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1a\/etc\/httpd\/conf\/httpd.conf\u3002DocumentRoot \u201c\/var\/www\/html\u201d \u7f51\u9875\u6587\u4ef6\u7684\u5b58\u653e\u76ee\u5f55\u3002postgresql\u6570\u636e\u76ee\u5f55\uff1a\/var\/lib\/pgsql\/data\u30022.\u4fee\u6539\/etc\/php.ini\u6587\u4ef6\u3002_redhat\u6700\u5c0f\u5316\u5b89\u88c5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/24720.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-19T02:36:17+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24720.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/24720.html\",\"name\":\"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T02:36:17+00:00\",\"dateModified\":\"2025-04-19T02:36:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/24720.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/24720.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24720.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09\"}]},{\"@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":"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09 - \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\/24720.html","og_locale":"zh_CN","og_type":"article","og_title":"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb956\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf5\u6b21\u3002PostgreSQL\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9ed8\u8ba4\u662f\u53ea\u63a5\u53d7\u6765\u5728\u672c\u673alocalhost\u7684\u8fde\u63a5\u8bf7\u6c42\uff0c\u6b64\u5904\u5c06\u6570\u636e\u5e93\u670d\u52a1\u5668\u7684\u76d1\u542c\u6a21\u5f0f\u4fee\u6539\u4e3a\u76d1\u542c\u6240\u6709\u4e3b\u673a\u53d1\u51fa\u7684\u8fde\u63a5\u8bf7\u6c42\u3002ServerRoot \u201c\/etc\/httpd\u201d \u7528\u4e8e\u6307\u5b9aApache\u7684\u8fd0\u884c\u76ee\u5f55\u3002Apache\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1a\/etc\/httpd\/conf\/httpd.conf\u3002DocumentRoot \u201c\/var\/www\/html\u201d \u7f51\u9875\u6587\u4ef6\u7684\u5b58\u653e\u76ee\u5f55\u3002postgresql\u6570\u636e\u76ee\u5f55\uff1a\/var\/lib\/pgsql\/data\u30022.\u4fee\u6539\/etc\/php.ini\u6587\u4ef6\u3002_redhat\u6700\u5c0f\u5316\u5b89\u88c5","og_url":"https:\/\/www.wsisp.com\/helps\/24720.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T02:36:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/24720.html","url":"https:\/\/www.wsisp.com\/helps\/24720.html","name":"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T02:36:17+00:00","dateModified":"2025-04-19T02:36:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/24720.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/24720.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/24720.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RedHat7.6_x86_x64\u670d\u52a1\u5668\uff08\u6700\u5c0f\u5316\u5b89\u88c5\uff09\u642d\u5efa\u4f7f\u7528\u8bb0\u5f55\uff08\u4e8c\uff09"}]},{"@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\/24720","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=24720"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24720\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=24720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=24720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=24720"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=24720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}