{"id":23708,"date":"2025-08-06T11:24:00","date_gmt":"2025-08-06T03:24:00","guid":{"rendered":"https:\/\/cn.hostease.com\/blog\/?p=23708"},"modified":"2025-07-03T13:33:07","modified_gmt":"2025-07-03T05:33:07","slug":"wordpress-on-overseas-vps-step-by-step-tutorial","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/blog\/wordpress\/wordpress-on-overseas-vps-step-by-step-tutorial\/","title":{"rendered":"\u5c0f\u767d\u4e5f\u80fd\u4e0a\u624b\uff1a\u6d77\u5916VPS\u90e8\u7f72WordPress\u7f51\u7ad9\u5b8c\u6574\u6559\u7a0b\uff08\u542bSSL\u4e0e\u57df\u540d\u7ed1\u5b9a\uff09"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u9009\u62e9\u6d77\u5916VPS\u90e8\u7f72WordPress\uff1f<\/h2>\n\n\n\n<p>\u4f60\u662f\u4e0d\u662f\u4e5f\u9047\u5230\u8fc7\u8fd9\u6837\u7684\u95ee\u9898\uff1a\u7f51\u7ad9\u8bbf\u95ee\u6162\u3001\u540e\u53f0\u5361\u987f\u3001\u53d7\u9650\u4e8e\u56fd\u5185\u5907\u6848\u6216\u670d\u52a1\u5668\u6743\u9650\u65e0\u6cd5\u81ea\u5b9a\u4e49\uff1f\u6211\u4eec\u5728\u5e2e\u52a9Hostease\u7528\u6237\u8fc1\u79fb\u6216\u642d\u5efa\u72ec\u7acb\u7ad9\u65f6\uff0c\u53d1\u73b0\u9009\u62e9<strong><a href=\"https:\/\/cn.hostease.com\/vps.html\" title=\"\">\u6d77\u5916VPS<\/a><\/strong>\u7684\u4e24\u4e2a\u6838\u5fc3\u7406\u7531\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5c31\u8fd1\u8282\u70b9\uff0c\u63d0\u5347\u5168\u7403\u8bbf\u95ee\u901f\u5ea6<\/strong><br>\u4f8b\u5982\u7f8e\u56fd\u3001\u9999\u6e2f\u6216<a href=\"https:\/\/cn.hostease.com\/jpserver.html\" title=\"\">\u65e5\u672c\u6570\u636e\u4e2d\u5fc3<\/a>\uff0c\u53ef\u4ee5\u8ba9\u6d77\u5916\u5ba2\u6237\u8bbf\u95ee\u7f51\u7ad9\u65f6\u51e0\u4e4e\u65e0\u5ef6\u8fdf\uff0c\u6709\u52a9\u4e8e\u63d0\u5347\u8f6c\u5316\u7387\u3002<\/li>\n\n\n\n<li><strong>\u81ea\u4e3b\u53ef\u63a7\uff0c\u914d\u7f6e\u7075\u6d3b<\/strong><br>\u4e0d\u50cf\u865a\u62df\u4e3b\u673a\u90a3\u6837\u53d7\u9650\uff0cVPS\u5141\u8bb8\u4f60\u81ea\u5b9a\u4e49PHP\u3001\u6570\u636e\u5e93\u3001Web\u670d\u52a1\u7b49\uff0c\u6ee1\u8db3WordPress\u5bf9\u73af\u5883\u7684\u6700\u65b0\u8981\u6c42\uff08\u5982PHP8.2+\u3001MySQL8.0+\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u5bf9\u4e8e\u8de8\u5883\u5356\u5bb6\u3001\u4e2a\u4eba\u7ad9\u957f\u3001\u5185\u5bb9\u521b\u4f5c\u8005\u6765\u8bf4\uff0cVPS\u51e0\u4e4e\u5c31\u662f\u4f4e\u6210\u672c\u9ad8\u81ea\u7531\u5ea6\u5efa\u7ad9\u7684\u201c\u9996\u9009\u642d\u6863\u201d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u73af\u5883\u51c6\u5907\uff1a\u4f60\u9700\u8981\u51c6\u5907\u4ec0\u4e48\uff1f<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e00\u53f0Hostease\u6d77\u5916VPS\uff08\u5efa\u8bae\u9009\u62e91\u6838CPU\u30011GB\u5185\u5b58\u53ca\u4ee5\u4e0a\uff0c\u64cd\u4f5c\u7cfb\u7edf\u63a8\u8350Ubuntu 22.04\uff09<\/li>\n\n\n\n<li>\u5df2\u5b9e\u540d\u5e76\u53ef\u7ba1\u7406DNS\u7684\u57df\u540d\u4e00\u679a<\/li>\n\n\n\n<li>\u8fdc\u7a0b\u8fde\u63a5\u5de5\u5177\uff08\u5982PuTTY\u3001Termius\u6216\u672c\u5730Terminal\uff09<\/li>\n\n\n\n<li>\u9884\u755930\u5206\u949f\u52301\u5c0f\u65f6\u7684\u64cd\u4f5c\u65f6\u95f4<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">VPS\u57fa\u7840\u914d\u7f6e\uff1a\u7b2c\u4e00\u6b65\uff0c\u767b\u5f55\u4f60\u7684\u670d\u52a1\u5668<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728Hostease\u5b98\u7f51\u63a7\u5236\u53f0\u8d2d\u4e70\u4f8b\u5982<a href=\"https:\/\/cn.hostease.com\/vps.html\" title=\"\">\u7f8e\u56fdVPS<\/a>\uff0c\u5efa\u8bae\u9009\u62e9\u79bb\u76ee\u6807\u5ba2\u6237\u6700\u8fd1\u7684\u6570\u636e\u4e2d\u5fc3\u3002<\/li>\n\n\n\n<li>\u7cfb\u7edf\u955c\u50cf\u9009\u62e9<strong>Ubuntu 22.04<\/strong>\uff0c\u66f4\u9002\u5408\u65b0\u624b\u5165\u95e8\u3002<\/li>\n\n\n\n<li>\u62ff\u5230IP\u548c\u5bc6\u7801\u540e\uff0c\u7528SSH\u5de5\u5177\u767b\u5f55\u4f60\u7684VPS\uff1a <code>ssh root@\u4f60\u7684VPS_IP<\/code><\/li>\n\n\n\n<li>\u4e3a\u4e86\u5b89\u5168\uff0c\u5efa\u8bae\u7acb\u523b\u521b\u5efa\u65b0\u7528\u6237\u5e76\u542f\u7528\u9632\u706b\u5899\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>adduser hostease\nusermod -aG sudo hostease\nufw allow OpenSSH\nufw enable<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u642d\u5efa\u7f51\u7ad9\u73af\u5883\uff1a\u5b89\u88c5LEMP\u7ec4\u4ef6\uff08Nginx+MySQL+PHP\uff09<\/h2>\n\n\n\n<p><strong>LEMP\uff08Nginx\u7248\u672c\uff09\u66f4\u9002\u5408\u5e76\u53d1\u8bbf\u95ee\u9ad8\u3001\u9759\u6001\u5185\u5bb9\u591a\u7684\u7f51\u7ad9<\/strong>\u3002\u5f53\u7136\uff0c\u5982\u679c\u4f60\u719f\u6089Apache\u4e5f\u53ef\u9009LAMP\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u73af\u5883\u65b9\u6848<\/th><th>Web\u670d\u52a1\u5668<\/th><th>\u6027\u80fd\u7279\u70b9<\/th><th>\u63a8\u8350\u573a\u666f<\/th><\/tr><\/thead><tbody><tr><td>LAMP<\/td><td>Apache<\/td><td>\u517c\u5bb9\u6027\u597d\uff0c\u6613\u4e0a\u624b<\/td><td>\u65b0\u624b\u5efa\u7ad9<\/td><\/tr><tr><td>LEMP<\/td><td>Nginx<\/td><td>\u5e76\u53d1\u9ad8\uff0c\u8282\u7701\u8d44\u6e90<\/td><td>\u7f51\u7ad9\u8bbf\u95ee\u91cf\u5927<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>LEMP\u5feb\u901f\u5b89\u88c5\u547d\u4ee4\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update &amp;&amp; apt install nginx mysql-server php-fpm php-mysql php-xml php-curl php-gd php-mbstring php-zip php-intl -y<\/pre>\n\n\n\n<p><strong>\u6570\u636e\u5e93\u521b\u5efa\u547d\u4ee4\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -uroot<br>CREATE DATABASE wpdb DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;<br>CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'StrongP@ssw0rd';<br>GRANT ALL PRIVILEGES ON wpdb.* TO 'wpuser'@'localhost';<br>FLUSH PRIVILEGES;<br>exit<code><br><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u90e8\u7f72WordPress\u7a0b\u5e8f<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u4e0b\u8f7d\u6700\u65b0\u7248WordPress\u5e76\u89e3\u538b\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\nwget https:\/\/wordpress.org\/latest.tar.gz\ntar -xzf latest.tar.gz\ncp -R wordpress yoursite\nchown -R www-data:www-data \/var\/www\/yoursite<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u914d\u7f6eNginx\u865a\u62df\u4e3b\u673a\uff08\u53ef\u7528nano\/vim\u7f16\u8f91\uff09\uff1a <\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name example.com www.example.com;\n    root \/var\/www\/yoursite;\n    index index.php;\n    location \/ {\n        try_files $uri $uri\/ \/index.php?$args;\n    }\n    location ~ \\.php$ {\n        include snippets\/fastcgi-php.conf;\n        fastcgi_pass unix:\/run\/php\/php8.2-fpm.sock;\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u4fdd\u5b58\u540e\uff0c\u91cd\u8f7dNginx\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nginx -t &amp;&amp; systemctl reload nginx<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u57df\u540d\u89e3\u6790\u4e0e\u7ed1\u5b9a<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u767b\u5f55\u57df\u540d\u6ce8\u518c\u5546\u540e\u53f0\uff0c\u5c06A\u8bb0\u5f55\u6307\u5411\u4f60\u7684VPS\u516c\u7f51IP\uff08\u4e00\u822c\u6dfb\u52a0<code>@<\/code>\u548c<code>www<\/code>\u4e24\u4e2a\u8bb0\u5f55\uff09\u3002<\/li>\n\n\n\n<li>\u7b49\u5f85\u89e3\u6790\u751f\u6548\u540e\uff0c\u76f4\u63a5\u7528\u57df\u540d\u8bbf\u95ee\u5373\u53ef\u8fdb\u5165WordPress\u5b89\u88c5\u754c\u9762\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u542f\u7528\u514d\u8d39SSL\u8bc1\u4e66\uff0c\u63d0\u5347\u5b89\u5168\u6027<\/h2>\n\n\n\n<p>\u63a8\u8350\u4f7f\u7528<strong>Let\u2019s Encrypt\u514d\u8d39SSL\u8bc1\u4e66<\/strong>\uff0cHostease\u7528\u6237\u4eb2\u6d4b\u7a33\u5b9a\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5b89\u88c5Certbot\u5e76\u81ea\u52a8\u914d\u7f6eHTTPS\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>snap install --classic certbot\nln -s \/snap\/bin\/certbot \/usr\/bin\/certbot\ncertbot --nginx -d example.com -d www.example.com<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u51fa\u73b0Congratulations!\u8868\u793aSSL\u5df2\u914d\u7f6e\u6210\u529f\u3002\u6b64\u540e\u8bbf\u95ee\u7f51\u7ad9\u5c06\u81ea\u52a8\u8df3\u8f6c\u5230HTTPS\u5b89\u5168\u94fe\u63a5\u3002<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b0\u624b\u5efa\u8bae\u4e0e\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\uff08FAQ\uff09<\/h2>\n\n\n\n<p><strong>Q\uff1a\u4e3a\u4ec0\u4e48\u7528IP\u80fd\u8bbf\u95ee\uff0c\u7528\u57df\u540d\u5374\u4e0d\u884c\uff1f<\/strong><br>A\uff1a\u5f88\u53ef\u80fd\u662f\u57df\u540dA\u8bb0\u5f55\u8fd8\u672a\u751f\u6548\u6216\u6307\u5411\u9519\u8bef\uff0c\u5efa\u8bae\u7528ping\u548cnslookup\u5de5\u5177\u68c0\u67e5\u3002<\/p>\n\n\n\n<p><strong>Q\uff1aCertbot\u63d0\u793a\u201cToo many certificates\u201d\u600e\u4e48\u529e\uff1f<\/strong><br>A\uff1aLet\u2019s Encrypt\u6bcf\u5468\u5bf9\u540c\u4e00\u57df\u540d\u6700\u591a5\u6b21\u7533\u8bf7\uff0c\u5efa\u8bae\u8010\u5fc3\u7b49\u5f85\u6216\u6539\u7528\u65b0\u5b50\u57df\u540d\u3002<\/p>\n\n\n\n<p><strong>Q\uff1aUbuntu\u548cCentOS\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/strong><br>A\uff1aUbuntu\u793e\u533a\u6587\u6863\u6700\u5168\uff0c\u5bf9\u65b0\u624b\u53cb\u597d\uff0c\u7edd\u5927\u591a\u6570WordPress\u6559\u7a0b\u90fd\u4ee5Ubuntu\u4e3a\u4f8b\uff0c\u5efa\u8bae\u4f18\u5148\u9009\u62e9\u3002<\/p>\n\n\n\n<p><strong>Q\uff1aWordPress\u540e\u53f0\u6253\u5f00\u6162\uff0c\u5982\u4f55\u4f18\u5316\uff1f<\/strong><br>A\uff1a\u53ef\u4ee5\u5b89\u88c5WP Super Cache\u6216LiteSpeed Cache\u7b49\u7f13\u5b58\u63d2\u4ef6\uff0c\u540c\u65f6\u5347\u7ea7VPS\u5185\u5b58\u6548\u679c\u66f4\u4f73\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9e\u7528\u5efa\u8bae\u4e0e\u4e0b\u4e00\u6b65<\/h2>\n\n\n\n<p>\u606d\u559c\u4f60\uff0c\u5df2\u7ecf\u5b8c\u6210\u4e86\u4ece<strong>\u8d2d\u4e70VPS\u3001\u73af\u5883\u642d\u5efa\u3001WordPress\u4e0a\u7ebf\u3001SSL\u52a0\u5bc6<\/strong>\u7684\u5168\u6d41\u7a0b\uff01\u5b9e\u9645\u64cd\u4f5c\u4e2d\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u6b22\u8fce\u968f\u65f6\u5728\u8bc4\u8bba\u533a\u7559\u8a00\uff0cHostease\u5de5\u7a0b\u5e08\u56e2\u961f\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u4f60\u89e3\u7b54\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u8fd8\u60f3\u8fdb\u4e00\u6b65\u63d0\u5347\u7f51\u7ad9\u901f\u5ea6\u548c\u7a33\u5b9a\u6027\uff0c\u53ef\u4ee5\u8003\u8651\u63a5\u5165Hostease CDN\u670d\u52a1\uff0c\u6216\u5347\u7ea7\u81f3\u66f4\u9ad8\u914d\u7f6e\u7684NVMe SSD VPS\u3002\u8ba9\u6211\u4eec\u4e00\u8d77\uff0c\u6253\u9020\u5c5e\u4e8e\u4f60\u7684\u5168\u7403\u9ad8\u6027\u80fdWordPress\u7f51\u7ad9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6559\u7a0b\u4ee5Hostease\u6d77\u5916VPS\u4e3a\u4f8b\uff0c\u624b\u628a\u624b\u8bb2\u89e3WordPress\u5efa\u7ad9\u5168\u8fc7\u7a0b\uff0c\u6db5\u76d6\u73af\u5883\u51c6\u5907\u3001VPS\u914d\u7f6e\u3001\u57df\u540d\u7ed1\u5b9a\u3001SSL\u7533\u8bf7\u7b49\u5173\u952e\u6b65\u9aa4\uff0c\u8ba9\u65b0\u624b\u4e5f\u80fd\u8f7b\u677e\u4e0a\u7ebf\u5b89\u5168\u7a33\u5b9a\u7684\u72ec\u7acb\u7ad9\u70b9\u3002<\/p>\n","protected":false},"author":2,"featured_media":23715,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[430],"tags":[493,162,84,2600,467],"class_list":["post-23708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-hostease","tag-ssl","tag-wordpress","tag-2600","tag-vps"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/cn.hostease.com\/blog\/wp-content\/uploads\/2025\/06\/\u6d77\u5916VPS\u73af\u5883\u4e2d\u7684WordPress\u90e8\u7f72\u793a\u610f\u56fe.webp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/23708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/comments?post=23708"}],"version-history":[{"count":3,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/23708\/revisions"}],"predecessor-version":[{"id":24219,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/23708\/revisions\/24219"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/media\/23715"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/media?parent=23708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/categories?post=23708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/blog\/wp-json\/wp\/v2\/tags?post=23708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}