{"id":199410,"date":"2025-05-03T12:18:30","date_gmt":"2025-05-03T04:18:30","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199410\/"},"modified":"2025-05-03T12:18:30","modified_gmt":"2025-05-03T04:18:30","slug":"%e5%9c%a8centso%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e5%ae%89%e8%a3%85ecshop%e8%af%a6%e7%bb%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199410\/","title":{"rendered":"\u5728Centso\u670d\u52a1\u5668\u4e0a\u5b89\u88c5ECShop\u8be6\u7ec6\u65b9\u6cd5"},"content":{"rendered":"<p>1.\u5b89\u88c5\u57fa\u672c\u7684\u73af\u5883:PHP,Mysql5.0+\u7b49   &nbsp;   2.\u4e0b\u8f7dECShop\u5305,\u89e3\u538b,\u5c06Upload\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u653e\u5230\/etc\/ECShopV2_7\u76ee\u5f55\u4e0b   &nbsp;   \u6ce8\u610f:\u6ce8\u610f\u4fee\u6539ECShop\u7684\u6240\u6709\u7740\u4e3aApache,(apaceh\u4e3a\u62e5\u6709\u8005,\u56e0\u4e3a\u7740\u6709\u6700\u9ad8\u6743\u9650\u53bb\u8bbf\u95ee\u9879\u76ee\u8d44\u6e90),&lt;\/span&gt;   &nbsp;   sudo chown -R apache:apache \/etc\/ECShopV2_7&nbsp;   &nbsp;   \u67e5\u770b\u9879\u76ee\u62e5\u6709\u8005:   &nbsp;   cd &nbsp;\/etc &nbsp;   ll -l ECShopV2_7 &nbsp;<br \/>\n<br \/> <br \/>\n<img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/150602\/1-15060212232XU.png\" style=\"width: 501px;height: 60px\" class=\"aligncenter\">   &nbsp;   \u5f53\u7136\u8fd8\u6709\u53e6\u5916\u4e00\u79cd\u4e0d\u597d\u7684\u529e\u6cd5-\u5c06\/etc\/ECshopV2_7\u76ee\u5f55\u6743\u9650\u6539\u4e3a777,\u8fd9\u79cd\u505a\u6cd5\u4e0d\u5b89\u5168,   &nbsp;   &nbsp;   3.\u914d\u7f6eECShop.conf\u6587\u4ef6,\u653e\u5230\/etc\/httpd\/conf.d\/\u76ee\u5f55\u4e0b   &nbsp;   # Listen for virtual host requests on all IP addresses &nbsp;   &nbsp;   #\u6700\u597d\u4e0d\u8981\u5c11 &nbsp;   Listen *:8085 &nbsp;   &lt;VirtualHost *:8085&gt; &nbsp;   &nbsp;   &lt;span style=&#8221;white-space:pre&#8221;&gt; &nbsp; &nbsp;&lt;\/span&gt;#\u9879\u76ee\u8def\u5f84 &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; DocumentRoot \/etc\/ECShopV2_7 &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; ServerName master.domain.com &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; ErrorLog \/etc\/ECShopV2_7\/log\/ECShop-error.log &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; CustomLog \/etc\/ECShopV2_7\/log\/ECShop-common.log commom &nbsp;   &lt;\/VirtualHost&gt; &nbsp;<br \/>\n<span style=\"color:#ffffff\">www.ldhost.cn<\/span>   # Other directives here &nbsp;   &lt;Directory &#8220;\/etc\/ECShopV2_7&#8221;&gt; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; #Options Indexes FollowSymLinks ExecCGI Includes &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; Order allow,deny &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; Allow from all &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; AllowOverride All &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;# Require all granted &nbsp;   &lt;\/Directory&gt; &nbsp;   &nbsp;   \u91cd\u542f\u670d\u52a1   &nbsp;   sudo service httpd restart &nbsp;   \u6ce8\u610fMySQL\u670d\u52a1\u4e5f\u6ca1\u8981\u5f00\u542f:   &nbsp;   sudo mysqld start &nbsp;   \u56e0\u4e3a\u914d\u7f6e\u6587\u4ef6\u5f00\u542f\u7684\u662f8085\u7aef\u53e3,\u6240\u4ee5\u672c\u673a\u8bbf\u95ee\u5730\u5740:localhost:8085(\u6216\u8005\u901a\u8fc7IP\u8bbf\u95ee)   &nbsp;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/150602\/1-1506021224054X.png\" style=\"width: 700px;height: 362px\" class=\"aligncenter\">   \u6210\u529f\u4e00\u534a.   <\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5\u57fa\u672c\u7684\u73af\u5883:PHP,My&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199410","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199410"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199410\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}