{"id":299,"date":"2024-05-16T11:14:25","date_gmt":"2024-05-16T03:14:25","guid":{"rendered":"http:\/\/www.inhhh.com\/blog\/?p=299"},"modified":"2024-05-16T11:14:25","modified_gmt":"2024-05-16T03:14:25","slug":"%e8%ae%b0%e5%bd%95%e7%ae%a1%e7%90%86%e4%ba%9a%e9%a9%ac%e9%80%8a%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=299","title":{"rendered":"\u8bb0\u5f55\u7ba1\u7406\u4e9a\u9a6c\u900a\u4e91\u670d\u52a1\u5668\u7684\u8fc7\u7a0b"},"content":{"rendered":"<p>\u4e4b\u6240\u4ee5\u8981\u5199\u8fd9\u4e2a\uff0c\u662f\u56e0\u4e3a\u8fd9\u4e24\u5929\u8d70\u4e86\u5f2f\u8def\uff0c\u8bb0\u4e0b\uff0c\u8d70\u5f2f\u8def\u7684\u8fc7\u7a0b<br \/>\n1.\u9996\u5148\u767b\u9646 \u4e91\u670d\u52a1\u5668<br \/>\nhttps:\/\/lightsail.aws.amazon.com\/ls\/webapp\/home\/instances<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-300\" src=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/1-300x113.jpg\" alt=\"\" width=\"300\" height=\"113\" srcset=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/1-300x113.jpg 300w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/1-768x289.jpg 768w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/1-1024x385.jpg 1024w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/1.jpg 1138w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>2.\u521b\u5efa\u5b9e\u4f8b<\/p>\n<p>\u6ce8\u610f\uff0c\u4e0a\u9762\u53ef\u4ee5\u9009\u670d\u52a1\u4f4d\u7f6e\uff0c\u65b0\u52a0\u5761\u79bb\u4e2d\u56fd\u6700\u8fd1\uff0c\u4e0b\u9762\u8fd9\u91cc\u6211\u9009\u4e86\u6709\u7cfb\u7edf\u52a0APP,\uff08\u8fd9\u91cc\u56de\u60f3\u8d77\u6765\uff0c\u5047\u8bbe\u6211\u9009 \u4e2aubuntu\uff0c\u4e0d\u52a0\u5e94\u7528\uff0c\u4e0d\u77e5\u4f1a\u4e0d\u4f1a\u66f4\u597d\u4e00\u70b9\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-301\" src=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/02-281x300.jpg\" alt=\"\" width=\"281\" height=\"300\" srcset=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/02-281x300.jpg 281w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/02.jpg 745w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/p>\n<p>3.\u6ce8\u610f\uff0c\u4e00\u4e2a\u6708\u540e\u662f\u8981\u6536\u8d39\u7684\uff0c\u6536\u8d39\u524d\u8bb0\u5f97\u5220\u9664<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-302\" src=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/03-300x260.jpg\" alt=\"\" width=\"300\" height=\"260\" srcset=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/03-300x260.jpg 300w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/03.jpg 762w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>4.\u5f53\u521d\u4ee5\u4e3a\u5efa\u597d\u4e86\uff0c\u4ec0\u4e48\u90fd\u6709\uff0c\u6709\u4e2a\u521d\u59cb\u7684\u5e10\u53f7\u5bc6\u7801\uff0c\u4ec0\u4e48\u90fd\u80fd\u7528\uff0c\u4ec5\u4ec5\u53ea\u662f\u4ee5\u4e3a\uff0c\u8fd9\u4e9b\u53ef\u80fd\u963f\u91cc\u4e91\u6216\u8005\u817e\u8baf\u4e91\u624d\u6709\u7684\uff0c\u56fd\u5916\u771f\u5783\u573e\uff0c\u9996\u5148\u5438SSH\u8fde\u63a5\u80fd\u7528\uff0c\u6682\u65f6\u7528\u7740\u5427\uff0c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-304\" src=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/04-300x94.jpg\" alt=\"\" width=\"300\" height=\"94\" srcset=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/04-300x94.jpg 300w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/04-768x242.jpg 768w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/04-1024x323.jpg 1024w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2018\/11\/04.jpg 1035w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u5148\u89e3\u91ca\u4e0b\u6587\u4ef6\u7ed3\u6784<br \/>\n\u5f53\u524d\u7528\u6237\u662fbitnami,<br \/>\nhtml \u7684\u6587\u4ef6\u653e\u5728 \/opt\/bitnami\/apache2\/htdocs<br \/>\nphpmyadmin \u653e\u5728\/opt\/bitnami\/phpmyadmin\/<\/p>\n<p>5. \u8fd9\u662f\u6700\u5751\u7684\u4e00\u4ef6\u4e8b\u5c31\u662f\u8981\u6539mysql\u5bc6\u7801<\/p>\n<p>\u539f\u6765\u8bf4\u597d\u7684\u521d\u59cb\u5bc6\u7801\u662fbitnami\u5462<\/p>\n<p>\u53c2\u8003\u65b9\u6cd5https:\/\/docs.bitnami.com\/aws\/infrastructure\/lamp\/administration\/change-reset-password\/<\/p>\n<ul>\n<li>Create a file in\u00a0<em>\/home\/bitnami\/mysql-init<\/em>\u00a0with the content shown below (replace NEW_PASSWORD with the password you wish to use):\n<pre><code>UPDATE mysql.user SET Password=PASSWORD('NEW_PASSWORD') WHERE User='root';\r\nFLUSH PRIVILEGES;\r\n<\/code><\/pre>\n<p>If your stack ships MySQL v5.7.x, use the following content instead of that shown above:<\/p>\n<pre><code>UPDATE mysql.user SET authentication_string=PASSWORD('NEW_PASSWORD') WHERE User='root';\r\nFLUSH PRIVILEGES;\r\n<\/code><\/pre>\n<blockquote class=\"tip\"><p>TIP: Check the MySQL version with the command `<code>\/opt\/bitnami\/mysql\/bin\/mysqladmin --version<\/code>\u00a0or\u00a0<code>\/opt\/bitnami\/mysql\/bin\/mysqld \\--version<\/code><\/p><\/blockquote>\n<\/li>\n<li>Stop the MySQL server:\n<pre><code>sudo \/opt\/bitnami\/ctlscript.sh stop mysql\r\n<\/code><\/pre>\n<\/li>\n<li>Start MySQL with the following command:\n<pre><code>sudo \/opt\/bitnami\/mysql\/bin\/mysqld_safe --pid-file=\/opt\/bitnami\/mysql\/data\/mysqld.pid --datadir=\/opt\/bitnami\/mysql\/data --init-file=\/home\/bitnami\/mysql-init 2&gt; \/dev\/null &amp;\r\n<\/code><\/pre>\n<\/li>\n<li>Restart the MySQL server:\n<pre><code>sudo \/opt\/bitnami\/ctlscript.sh restart mysql\r\n<\/code><\/pre>\n<\/li>\n<li>Remove the script:\n<pre><code>rm \/home\/bitnami\/mysql-init<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>\u6700\u540e\u6210\u529f\u80fd \u4fee\u6539\u4e86mysql\u7684\u5bc6\u7801\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5927\u6982\u5185\u5bb9\u5148\u8bb0\u4e0b\u6765\uff0c<\/p>\n<p>phpmyadmin\u4e0d\u80fd\u4e0a\u4f20\uff0c\u4e0d\u77e5\u9053\uff0c\u662f\u4ec0\u4e48\u539f\u56e0\uff0c\u6211\u901a\u8fc7ssh wget\u4e0b\u6765\uff0c\u518d\u4fee\u6539config<\/p>\n<p>\u53e6\u5916htdocs \u4e00\u5b9a\u8981chmod 777\uff0c\u4e0d\u7136\u5f88\u9ebb\u70e6<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u6240\u4ee5\u8981\u5199\u8fd9\u4e2a\uff0c\u662f\u56e0\u4e3a\u8fd9\u4e24\u5929\u8d70\u4e86\u5f2f\u8def\uff0c\u8bb0\u4e0b\uff0c\u8d70\u5f2f\u8def\u7684\u8fc7\u7a0b 1.\u9996\u5148\u767b\u9646 \u4e91\u670d\u52a1\u5668 https:\/\/lights<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.inhhh.com\/blog\/?p=299\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[41],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ubuntu"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=299"}],"version-history":[{"count":3,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":306,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/299\/revisions\/306"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}