{"id":148,"date":"2023-05-29T16:35:17","date_gmt":"2023-02-27T23:37:37","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/"},"modified":"2025-08-01T00:36:21","modified_gmt":"2025-07-31T16:36:21","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/","title":{"rendered":"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP"},"content":{"rendered":"<h3>LOMP\u5806\u6808\u7b80\u4ecb<\/h3>\n<p>LOMP\u5806\u6808\u662fLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u7684\u7f29\u5199\u3002OpenLiteSpeed\u662fLiteSpeed Web\u670d\u52a1\u5668\u7684\u5f00\u6e90\u7248\u672c\u3002LiteSpeed\u670d\u52a1\u5668\u4ee5\u5176\u5353\u8d8a\u7684\u6027\u80fd\u800c\u95fb\u540d\uff0c\u5c24\u5176\u662f\u5728\u4e0e\u517c\u5bb9\u5176LiteSpeed\u670d\u52a1\u5668\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3\uff08LSAPI\uff09\u7684\u8bed\u8a00\uff08\u5982PHP\uff09\u96c6\u6210\u65f6\u3002LiteSpeed PHP\uff08LSPHP\uff09\u89e3\u91ca\u5668\u901a\u8fc7\u4e13\u6709\u7684LS-API\u63d0\u4f9b\u66f4\u5feb\u7684\u52a8\u6001PHP\u9875\u9762\u670d\u52a1\u3002\u8be5API\u4e0eHTTP\u670d\u52a1\u5668\u7d27\u5bc6\u96c6\u6210\uff0c\u4ece\u800c\u663e\u8457\u7f29\u77ed\u4e86\u670d\u52a1\u5668\u54cd\u5e94\u8bf7\u6c42\u7684\u65f6\u95f4\u3002OpenLiteSpeed\u6b63\u8fc5\u901f\u6210\u4e3aWordPress\u3001Joomla\u4ee5\u53ca\u5176\u4ed6\u57fa\u4e8ePHP\u7684\u52a8\u6001\u5185\u5bb9\u5e94\u7528\u7684\u9996\u9009\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u5c06\u5728Ubuntu 22.04\u4e0a\u642d\u5efa\u4e00\u4e2a\u8fd0\u884cLOMP\u670d\u52a1\u5668\u7684\u73af\u5883\u3002\u5f53\u524d\u7248\u672c\u5305\u62ecPHP 8.1\u3001MariaDB 10.7\u548cOpenLiteSpeed 1.7\u3002<\/p>\n<h2>\u5148\u51b3\u6761\u4ef6<\/h2>\n<p>\u5728\u5f00\u59cb\u672c\u6307\u5357\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u51c6\u5907\u4ee5\u4e0b\u5404\u9879\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>\u4e00\u53f0\u5b89\u88c5\u4e86Ubuntu 22.04\u670d\u52a1\u5668\uff0c\u5e76\u914d\u7f6e\u4e86\u5177\u6709sudo\u6743\u9650\u7684\u975eroot\u7528\u6237\u3001\u9632\u706b\u5899\uff0c\u4ee5\u53ca\u81f3\u5c111GB\u7684RAM\u3002\u60a8\u53ef\u4ee5\u6309\u7167<a href=\"#\">Ubuntu 22.04\u521d\u59cb\u670d\u52a1\u5668\u8bbe\u7f6e\u6307\u5357<\/a>\u8fdb\u884c\u914d\u7f6e\u3002<\/li>\n<li>\u4e00\u4e2a\u5b8c\u5168\u9650\u5b9a\u57df\u540d\uff08SSL\u914d\u7f6e\u5fc5\u9700\uff0c\u5e76\u5f3a\u70c8\u63a8\u8350\u7528\u4e8e\u516c\u5171\u7f51\u7ad9\uff09\u3002\u60a8\u53ef\u4ee5\u5728Namecheap\u3001Freenom\u6216\u60a8\u9009\u62e9\u7684\u4efb\u4f55\u57df\u540d\u6ce8\u518c\u5546\u5904\u83b7\u53d6\u57df\u540d\u3002\u8bf7\u6309\u7167<a href=\"#\">DNS\u5feb\u901f\u5165\u95e8<\/a>\u5c06\u57df\u540d\u6307\u5411\u60a8\u7684\u670d\u52a1\u5668\u3002<\/li>\n<li>\u60a8\u7684\u57df\u540d\u7684SSL\u8bc1\u4e66\u548c\u5bc6\u94a5\u3002\u8bf7\u6309\u7167<a href=\"#\">\u5982\u4f55\u5728Ubuntu 22.04\u4e0a\u4f7f\u7528Certbot\u72ec\u7acb\u6a21\u5f0f\u83b7\u53d6Let\u2019s Encrypt SSL\u8bc1\u4e66<\/a>\u7684\u6559\u7a0b\uff0c\u4e3a\u60a8\u7684\u57df\u540d\u83b7\u53d6\u8bc1\u4e66-\u5bc6\u94a5\u5bf9\u3002\u5728\u7b2c2\u6b65\u4e2d\uff0c\u8bf7\u540c\u65f6\u6253\u5f0080\u7aef\u53e3\u548c443\u7aef\u53e3\u3002<\/li>\n<\/ul>\n<h2>\u7b2c\u4e00\u6b65 &#8211; \u5b89\u88c5OpenLiteSpeed<\/h2>\n<p>\u5728\u6b64\u6b65\u9aa4\u4e2d\uff0c\u60a8\u5c06\u5728\u5c06\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u5b58\u50a8\u5e93\u5bfc\u5165\u670d\u52a1\u5668\u540e\u5b89\u88c5OpenLiteSpeed Web\u670d\u52a1\u5668\u3002\u5982\u679c\u8fd9\u662f\u60a8\u9996\u6b21\u5728SSH\u4f1a\u8bdd\u4e2d\u4f7f\u7528sudo\u547d\u4ee4\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u8f93\u5165\u975eroot\u7528\u6237\u7684\u5bc6\u7801\u3002<\/p>\n<p>\u9996\u5148\uff0c\u66f4\u65b0\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7f13\u5b58\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7136\u540e\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5347\u7ea7\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> upgrade <span class=\"token parameter variable\">-y<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">\u6ce8\u610f\uff1a\u5982\u679c\u63d0\u793a\u66f4\u65b0\u5185\u6838\uff0c\u8bf7\u8f93\u5165\u201cy\u201d\u7ee7\u7eed\u3002\u5982\u679c\u63d0\u793a\u91cd\u65b0\u542f\u52a8\uff0c\u8bf7\u8fd0\u884c\u547d\u4ee4\u201csudo reboot\u201d\u6765\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u3002<\/p>\n<\/div>\n<p>\u4e0eApache\u548cNginx\u4e0d\u540c\uff0cOpenLiteSpeed\u5c06\u5176\u4ee3\u7801\u6258\u7ba1\u5728\u81ea\u5df1\u7684\u4ee3\u7801\u5e93\u4e2d\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06\u8be5\u4ee3\u7801\u5e93\u6dfb\u52a0\u5230apt\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u7684\u6e90\u5217\u8868\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">wget<\/span> <span class=\"token parameter variable\">-O<\/span> &#8211; https:\/\/repo.litespeed.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">bash<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p><code>wget<\/code>\u547d\u4ee4\u5728OpenLiteSpeed\u670d\u52a1\u5668\u4e0a\u83b7\u53d6\u8fdc\u7a0b\u5b58\u50a8\u5e93\u7684shell\u811a\u672c\uff0c\u5e76\u4e14\u4f7f\u7528<code>-O -<\/code>\u6807\u5fd7\u5c06\u6587\u4ef6\u7684\u5185\u5bb9\u6253\u5370\u5230\u7ec8\u7aef\u3002<code>|<\/code>\u7ba1\u9053\u5c06\u5185\u5bb9\u4f20\u9012\u7ed9\u7531<code>sudo bash<\/code>\u547d\u4ee4\u542f\u52a8\u7684\u65b0\u7684bash shell\u3002\u8be5bash\u7ec8\u7aef\u6267\u884c\u4ece\u5b58\u50a8\u5e93\u83b7\u53d6\u7684<code>.sh<\/code>\u6587\u4ef6\uff08bash\u811a\u672c\uff09\u5185\u5bb9\u4e2d\u63d0\u5230\u7684\u547d\u4ee4\uff0c\u5e76\u5c06\u5b58\u50a8\u5e93\u5b89\u88c5\u5230\u672c\u5730APT\u5b58\u50a8\u5e93\u5217\u8868\u4e2d\u3002<\/p>\n<p>\u60a8\u4f1a\u770b\u5230\u7c7b\u4f3c\u8fd9\u6837\u7684\u8f93\u51fa\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/div>\n<p>\u8fd9\u662f\u6587\u7ae0\u300a\u5982\u4f55\u5728Ubuntu 22.04\u4e0a\u5b89\u88c5Linux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP\uff08LOMP Stack\uff09\uff1f\u300b\u7684\u7b2c2\u90e8\u5206\uff08\u51715\u90e8\u5206\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>Redirecting output to \u2018wget-log\u2019. --2022-09-08 08:27:42-- http:\/\/rpms.litespeedtech.com\/debian\/lst_debian_repo.gpg\r\nResolving rpms.litespeedtech.com (rpms.litespeedtech.com)... 52.55.120.73\r\nConnecting to rpms.litespeedtech.com (rpms.litespeedtech.com)|52.55.120.73|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 1198 (1.2K) [application\/octet-stream]\r\nSaving to: \u2018\/etc\/apt\/trusted.gpg.d\/lst_debian_repo.gpg\u2019\r\n\r\n\/etc\/apt\/trusted.gpg.d\/l 100%[==================================&gt;] 1.17K --.-KB\/s in 0s\r\n\r\n2022-09-08 08:27:42 (139 MB\/s) - \u2018\/etc\/apt\/trusted.gpg.d\/lst_debian_repo.gpg\u2019 saved [1198\/1198]\r\n\r\n--2022-09-08 08:27:42-- http:\/\/rpms.litespeedtech.com\/debian\/lst_repo.gpg\r\nResolving rpms.litespeedtech.com (rpms.litespeedtech.com)... 52.55.120.73\r\nConnecting to rpms.litespeedtech.com (rpms.litespeedtech.com)|52.55.120.73|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 2336 (2.3K) [application\/octet-stream]\r\nSaving to: \u2018\/etc\/apt\/trusted.gpg.d\/lst_repo.gpg\u2019\r\n\r\n\/etc\/apt\/trusted.gpg.d\/l 100%[==================================&gt;] 2.28K --.-KB\/s in 0s\r\n\r\n2022-09-08 08:27:42 (226 MB\/s) - \u2018\/etc\/apt\/trusted.gpg.d\/lst_repo.gpg\u2019 saved [2336\/2336]\r\nLiteSpeed repository has been setup!<\/code><\/pre>\n<p>\u66f4\u65b0\u5b58\u50a8\u5e93\u5217\u8868\uff0c\u4ee5\u786e\u4fddAPT\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u626b\u63cf\u65b0\u6dfb\u52a0\u7684\u5b58\u50a8\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u5b89\u88c5OpenLiteSpeed\u8f6f\u4ef6\u5305\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> openlitespeed<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5982\u679c\u63d0\u793a\uff0c\u8bf7\u8f93\u5165\u60a8\u7684\u5bc6\u7801\uff0c\u7136\u540e\u7528<code>Y<\/code>\u786e\u8ba4\u5b89\u88c5\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8bf7\u4f7f\u7528<code>service<\/code>\u547d\u4ee4\u68c0\u67e5OpenLiteSpeed\u7684\u72b6\u6001\uff0c\u786e\u4fdd\u5b83\u5df2\u6b63\u786e\u5b89\u88c5\u5e76\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl status lsws<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p><code>systemctl status<\/code>\u547d\u4ee4\u53ef\u83b7\u53d6\u7531\u5173\u952e\u8bcd\u8bc6\u522b\u7684\u670d\u52a1\u7684\u72b6\u6001\u3002OpenLiteSpeed Web\u670d\u52a1\u5668\u670d\u52a1\u7684\u5173\u952e\u8bcd\u662f<code>lsws<\/code>\u3002<code>systemctl<\/code>\u547d\u4ee4\u53ef\u4ee5\u542f\u7528\u6216\u7981\u7528\u670d\u52a1\u7684\u81ea\u52a8\u542f\u52a8\uff0c\u5e76\u624b\u52a8\u542f\u52a8\u6216\u505c\u6b62\u670d\u52a1\u3002<\/p>\n<p>\u60a8\u5c06\u4f1a\u6536\u5230\u4ee5\u4e0b\u7684\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/p>\n<pre class=\"post-pre\"><code>\u25cf lshttpd.service - OpenLiteSpeed HTTP Server\r\nLoaded: loaded (\/etc\/systemd\/system\/lshttpd.service; enabled; vendor preset: enabled)\r\nActive: active (running) since Wed 2022-03-16 08:59:09 UTC; 2min 26s ago\r\nProcess: 32997 ExecStart=\/usr\/local\/lsws\/bin\/lswsctrl start (code=exited, status=0\/SUCCESS)\r\nMain PID: 33035 (litespeed)\r\nCGroup: \/system.slice\/lshttpd.service\r\n\u251c\u250033035 openlitespeed (lshttpd - main)\r\n\u251c\u250033044 openlitespeed (lscgid)\r\n\u2514\u250033073 openlitespeed (lshttpd - #01)<\/code><\/pre>\n<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u60a8\u73b0\u5728\u5df2\u7ecf\u8fd0\u884c\u7740\u4e00\u4e2a\u9ed8\u8ba4\u914d\u7f6e\u7684OpenLiteSpeed Web\u670d\u52a1\u5668\u3002\u7531\u4e8e\u9632\u706b\u5899\u963b\u6b62\u4e86\u5bf9\u8fd9\u4e9b\u7aef\u53e3\u7684\u6d41\u91cf\uff0c\u60a8\u53ef\u80fd\u65e0\u6cd5\u8bbf\u95ee\u57fa\u4e8eGUI\u7684\u7ba1\u7406\u9762\u677f\u548c\u793a\u4f8b\u7f51\u7ad9\u3002<\/p>\n<p>\u4f7f\u7528OpenLiteSpeed\u7f51\u9875\u670d\u52a1\u5668\u540e\uff0c\u60a8\u53ef\u4ee5\u66f4\u65b0\u9632\u706b\u5899\u5e76\u6253\u5f00\u6240\u9700\u7684\u7aef\u53e3\uff0c\u4ee5\u5141\u8bb8\u7528\u6237\u8bbf\u95ee\u7f51\u7ad9\u3002<\/p>\n<h2>\u7b2c\u4e8c\u6b65 &#8211; \u66f4\u65b0\u9632\u706b\u5899<\/h2>\n<p>\u5728\u8fd9\u4e2a\u6b65\u9aa4\u4e2d\uff0c\u60a8\u5c06\u4e3a\u60a8\u7684\u670d\u52a1\u5668\u914d\u7f6e\u9632\u706b\u5899\u3002\u60a8\u5c06\u5141\u8bb8TCP\u6d41\u91cf\u901a\u8fc7\u9009\u5b9a\u7684\u7aef\u53e3\u8fdb\u884cGUI\u7ba1\u7406\u5458\u9762\u677f\u548c\u793a\u4f8b\u7f51\u7ad9\u7684\u8bbf\u95ee\uff0c\u540c\u65f6\u8fd8\u9700\u8981\u5141\u8bb880\u548c443\u7aef\u53e3\u7528\u4e8eHTTP\u548cHTTPS\u7f51\u7ad9\u3002<\/p>\n<p>OpenLiteSpeed\u670d\u52a1\u5668\u9644\u5e26\u4e00\u4e2a\u57fa\u4e8e\u56fe\u5f62\u754c\u9762\u7684\u7ba1\u7406\u9762\u677f\u548c\u4e00\u4e2a\u793a\u4f8b\u7f51\u7ad9\u3002\u7ba1\u7406\u5458\u9762\u677f\u662f\u4e00\u4e2a\u6613\u4e8e\u4f7f\u7528\u7684\u754c\u9762\uff0c\u7528\u4e8e\u914d\u7f6e\u76d1\u542c\u5668\u3001\u865a\u62df\u4e3b\u673a\u3001SSL\u548c\u76d1\u63a7\u65e5\u5fd7\u3002\u793a\u4f8b\u7f51\u7ad9\u5305\u542b\u4e86\u4e00\u4e2a\u793a\u4f8bCGI\u811a\u672c\u3001PHP\u811a\u672c\u3001\u9519\u8bef\u9875\u9762\u548c\u4e00\u4e2a\u5bc6\u7801\u4fdd\u62a4\u9875\u9762\u3002\u8be5\u7f51\u7ad9\u53ef\u4ee5\u5c55\u793aWeb\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002<\/p>\n<p>\u5728\u9ed8\u8ba4\u914d\u7f6e\u4e2d\uff0c\u57fa\u4e8e\u56fe\u5f62\u7528\u6237\u754c\u9762\u7684\u7ba1\u7406\u9762\u677f\u76d1\u542c7080\u7aef\u53e3\uff0c\u800c\u793a\u4f8b\u7f51\u7ad9\u76d1\u542c8088\u7aef\u53e3\u3002\u60a8\u9700\u8981\u901a\u8fc7UFW\u9632\u706b\u5899\u5141\u8bb8TCP\u6d41\u91cf\u8bbf\u95ee\u8fd9\u4e9b\u7f51\u7ad9\u7684\u7aef\u53e3\u3002<\/p>\n<p>\u4e3a\u4e86\u63d0\u4f9b\u8bbf\u95ee\u6743\u9650\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">7080,80<\/span>,443,8088\/tcp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e4b\u540e\uff0c\u68c0\u67e5\u9632\u706b\u5899\u89c4\u5219\u7684\u72b6\u6001\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw status<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u60a8\u7684\u8f93\u51fa\u5c06\u4f1a\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/p>\n<pre class=\"post-pre\"><code>Status: active\r\n\r\nTo                         Action      From\r\n--                         ------      ----\r\nOpenSSH                    ALLOW       Anywhere\r\n80,443,7080,8088\/tcp       ALLOW       Anywhere\r\nOpenSSH (v6)               ALLOW       Anywhere (v6)\r\n80,443,7080,8088\/tcp (v6)  ALLOW       Anywhere (v6)<\/code><\/pre>\n<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc78088\u7aef\u53e3\u67e5\u770b\u793a\u4f8b\u7f51\u7ad9\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_server_ip<\/mark>:8088\r\n<\/code><\/pre>\n<p>\u5b83\u5e94\u8be5\u770b\u8d77\u6765\u50cf\u4e0b\u65b9\u7684\u5c4f\u5e55\u622a\u56fe\u4e00\u6837\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/44-0.png\" alt=\"\u901a\u8fc78088\u7aef\u53e3\u67e5\u770b\u793a\u4f8b\u7f51\u7ad9\u9996\u9875\u7684\u622a\u56fe\" \/><\/div>\n<p>\u60a8\u53ef\u4ee5\u6d4f\u89c8\u793a\u4f8b\u7f51\u7ad9\uff0c\u63a2\u7d22\u7f51\u7edc\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u529f\u80fd\u3002<\/p>\n<p>\u8981\u67e5\u770b\u57fa\u4e8e\u56fe\u5f62\u7528\u6237\u754c\u9762\u7684\u7ba1\u7406\u5458\u9762\u677f\uff0c\u8bf7\u8bbf\u95ee\u7aef\u53e37080\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_server_ip<\/mark>:7080\r\n<\/code><\/pre>\n<p>\u5728\u672c\u6559\u7a0b\u7684\u540e\u7eed\u90e8\u5206\uff0c\u60a8\u5c06\u4f7f\u7528OpenLiteSpeed\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\u7ba1\u7406\u5458\u9762\u677f\u6765\u914d\u7f6e\u60a8\u7684\u7f51\u9875\u670d\u52a1\u5668\u3002<\/p>\n<p>\u60a8\u73b0\u5728\u5df2\u7ecf\u5728\u60a8\u7684Ubuntu\u5b9e\u4f8b\u4e0a\u8bbe\u7f6e\u597d\u4e86OpenLiteSpeed\u670d\u52a1\u5668\uff0c\u8fd9\u5c06\u5141\u8bb8\u60a8\u57fa\u4e8e\u4e0d\u540c\u7684\u540e\u7aef\u8bed\u8a00\u548c\u6846\u67b6\u63d0\u4f9b\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u5c06\u8bbe\u7f6eLOMP\u5806\u6808\u7684\u5176\u4ed6\u670d\u52a1\u3002<\/p>\n<h2>\u7b2c\u4e09\u6b65 &#8211; \u5b89\u88c5MariaDB<\/h2>\n<h2>\u5728Ubuntu 22.04\u4e0a\u5b89\u88c5MariaDB\u6570\u636e\u5e93\u670d\u52a1\u5668<\/h2>\n<p>\u5728\u6210\u529f\u90e8\u7f72OpenLiteSpeed\u670d\u52a1\u5668\u4e4b\u540e\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u914d\u7f6eMariaDB\u6570\u636e\u5e93\u670d\u52a1\u5668\u3002\u6570\u636e\u5e93\u670d\u52a1\u5668\u662f\u7f51\u7ad9\u7684\u6838\u5fc3\u7ec4\u6210\u90e8\u5206\uff0c\u5b83\u8d1f\u8d23\u6570\u636e\u7684\u5b58\u50a8\u3001\u68c0\u7d22\u548c\u7ba1\u7406\u3002MariaDB\u4f5c\u4e3a\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u6570\u636e\u5e93\u5f15\u64ce\uff0c\u56e0\u5176\u540c\u65f6\u652f\u6301SQL\u548cNoSQL\u529f\u80fd\uff0c\u5e76\u80fd\u4e0eMyISAM\u3001InnoDB\u7b49\u591a\u79cd\u6570\u636e\u5e93\u5f15\u64ce\u65e0\u7f1d\u96c6\u6210\u800c\u5e7f\u53d7\u6b22\u8fce\u3002<\/p>\n<h3>\u5b89\u88c5MariaDB\u670d\u52a1\u5668<\/h3>\n<p>\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5728\u60a8\u7684Ubuntu 22.04\u7cfb\u7edf\u4e0a\u5b89\u88c5MariaDB\u670d\u52a1\u5668\uff1a<\/p>\n<pre class=\"post-pre\"><code>sudo apt install mariadb-server<\/code><\/pre>\n<p>\u5f53\u7cfb\u7edf\u63d0\u793a\u786e\u8ba4\u5b89\u88c5\u65f6\uff0c\u8bf7\u8f93\u5165 <code>Y<\/code> \u5e76\u6309\u56de\u8f66\u952e\u7ee7\u7eed\u3002<\/p>\n<h3>\u914d\u7f6eMariaDB\u5b89\u5168\u8bbe\u7f6e<\/h3>\n<p>MariaDB\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4e3a\u4e86\u589e\u5f3a\u6570\u636e\u5e93\u7684\u5b89\u5168\u6027\uff0c\u60a8\u9700\u8981\u8fd0\u884c\u521d\u59cb\u5b89\u5168\u914d\u7f6e\u811a\u672c\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre class=\"post-pre\"><code>sudo mysql_secure_installation<\/code><\/pre>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cMariaDB\u7684root\u7528\u6237\u6ca1\u6709\u8bbe\u7f6e\u5bc6\u7801\u3002\u56e0\u6b64\uff0c\u5f53\u811a\u672c\u63d0\u793a\u8f93\u5165root\u7528\u6237\u5f53\u524d\u5bc6\u7801\u65f6\uff0c\u76f4\u63a5\u6309\u56de\u8f66\u952e\u5373\u53ef\u3002<\/p>\n<p>\u5b8c\u6210\u521d\u59cb\u8bbe\u7f6e\u540e\uff0c\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u8f93\u51fa\uff1a<\/p>\n<pre class=\"post-pre\"><code>\r\nNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!\r\nIn order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here.\r\n\r\nEnter current password for root (enter for none): \r\nOK, successfully used password, moving on...\r\n<\/code><\/pre>\n<h4>\u542f\u7528Unix\u5957\u63a5\u5b57\u8ba4\u8bc1<\/h4>\n<p>\u63a5\u4e0b\u6765\uff0c\u7cfb\u7edf\u4f1a\u8be2\u95ee\u60a8\u662f\u5426\u542f\u7528Unix\u5957\u63a5\u5b57\u8ba4\u8bc1\u3002\u5f53\u63d0\u793a\u201cSwitch to unix_socket authentication [Y\/n]\u201d\u65f6\uff0c\u8bf7\u8f93\u5165 <code>Y<\/code> \u5e76\u6309\u56de\u8f66\u952e\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nSetting the root password or using the unix_socket ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have your root account protected, so you can safely answer 'n'.\r\n\r\nSwitch to unix_socket authentication [Y\/n] <mark>y<\/mark>\r\nEnabled successfully!\r\nReloading privilege tables..\r\n ... Success!\r\n<\/code><\/pre>\n<h4>\u8bbe\u7f6eRoot\u7528\u6237\u5bc6\u7801<\/h4>\n<p>\u968f\u540e\uff0c\u811a\u672c\u4f1a\u8be2\u95ee\u60a8\u662f\u5426\u8981\u8bbe\u7f6eroot\u7528\u6237\u5bc6\u7801\u3002\u5f53\u63d0\u793a\u201cChange the root password? [Y\/n]\u201d\u65f6\uff0c\u8bf7\u8f93\u5165 <code>Y<\/code>\uff0c\u7136\u540e\u8f93\u5165\u60a8\u5e0c\u671b\u8bbe\u7f6e\u7684\u65b0\u5bc6\u7801\u4e24\u6b21\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nYou already have your root account protected, so you can safely answer 'n'.\r\n\r\nChange the root password? [Y\/n] <mark>y<\/mark>\r\nNew password: \r\nRe-enter new password: \r\nPassword updated successfully!\r\nReloading privilege tables..\r\n ... Success!\r\n<\/code><\/pre>\n<h4>\u5220\u9664\u533f\u540d\u7528\u6237<\/h4>\n<p>\u4e3a\u4e86\u63d0\u9ad8\u5b89\u5168\u6027\uff0c\u5efa\u8bae\u5220\u9664MariaDB\u7684\u533f\u540d\u7528\u6237\u3002\u5f53\u63d0\u793a\u201cRemove anonymous users? [Y\/n]\u201d\u65f6\uff0c\u8bf7\u8f93\u5165 <code>Y<\/code>\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nBy default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.\r\n\r\nRemove anonymous users? [Y\/n] <mark>y<\/mark>\r\n ... Success!\r\n<\/code><\/pre>\n<h4>\u7981\u6b62Root\u7528\u6237\u8fdc\u7a0b\u767b\u5f55<\/h4>\n<p>\u9664\u975e\u60a8\u6709\u7279\u6b8a\u9700\u6c42\u9700\u8981\u4ece\u5176\u4ed6\u670d\u52a1\u5668\u6216\u672c\u5730\u673a\u5668\u4ee5root\u7528\u6237\u8eab\u4efd\u8fdc\u7a0b\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\u5426\u5219\u5f3a\u70c8\u5efa\u8bae\u7981\u6b62root\u7528\u6237\u8fdc\u7a0b\u767b\u5f55\u3002\u5f53\u63d0\u793a\u201cDisallow root login remotely? [Y\/n]\u201d\u65f6\uff0c\u8bf7\u8f93\u5165 <code>Y<\/code>\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nNormally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network.\r\n\r\nDisallow root login remotely? [Y\/n] <mark>y<\/mark>\r\n ... Success!\r\n<\/code><\/pre>\n<h4>\u5220\u9664\u6d4b\u8bd5\u6570\u636e\u5e93<\/h4>\n<p>MariaDB\u9ed8\u8ba4\u4f1a\u5b89\u88c5\u4e00\u4e2a\u540d\u4e3a&#8217;test&#8217;\u7684\u6570\u636e\u5e93\uff0c\u8be5\u6570\u636e\u5e93\u4ec5\u7528\u4e8e\u6d4b\u8bd5\u76ee\u7684\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5efa\u8bae\u5c06\u5176\u5220\u9664\u3002\u5f53\u63d0\u793a\u201cRemove test database and access to it? [Y\/n]\u201d\u65f6\uff0c\u8bf7\u8f93\u5165 <code>Y<\/code>\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nBy default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment:\r\n\r\nRemove test database and access to it? [Y\/n] <mark>y<\/mark>\r\n - Dropping test database...\r\n ... Success!\r\n - Removing privileges on test database...\r\n ... Success!\r\n<\/code><\/pre>\n<h4>\u91cd\u65b0\u52a0\u8f7d\u6743\u9650\u8868<\/h4>\n<p>\u6700\u540e\u4e00\u6b65\u662f\u91cd\u65b0\u52a0\u8f7d\u6743\u9650\u8868\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u5b89\u5168\u8bbe\u7f6e\u7acb\u5373\u751f\u6548\u3002\u5f53\u63d0\u793a\u201cReload privilege tables now? [Y\/n]\u201d\u65f6\uff0c\u8bf7\u8f93\u5165 <code>Y<\/code>\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nReloading the privilege tables will ensure that all changes made so far will take effect immediately.\r\n\r\nReload privilege tables now? [Y\/n] <mark>y<\/mark>\r\n ... Success!\r\n\r\nCleaning up...\r\n\r\nAll done! If you've completed all of the above steps, your MariaDB installation should now be secure.\r\n\r\nThanks for using MariaDB!\r\n<\/code><\/pre>\n<p>\u81f3\u6b64\uff0c\u60a8\u5df2\u5728Ubuntu 22.04\u5b9e\u4f8b\u4e0a\u6210\u529f\u5b89\u88c5\u3001\u914d\u7f6e\u5e76\u4fdd\u62a4\u4e86MariaDB\u6570\u636e\u5e93\u670d\u52a1\u5668\u3002MariaDB\u9ed8\u8ba4\u76d1\u542c3306\u7aef\u53e3\u4e0a\u7684MySQL\u8fde\u63a5\u3002\u7531\u4e8e\u6570\u636e\u5e93\u901a\u5e38\u4ec5\u5728\u5185\u90e8\uff08\u5373\u540c\u4e00\u670d\u52a1\u5668\u4e0a\uff09\u8bbf\u95ee\uff0c\u56e0\u6b64\u60a8\u65e0\u9700\u5728\u9632\u706b\u5899\u4e2d\u5f00\u653e\u6b64\u7aef\u53e3\u4ee5\u5141\u8bb8\u5916\u90e8\u6d41\u91cf\u3002<\/p>\n<h2>\u6b65\u9aa44 \u2014 \u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684PHP<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4e3aOpenLiteSpeed\u5b89\u88c5\u6240\u9700\u7684PHP\u7248\u672c\u3002<\/p>\n<h2>\u7b2c\u56db\u90e8\u5206\uff1a\u5b89\u88c5\u548c\u914d\u7f6ePHP<\/h2>\n<p>OpenLiteSpeed\u7f51\u9875\u670d\u52a1\u5668\u5185\u7f6e\u4e86\u4e00\u4e2aPHP\u7248\u672c\uff0c\u8be5\u7248\u672c\u53ef\u80fd\u4e0d\u662f\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u9884\u5b89\u88c5\u7684PHP\u7248\u672c\uff0c\u6216\u8005\u5b89\u88c5\u7279\u5b9a\u7684PHP\u5b9e\u4f8b\u3002\u5728\u672c\u8282\u4e2d\uff0c\u60a8\u5c06\u68c0\u67e5\u5f53\u524d\u7684PHP\u5b89\u88c5\u7248\u672c\uff0c\u5e76\u5728\u5fc5\u8981\u65f6\u8fdb\u884c\u66f4\u65b0\uff0c\u540c\u65f6\u5b89\u88c5\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n<h3>\u68c0\u67e5\u9884\u88c5PHP\u7248\u672c<\/h3>\n<p>\u8981\u67e5\u770bOpenLiteSpeed\u670d\u52a1\u5668\u9884\u88c5\u7684PHP\u7248\u672c\uff0c\u8bf7\u70b9\u51fb\u793a\u4f8b\u7f51\u7ad9\u7684\u201c\u6d4b\u8bd5PHP\u201d\u6309\u94ae\uff0c\u6216\u76f4\u63a5\u8bbf\u95ee\u4ee5\u4e0bURL\uff1a<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>\u60a8\u7684\u670d\u52a1\u5668IP<\/mark>:8088\/phpinfo.php\r\n<\/code><\/pre>\n<p>PHP\u7248\u672c\u4fe1\u606f\u5c06\u5728\u6253\u5f00\u7684\u9875\u9762\u4e2d\u663e\u793a\u3002<\/p>\n<h3>\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684PHP<\/h3>\n<p>\u8981\u5728OpenLiteSpeed Web\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684PHP\uff0c\u8bf7\u67e5\u9605OpenLiteSpeed\u5b98\u65b9\u7f51\u7ad9\u5165\u95e8\u9875\u9762\u4e0a\u7684\u53ef\u7528\u7248\u672c\u53ca\u5176\u517c\u5bb9\u6027\u5217\u8868\u3002\u5728\u201c\u5b89\u88c5\u201d\u6807\u9898\u4e0b\u7684\u201cLiteSpeed\u4ed3\u5e93\u201d\u90e8\u5206\uff0c\u53ef\u4ee5\u627e\u5230\u53ef\u7528\u7248\u672c\u7684\u5217\u8868\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/80-0.png\" alt=\"\u663e\u793aLiteSpeed\u6587\u6863\u4e2dPHP\u7248\u672c\u7684\u622a\u56fe\" \/><\/div>\n<p>\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u9002\u7528\u4e8eUbuntu\u7684LSPHP\uff08LiteSpeed PHP\uff09\u8f6f\u4ef6\u5305\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><code>sudo apt-cache search lsphp<\/code><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ece\u8f6f\u4ef6\u5305\u5217\u8868\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u5305\u540d\u79f0\u7684\u540e\u7f00\u6765\u8bc6\u522bPHP\u7248\u672c\u3002\u60a8\u5c06\u770b\u5230\u4e00\u4e2a\u5982\u4e0b\u6240\u793a\u7684\u8f6f\u4ef6\u5305\u5217\u8868\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/p>\n<pre class=\"post-pre\"><code>\r\n... lsphp<mark>81<\/mark> - server-side, HTML-embedded scripting language (LSAPI binary) ...\r\n<\/code><\/pre>\n<\/div>\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c<code>lsphp81<\/code>\u8868\u793aPHP v8.1\uff0c\u800c<code>lsphp74<\/code>\u5219\u8868\u793aPHP v7.4\u3002<\/p>\n<p>\u8981\u5b89\u88c5\u7279\u5b9a\u7684<code>lsphp<\/code>\u8f6f\u4ef6\u5305\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff08\u5c06<code>81<\/code>\u66ff\u6362\u4e3a\u60a8\u504f\u597d\u7248\u672c\u7684\u540e\u7f00\uff09\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><code>sudo apt install lsphp<mark>81<\/mark> lsphp<mark>81<\/mark>-{common,mysql}<\/code><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8f93\u5165 <code>Y<\/code> \u786e\u8ba4\u5b89\u88c5\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u60a8\u76ee\u524d\u53ea\u5b89\u88c5\u4e86<code>lsphp<\/code>\u8f6f\u4ef6\u5305\uff0c\u4f46\u5c1a\u672a\u914d\u7f6eOpenLiteSpeed\u4ee5\u4f7f\u7528\u6b64\u7248\u672c\u3002\u793a\u4f8b\u7f51\u7ad9\u5c06\u7ee7\u7eed\u663e\u793a\u9ed8\u8ba4\u7684PHP\u7248\u672c\uff0c\u76f4\u5230\u60a8\u8fdb\u884c\u914d\u7f6e\u3002\u5728\u4e0b\u4e00\u6b65\u4e2d\uff0c\u60a8\u5c06\u914d\u7f6eOpenLiteSpeed\u6765\u4f7f\u7528\u65b0\u5b89\u88c5\u7684PHP\u7248\u672c\u3002<\/p>\n<h2>\u7b2c\u4e94\u90e8\u5206\uff1a\u914d\u7f6eOpenLiteSpeed<\/h2>\n<p>\u5728\u672c\u8282\u4e2d\uff0c\u60a8\u5c06\u914d\u7f6eOpenLiteSpeed\u7f51\u9875\u670d\u52a1\u5668\u57fa\u4e8eGUI\u7684\u7ba1\u7406\u9762\u677f\u51ed\u636e\uff0c\u5e76\u8bbe\u7f6e\u7f51\u9875\u670d\u52a1\u5668\u4ee5\u4f7f\u7528\u60a8\u9009\u62e9\u7684PHP\u7248\u672c\u3002<\/p>\n<h3>\u8bbf\u95eeOpenLiteSpeed\u7ba1\u7406\u9762\u677f<\/h3>\n<p>\u8981\u914d\u7f6eOpenLiteSpeed Web\u670d\u52a1\u5668\uff0c\u8bf7\u901a\u8fc7\u7aef\u53e3<code>7080<\/code>\u8bbf\u95eeGUI\u7ba1\u7406\u9762\u677f\uff1a<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>\u60a8\u7684\u670d\u52a1\u5668IP<\/mark>:7080\r\n<\/code><\/pre>\n<h3>\u8bbe\u7f6e\u7ba1\u7406\u5458\u8d26\u6237\u51ed\u636e<\/h3>\n<p>\u5728\u60a8\u7684\u7ec8\u7aef\u4e2d\uff0c\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8bbe\u7f6e\u7ba1\u7406\u5458\u8d26\u6237\u7684\u51ed\u636e\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><code>sudo \/usr\/local\/lsws\/admin\/misc\/admpass.sh<\/code><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8fd9\u4e9b\u767b\u5f55\u51ed\u636e\u5c06\u4e0e\u60a8\u5728\u4e4b\u524d\u6b65\u9aa4\u4e2d\u8bbe\u7f6e\u7684\u4e0d\u540c\uff0c\u5e76\u4e14\u4ec5\u9002\u7528\u4e8eOpenLiteSpeed\u670d\u52a1\u5668\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u7ba1\u7406\u9762\u677f\u3002<\/p>\n<p>\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u8f93\u51fa\uff0c\u63d0\u793a\u60a8\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\u8f93\u51fa<\/p>\n<pre class=\"post-pre\"><code>\r\nPlease specify the user name of administrator. This is the user name required to login the administration Web interface. User name [admin]: <mark>sammy<\/mark>\r\nPlease specify the administrators password. This is the password required to login the administration Web interface. Password: \r\nRetype password: \r\nAdministrators username\/password is updated successfully!\r\n<\/code><\/pre>\n<\/div>\n<p>\u5728\u60a8\u8bbe\u7f6e\u4e86\u51ed\u636e\u4e4b\u540e\uff0c\u5373\u53ef\u914d\u7f6e\u670d\u52a1\u5668\u4f7f\u7528\u6307\u5b9a\u7684PHP\u7248\u672c\u3002<\/p>\n<h3>\u914d\u7f6ePHP\u7248\u672c<\/h3>\n<p>\u901a\u8fc7 <code>http:\/\/\u60a8\u7684\u670d\u52a1\u5668IP:7080<\/code> \u767b\u5f55\u7ba1\u7406\u5458\u9762\u677f\uff08\u4f7f\u7528\u521a\u521a\u8bbe\u7f6e\u7684\u51ed\u636e\uff09\uff0c\u7136\u540e\u5bfc\u822a\u5230\u201c\u670d\u52a1\u5668\u914d\u7f6e\u201d\u90e8\u5206\u3002\u63a5\u7740\uff0c\u70b9\u51fb\u201c\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f\u201d\u9009\u9879\u5361\u3002<\/p>\n<p>\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u5c4f\u5e55\uff1a<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/102-0.png\" alt=\"OpenLiteSpeed\u670d\u52a1\u5668\u914d\u7f6e\u7684\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f\u5c4f\u5e55\" \/><\/div>\n<p>\u70b9\u51fb\u201c\u52a8\u4f5c\u201d\u5217\u4e2d\u7b2c\u4e00\u884c\u201cLiteSpeed SAPI \u5e94\u7528\u7a0b\u5e8f\u201d\u7684\u7f16\u8f91\u6309\u94ae\uff0c\u8fd9\u5c06\u6253\u5f00\u4e00\u4e2a\u540d\u4e3a <code>lsphp<\/code> \u7684\u5e94\u7528\u7a0b\u5e8f\u914d\u7f6e\u3002\u6eda\u52a8\u5230\u201c\u547d\u4ee4\u201d\u5b57\u6bb5\uff0c\u5c06\u5176\u503c\u66f4\u6539\u4e3a <code>lsphp81\/bin\/lsphp<\/code>\uff08\u6309\u7167\u7b2c\u56db\u90e8\u5206\u7684\u547d\u540d\u7ea6\u5b9a\uff09\u3002\u914d\u7f6e\u5b8c\u6b64\u503c\u540e\uff0c\u6eda\u52a8\u5230\u201cLiteSpeed SAPI \u5e94\u7528\u7a0b\u5e8f\u201d\u90e8\u5206\uff0c\u5e76\u70b9\u51fb\u53f3\u4fa7\u7684\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u3002<\/p>\n<p>\u8bf7\u4f7f\u7528\u53f3\u4e0a\u89d2\u7684\u201c\u4f18\u96c5\u91cd\u542f\u201d\u6309\u94ae\u6765\u91cd\u65b0\u542f\u52a8Web\u670d\u52a1\u5668\u3002\u4ee5\u4e0b\u5c4f\u5e55\u622a\u56fe\u4e2d\uff0c\u4f18\u96c5\u91cd\u542f\u6309\u94ae\u5728\u53f3\u4e0a\u89d2\u7a81\u51fa\u663e\u793a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/105-0.png\" alt=\"\u4f18\u96c5\u91cd\u542f\u6309\u94ae\u7684\u4f4d\u7f6e\" \/><\/div>\n<p>\u901a\u8fc7\u8bbf\u95ee\u7aef\u53e3<code>8088<\/code>\u4e0a\u7684\u4fe1\u606f\u9875\u9762\uff0c\u9a8c\u8bc1\u670d\u52a1\u5668\u662f\u5426\u6b63\u5728\u4f7f\u7528\u6307\u5b9a\u7684PHP\u7248\u672c\uff1a<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>\u60a8\u7684\u670d\u52a1\u5668IP<\/mark>:8088\/phpinfo.php\r\n<\/code><\/pre>\n<p>\u9875\u9762\u73b0\u5728\u5c06\u663e\u793a\u6307\u5b9a\u7684\u7248\u672c\u53f7\u3002<\/p>\n<p>\u5728\u672c\u8282\u4e2d\uff0c\u60a8\u914d\u7f6e\u4e86\u7ba1\u7406\u5458\u9762\u677f\u7684\u51ed\u636e\uff0c\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u4f7f\u7528\u6240\u9700\u7684PHP\u7248\u672c\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u5c06\u4e3a\u60a8\u8ba1\u5212\u5728\u6b64Web\u670d\u52a1\u5668\u4e0a\u6258\u7ba1\u7684\u4e0d\u540c\u7f51\u7ad9\u8bbe\u7f6e\u865a\u62df\u4e3b\u673a\u3002<\/p>\n<h2>\u7b2c\u516d\u90e8\u5206\uff1a\u8bbe\u7f6e\u865a\u62df\u4e3b\u673a<\/h2>\n<p>\u5728\u672c\u8282\u4e2d\uff0c\u60a8\u5c06\u4e3a\u60a8\u7684Web\u670d\u52a1\u5668\u8bbe\u7f6e\u865a\u62df\u4e3b\u673a\uff0c\u5e76\u4e3a\u60a8\u7f51\u7ad9\u7684\u6240\u6709\u6d41\u91cf\u914d\u7f6eTLS\u52a0\u5bc6\u3002<\/p>\n<p>\u865a\u62df\u4e3b\u673a\u5141\u8bb8\u60a8\u901a\u8fc7\u5355\u4e2aWeb\u670d\u52a1\u5668\u4e3a\u591a\u4e2a\u7f51\u7ad9\u63d0\u4f9b\u670d\u52a1\uff0c\u8fd9\u4e9b\u7f51\u7ad9\u901a\u8fc7\u552f\u4e00\u7684\u4e3b\u673a\u540d\u8fdb\u884c\u6807\u8bc6\u3002OpenLiteSpeed\u53ef\u4ee5\u4e3a\u591a\u4e2a\u865a\u62df\u4e3b\u673a\u63d0\u4f9b\u670d\u52a1\uff0c\u8fd9\u4e9b\u865a\u62df\u4e3b\u673a\u968f\u540e\u88ab\u6620\u5c04\u5230\u76d1\u542c\u5668\uff1b\u76d1\u542c\u5668\u518d\u6620\u5c04\u5230\u7279\u5b9a\u7684\u7aef\u53e3\u3002OpenLiteSpeed\u5141\u8bb8\u865a\u62df\u4e3b\u673a\u5177\u6709\u81ea\u5b9a\u4e49\u7684\u91cd\u5b9a\u5411\u89c4\u5219\uff0c\u5e76\u4e14\u6bcf\u4e2a\u865a\u62df\u4e3b\u673a\u8fd8\u53ef\u4ee5\u914d\u7f6e\u4e0d\u540c\u7684PHP\u7248\u672c\u3002\u6b64\u5916\uff0c\u865a\u62df\u4e3b\u673a\u53ef\u4ee5\u914d\u7f6e\u4e3a\u4f5c\u4e3a\u5176\u4ed6Web\u670d\u52a1\u5668\uff08\u5982Node.JS\uff09\u7684\u53cd\u5411\u4ee3\u7406\u8fde\u63a5\u3002<\/p>\n<p>\u5728GUI\u7ba1\u7406\u9762\u677f\u4e2d\uff0c\u5bfc\u822a\u5230\u201c\u865a\u62df\u4e3b\u673a\u201d\u90e8\u5206\u3002\u5728\u51fa\u73b0\u7684\u8868\u683c\u7684\u53f3\u4e0a\u89d2\uff0c\u70b9\u51fb\u52a0\u53f7\uff08+\uff09\u6309\u94ae\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u865a\u62df\u4e3b\u673a\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u9009\u62e9\u4e00\u4e2a\u865a\u62df\u4e3b\u673a\u540d\u79f0\uff0c\u5e76\u8bbe\u7f6e\u865a\u62df\u4e3b\u673a\u7684\u6839\u8def\u5f84\u4ee5\u53ca\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u53d8\u91cf\uff0c\u5982<code>$SERVER_ROOT<\/code>\uff08\u7528\u4e8e\u5f15\u7528OpenLiteSpeed Web\u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55\uff09\u6216<code>$VH_ROOT<\/code>\uff08\u7528\u4e8e\u5f15\u7528\u865a\u62df\u4e3b\u673a\u7684\u6839\u76ee\u5f55\uff09\u6765\u8bbe\u7f6e\u3002\u542f\u7528\u201c\u811a\u672c\/\u6269\u5c55\u5e94\u7528\u7a0b\u5e8f\u201d\u9009\u9879\uff0c\u4ee5\u786e\u4fddPHP\u5728\u865a\u62df\u4e3b\u673a\u4e0a\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>\u5f53\u8bbe\u7f6e\u865a\u62df\u4e3b\u673a\u65f6\uff0c\u8bf7\u4f7f\u7528\u60a8\u6240\u9700\u7684\u503c\u586b\u5199\u4ee5\u4e0b\u5b57\u6bb5\uff08\u4e0b\u9762\u663e\u793a\u7684\u503c\u4ec5\u4e3a\u793a\u4f8b\uff09\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>\u865a\u62df\u4e3b\u673a\u540d\u79f0: <code>MyWebsite<\/code><\/li>\n<li>\u865a\u62df\u4e3b\u673a\u6839\u76ee\u5f55: <code>$SERVER_ROOT\/MyWebsite\/html\/<\/code><\/li>\n<li>\u914d\u7f6e\u6587\u4ef6: <code>conf\/vhosts\/MyWebsite\/vhconf.conf<\/code><\/li>\n<li>\u542f\u7528\u811a\u672c\/\u6269\u5c55\u5e94\u7528\u7a0b\u5e8f: <code>\u662f<\/code><\/li>\n<li>\u53d7\u9650: <code>\u662f<\/code><\/li>\n<\/ul>\n<p>\u60a8\u53ef\u4ee5\u5c06\u201cMyWebsite\u201d\u66ff\u6362\u4e3a\u60a8\u5728\u5148\u51b3\u6761\u4ef6\u4e2d\u521b\u5efa\u7684\u57df\u540d\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">\u6ce8\u610f\uff1a\u5982\u679c\u914d\u7f6e\u6587\u4ef6\u5728\u6307\u5b9a\u7684\u8def\u5f84\u4e0a\u4e0d\u5b58\u5728\uff0c\u60a8\u53ef\u80fd\u4f1a\u6536\u5230\u4e00\u4e2a\u9519\u8bef\u3002\u70b9\u51fb\u9519\u8bef\u6d88\u606f\u4e2d\u63d0\u5230\u7684\u94fe\u63a5\uff0c\u53ef\u4ee5\u81ea\u52a8\u521b\u5efa\u8be5\u6587\u4ef6\u3002<\/p>\n<\/div>\n<p>\u5728\u914d\u7f6e\u7684\u201c\u5916\u90e8\u5e94\u7528\u201d\u90e8\u5206\uff0c\u542f\u7528\u201c\u542f\u7528\u811a\u672c\/\u6269\u5c55\u5e94\u7528\u7a0b\u5e8f\u201d\u529f\u80fd\uff0c\u53ef\u4ee5\u65b9\u4fbf\u60a8\u6307\u5b9a\u81ea\u5b9a\u4e49\u7684PHP\u89e3\u91ca\u5668\u7248\u672c\u3002\u5982\u679c\u60a8\u4e0d\u6253\u7b97\u4f7f\u7528\u81ea\u5b9a\u4e49PHP\u7248\u672c\uff0c\u5219\u53ef\u4ee5\u5c06\u5176\u5173\u95ed\u3002<\/p>\n<p>\u4e3a\u4e86\u589e\u5f3a\u5b89\u5168\u6027\uff0c\u8bf7\u52a1\u5fc5\u5728\u201c\u9650\u5236\u8bbf\u95ee\u201d\u4e2d\u542f\u7528\u6b64\u529f\u80fd\u3002\u542f\u7528\u540e\uff0c\u5373\u4f7f\u7b26\u53f7\u94fe\u63a5\u6307\u5411\u865a\u62df\u4e3b\u673a\u6839\u76ee\u5f55\u4e4b\u5916\u7684\u6587\u4ef6\uff0c\u4e5f\u80fd\u6709\u6548\u963b\u6b62\u7528\u6237\u8bbf\u95ee\u5176\u4ed6\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/121-0.png\" alt=\"\u865a\u62df\u4e3b\u673a\u914d\u7f6e\" \/><\/div>\n<p>\u5b8c\u6210\u914d\u7f6e\u540e\uff0c\u70b9\u51fb\u865a\u62df\u4e3b\u673a\u884c\u53f3\u4fa7\u7684\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u3002<\/p>\n<p>\u7ba1\u7406\u9762\u677f\u53ef\u80fd\u4f1a\u63d0\u793a\u60a8\u6267\u884c\u201c\u4f18\u96c5\u91cd\u542f\u201d\u4ee5\u5e94\u7528\u914d\u7f6e\u66f4\u6539\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u6b64\u65f6\u6267\u884c\u4f18\u96c5\u91cd\u542f\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4f1a\u5f71\u54cd\u540e\u7eed\u7684\u914d\u7f6e\u6b65\u9aa4\u3002\u60a8\u4e5f\u53ef\u4ee5\u5728\u5b8c\u6210\u4fa6\u542c\u5668\u914d\u7f6e\u66f4\u6539\u540e\u518d\u6267\u884c\u4f18\u96c5\u91cd\u542f\u3002<\/p>\n<p>\u914d\u7f6e\u5b8c\u865a\u62df\u4e3b\u673a\u540e\uff0c\u63a5\u4e0b\u6765\u9700\u8981\u914d\u7f6e\u4fa6\u542c\u5668\u3002\u5728\u7ba1\u7406\u5458\u9762\u677f\u4e2d\u5bfc\u822a\u5230\u201c\u4fa6\u542c\u5668\u201d\u90e8\u5206\u3002\u70b9\u51fb\u9ed8\u8ba4\u4fa6\u542c\u5668\uff0c\u7136\u540e\u70b9\u51fb\u865a\u62df\u4e3b\u673a\u6620\u5c04\u8868\u53f3\u4e0a\u89d2\u7684\u201c\u52a0\u53f7\u201d\uff08+\uff09\u6309\u94ae\u3002<\/p>\n<p>\u5728\u4e0e\u865a\u62df\u4e3b\u673a\u5bf9\u5e94\u7684\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u60a8\u5728\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u4e2d\u6307\u5b9a\u7684\u865a\u62df\u4e3b\u673a\u540d\u79f0\u3002\u5728\u672c\u793a\u4f8b\u4e2d\uff0c\u9009\u62e9\u7684\u865a\u62df\u4e3b\u673a\u662f\u201cMyWebsite\u201d\u3002<\/p>\n<p>\u5728\u201c\u57df\u540d\u201d\u6587\u672c\u6846\u4e2d\uff0c\u8f93\u5165\u5b8c\u5168\u5408\u683c\u4e14\u5df2\u6ce8\u518c\u7684\u57df\u540d\uff0c\u8be5\u57df\u540d\u5c06\u7528\u4e8e\u63d0\u4f9b\u60a8\u5df2\u914d\u7f6e\u7684\u865a\u62df\u4e3b\u673a\u3002\u5728\u4e0b\u65b9\u7684\u622a\u56fe\u4e2d\uff0c\u793a\u4f8b\u503c\u5df2\u8bbe\u7f6e\u4e3a<code>mywebsite.com<\/code>\uff0c\u8bf7\u52a1\u5fc5\u5c06\u5176\u66f4\u65b0\u4e3a\u60a8\u5b9e\u9645\u4f7f\u7528\u7684\u57df\u540d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/127-0.png\" alt=\"\u4fa6\u542c\u5668\u914d\u7f6e\" \/><\/div>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\"><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<div>\n<p>\u9ed8\u8ba4\u4fa6\u542c\u5668\u914d\u7f6e\u4e3a\u4fa6\u542c8088\u7aef\u53e3\u3002\u60a8\u7f51\u7ad9\u7684HTTP\u6d41\u91cf\u901a\u5e38\u4f7f\u752880\u7aef\u53e3\uff0c\u5982\u679c\u542f\u7528\u4e86SSL\/TLS\u52a0\u5bc6\uff0c\u60a8\u7684HTTPS\u7f51\u7ad9\u5219\u5e94\u4fa6\u542c443\u7aef\u53e3\u3002\u60a8\u9700\u8981\u5728\u4fa6\u542c\u5668\u914d\u7f6e\u7684\u201c\u5730\u5740\u8bbe\u7f6e\u201d\u4e2d\u66f4\u6539\u7aef\u53e3\uff0c\u4ee5\u66f4\u6539\u4fa6\u542c\u5668\u4fa6\u542c\u7684\u7aef\u53e3\u3002\u70b9\u51fb\u865a\u62df\u4e3b\u673a\u6620\u5c04\u884c\u53f3\u4e0a\u89d2\u7684\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<p>\u5f3a\u70c8\u5efa\u8bae\u60a8\u4e3a\u60a8\u7684\u7f51\u7ad9\u542f\u7528TLS\u5b89\u5168\u529f\u80fd\u3002\u5728\u4fa6\u542c\u5668\u7684\u201c\u5e38\u89c4\u8bbe\u7f6e\u201d\u4e2d\uff0c\u5c06\u201c\u5b89\u5168\u201d\u9009\u9879\u66f4\u65b0\u4e3a\u201c\u662f\u201d\uff0c\u5e76\u5c06\u652f\u6301HTTPS\u9875\u9762\u7684\u4fa6\u542c\u5668\u7aef\u53e3\u4ece8088\u66f4\u6539\u4e3a443\u3002443\u662fHTTPS\u7684\u9ed8\u8ba4\u7aef\u53e3\u3002\u4fdd\u5b58\u66f4\u65b0\u540e\u7684\u5730\u5740\u8bbe\u7f6e\u3002<\/p>\n<p>\u7531\u4e8e\u60a8\u5df2\u5728\u5148\u51b3\u6761\u4ef6\u4e2d\u4ece\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u751f\u6210\u4e86\u8bc1\u4e66\u548c\u5bc6\u94a5\u6587\u4ef6\uff0c\u73b0\u5728\u60a8\u53ef\u4ee5\u5c06\u5b83\u4eec\u6dfb\u52a0\u5230\u60a8\u7684OpenLiteSpeed\u8bbe\u7f6e\u4e2d\u3002\u901a\u8fc7\u70b9\u51fb\u201cSSL\u79c1\u94a5\u201d\u548c\u201c\u8bc1\u4e66\u201d\u884c\u4e2d\u7684\u7f16\u8f91\u56fe\u6807\uff0c\u5728\u4fa6\u542c\u5668\u914d\u7f6e\u7684\u201cSSL\u201d\u90e8\u5206\u4e2d\u6dfb\u52a0\u8bc1\u4e66\u548c\u5bc6\u94a5\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6309\u7167\u524d\u63d0\u4e2d\u63d0\u5230\u7684\u6307\u5357\u8fdb\u884c\u64cd\u4f5c\uff0cLet&#8217;s Encrypt\u751f\u6210\u7684\u8bc1\u4e66\u548c\u5bc6\u94a5\u6587\u4ef6\u5c06\u4f4d\u4e8e\u4ee5\u4e0b\u4f4d\u7f6e\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>\u79c1\u94a5\u6587\u4ef6: <code>\/etc\/letsencrypt\/live\/your_domain.privkey.pem<\/code><\/li>\n<li>\u8bc1\u4e66\u6587\u4ef6: <code>\/etc\/letsencrypt\/live\/your_domain.fullchain.pem<\/code><\/li>\n<\/ul>\n<p>\u6839\u636eOpenLiteSpeed\u5b98\u65b9\u6587\u6863\u914d\u7f6eLet&#8217;s Encrypt SSL\u65f6\uff0c\u9488\u5bf9\u7531Let&#8217;s Encrypt\u751f\u6210\u7684\u8bc1\u4e66\uff0c\u60a8\u5fc5\u987b\u5c06\u201c\u94fe\u5f0f\u8bc1\u4e66\u201d\uff08Chained Certificate\uff09\u9009\u9879\u8bbe\u7f6e\u4e3a\u201c\u662f\u201d\u3002<\/p>\n<p>\u8bf7\u53c2\u8003\u4e0b\u9762\u7684\u793a\u4f8b\u914d\u7f6e\uff0c\u5728SSL\u90e8\u5206\u7684\u4fa6\u542c\u5668\u914d\u7f6e\u4e2d\u8bbe\u7f6eTLS\u8bc1\u4e66\u548c\u5bc6\u94a5\u6587\u4ef6\uff08\u8bf7\u786e\u4fdd\u66f4\u65b0\u6587\u4ef6\u8def\u5f84\u4ee5\u7b26\u5408\u60a8\u7684\u57df\u540d\uff09\uff1a<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/136-0.png\" alt=\"\u4fa6\u542c\u5668TLS\u914d\u7f6e\" \/><\/div>\n<p>\u5982\u679c\u60a8\u9047\u5230\u4efb\u4f55\u95ee\u9898\uff0c\u53ef\u4ee5\u67e5\u9605OpenLiteSpeed\u5b98\u65b9\u6587\u6863\u4e2d\u7684\u300aOpenLiteSpeed SSL\u914d\u7f6e\u6307\u5357\u300b\u6765\u89e3\u51b3\u3002<\/p>\n<p>\u5728\u914d\u7f6e\u5e76\u4fdd\u5b58\u8fd9\u4e9b\u8bbe\u7f6e\u540e\uff0c\u70b9\u51fb\u5c4f\u5e55\u53f3\u4e0a\u89d2\u7684\u201c\u4f18\u96c5\u91cd\u542f\u201d\u6309\u94ae\u4ee5\u5e94\u7528\u66f4\u6539\u3002<\/p>\n<p>\u60a8\u73b0\u5728\u5df2\u7ecf\u914d\u7f6e\u4e86\u4e00\u4e2a\u5e26\u6709\u4fa6\u542c\u5668\u7684\u865a\u62df\u4e3b\u673a\uff0c\u5e76\u4e3a\u60a8\u7f51\u7ad9\u7684\u6240\u6709\u6d41\u91cf\u8bbe\u7f6e\u4e86TLS\u52a0\u5bc6\u3002\u5728\u5c06\u60a8\u7684DNS\u914d\u7f6e\u4e3a\u6620\u5c04\u5230\u670d\u52a1\u5668\u7684\u516c\u5171IP\u5730\u5740\u540e\uff0c\u60a8\u7684\u7f51\u7ad9\u5c06\u53ef\u5728\u60a8\u6307\u5b9a\u7684\u57df\u540d\u4e0b\u8bbf\u95ee\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\"><strong>\u542f\u7528QUIC\u534f\u8bae\u4e0a\u7684HTTP\/3<\/strong><\/p>\n<div>\n<p><strong>\u6ce8\u610f\uff1a<\/strong>OpenLiteSpeed\u662f\u6700\u65e9\u5c06HTTP\/3\u534f\u8bae\u4e0e\u5feb\u901fUDP\u4e92\u8054\u7f51\u8fde\u63a5\uff08QUIC\uff09\u534f\u8bae\u7ed3\u5408\u7684\u5f00\u6e90\u670d\u52a1\u5668\u4e4b\u4e00\u3002<\/p>\n<p>\u8981\u542f\u7528HTTP\/3\/QUIC\uff0c\u60a8\u5fc5\u987b\u4e3a\u57df\u540d\u8bbe\u7f6eSSL\uff0c\u5e76\u901a\u8fc7\u7ba1\u7406\u9762\u677f\u914d\u7f6e\u8bc1\u4e66\u548c\u5bc6\u94a5\u3002\u8bf7\u8fd4\u56de\u5230\u7b2c6\u6b65\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p>\u5982\u679c\u60a8\u60f3\u4f7f\u7528HTTP\/3\uff0c\u8fd8\u5fc5\u987b\u5141\u8bb8UDP\u6d41\u91cf\u901a\u8fc7\u670d\u52a1\u5668\u7684443\u7aef\u53e3\u3002\u8981\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>sudo ufw allow 443\/udp<\/code><\/pre>\n<\/p><\/div>\n<\/div>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u5c06\u8bbe\u7f6e\u4e00\u4e2aMariaDB\u6570\u636e\u5e93\u670d\u52a1\u5668\u548c\u4e00\u4e2a\u80fd\u591f\u4f7f\u7528\u6307\u5b9aPHP\u7248\u672c\u4e3aPHP\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u670d\u52a1\u7684OpenLiteSpeed Web\u670d\u52a1\u5668\u3002\u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u5728\u60a8\u7684\u670d\u52a1\u5668\u4e0a\u6258\u7ba1\u5404\u79cdPHP\u5e94\u7528\u7a0b\u5e8f\u548c\u6846\u67b6\uff0c\u5982WordPress\u3001Laravel\u548cJoomla\u3002<\/p>\n<p>\u5982\u679c\u60a8\u8fd8\u6ca1\u6709\u8fd9\u6837\u505a\uff0c\u60a8\u53ef\u4ee5\u5728\u60a8\u7684Web\u670d\u52a1\u5668\u4e0a\u8bbe\u7f6eTLS\u5b89\u5168\uff0c\u5e76\u542f\u7528HTTP\/3 over QUIC\uff0c\u4ee5\u6700\u5927\u9650\u5ea6\u5730\u5229\u7528OpenLiteSpeed Web\u670d\u52a1\u5668\u3002\u8bf7\u67e5\u9605\u6709\u5173\u5728OpenLiteSpeed\u4e0a\u8bbe\u7f6eLet&#8217;s Encrypt SSL\u7684\u6307\u5357\uff0c\u7136\u540e\u53c2\u8003\u8be5\u6307\u5357\u7b2c6\u6b65\u4e2d\u7684\u542f\u7528HTTP\/3 over QUIC\u90e8\u5206\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LOMP\u5806\u6808\u7b80\u4ecb LOMP\u5806\u6808\u662fLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u7684\u7f29\u5199\u3002Open [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[644,313,645,646,300],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-lomp-stack","tag-mariadb","tag-openlitespeed","tag-php","tag-ubuntu-22-04"],"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>Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLOMP Stack\uff0c\u5305\u62ecLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u5c06\u8f7b\u677e\u642d\u5efa\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668\u73af\u5883\uff0c\u4e3a\u60a8\u7684\u7f51\u7ad9\u63d0\u4f9b\u7a33\u5b9a\u652f\u6301\u3002\u7acb\u5373\u5b66\u4e60\uff0c\u638c\u63e1LOMP\u90e8\u7f72\u6280\u5de7\uff01\" \/>\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\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u5b89\u88c5linux\u3001openlitespeed\u3001mariadb\u3001php\uff08lomp-stack\uff09\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLOMP Stack\uff0c\u5305\u62ecLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u5c06\u8f7b\u677e\u642d\u5efa\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668\u73af\u5883\uff0c\u4e3a\u60a8\u7684\u7f51\u7ad9\u63d0\u4f9b\u7a33\u5b9a\u652f\u6301\u3002\u7acb\u5373\u5b66\u4e60\uff0c\u638c\u63e1LOMP\u90e8\u7f72\u6280\u5de7\uff01\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u5b89\u88c5linux\u3001openlitespeed\u3001mariadb\u3001php\uff08lomp-stack\uff09\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-27T23:37:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:36:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/44-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \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%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/\",\"name\":\"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-27T23:37:37+00:00\",\"dateModified\":\"2025-07-31T16:36:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"description\":\"\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLOMP Stack\uff0c\u5305\u62ecLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u5c06\u8f7b\u677e\u642d\u5efa\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668\u73af\u5883\uff0c\u4e3a\u60a8\u7684\u7f51\u7ad9\u63d0\u4f9b\u7a33\u5b9a\u652f\u6301\u3002\u7acb\u5373\u5b66\u4e60\uff0c\u638c\u63e1LOMP\u90e8\u7f72\u6280\u5de7\uff01\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP\"}]},{\"@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\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP - Blog - Silicon Cloud","description":"\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLOMP Stack\uff0c\u5305\u62ecLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u5c06\u8f7b\u677e\u642d\u5efa\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668\u73af\u5883\uff0c\u4e3a\u60a8\u7684\u7f51\u7ad9\u63d0\u4f9b\u7a33\u5b9a\u652f\u6301\u3002\u7acb\u5373\u5b66\u4e60\uff0c\u638c\u63e1LOMP\u90e8\u7f72\u6280\u5de7\uff01","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\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u5b89\u88c5linux\u3001openlitespeed\u3001mariadb\u3001php\uff08lomp-stack\uff09\uff1f\/","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP","og_description":"\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLOMP Stack\uff0c\u5305\u62ecLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u5c06\u8f7b\u677e\u642d\u5efa\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668\u73af\u5883\uff0c\u4e3a\u60a8\u7684\u7f51\u7ad9\u63d0\u4f9b\u7a33\u5b9a\u652f\u6301\u3002\u7acb\u5373\u5b66\u4e60\uff0c\u638c\u63e1LOMP\u90e8\u7f72\u6280\u5de7\uff01","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u5b89\u88c5linux\u3001openlitespeed\u3001mariadb\u3001php\uff08lomp-stack\uff09\uff1f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-27T23:37:37+00:00","article_modified_time":"2025-07-31T16:36:21+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656468b7a4b2f92e6c726fde\/44-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/","name":"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-27T23:37:37+00:00","dateModified":"2025-07-31T16:36:21+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"description":"\u672c\u6307\u5357\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLOMP Stack\uff0c\u5305\u62ecLinux\u3001OpenLiteSpeed\u3001MariaDB\u548cPHP\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u5c06\u8f7b\u677e\u642d\u5efa\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668\u73af\u5883\uff0c\u4e3a\u60a8\u7684\u7f51\u7ad9\u63d0\u4f9b\u7a33\u5b9a\u652f\u6301\u3002\u7acb\u5373\u5b66\u4e60\uff0c\u638c\u63e1LOMP\u90e8\u7f72\u6280\u5de7\uff01","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 22.04 LOMP Stack\u5b89\u88c5\u6307\u5357\uff1aLinux\u3001OpenLiteSpeed\u3001MariaDB\u3001PHP"}]},{"@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\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e5%ae%89%e8%a3%85linux%e3%80%81openlitespeed%e3%80%81mariadb%e3%80%81php%ef%bc%88lomp-stack%ef%bc%89%ef%bc%9f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/148","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=148"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":109621,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/148\/revisions\/109621"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}