{"id":787,"date":"2023-11-06T18:34:19","date_gmt":"2023-11-06T10:34:19","guid":{"rendered":"http:\/\/www.inhhh.com\/blog\/?p=787"},"modified":"2023-11-17T18:05:10","modified_gmt":"2023-11-17T10:05:10","slug":"aws-centos-stream9-%e6%95%b4%e5%90%88%e5%8e%9f%e6%9c%ac%e4%b8%a4%e5%8f%b0centos7","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=787","title":{"rendered":"aws centos stream9 \u6574\u5408\u539f\u672c\u4e24\u53f0centos7"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>1.\u521b\u5efa\u5b9e\u4f8b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"587\" src=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2023\/11\/image.png\" alt=\"\" class=\"wp-image-788\" srcset=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2023\/11\/image.png 763w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2023\/11\/image-300x231.png 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/figure>\n\n\n\n<p>2.\u8fdb\u884c\u547d\u4ee4\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"732\" src=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2023\/11\/image-1.png\" alt=\"\" class=\"wp-image-789\" srcset=\"http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2023\/11\/image-1.png 776w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2023\/11\/image-1-300x283.png 300w, http:\/\/www.inhhh.com\/blog\/wp-content\/uploads\/2023\/11\/image-1-768x724.png 768w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/figure>\n\n\n\n<p>3.\u66f4\u65b0<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\nyum update -y\nyum upgrade -y\n<\/code><\/pre>\n\n\n\n<p>4.\u4ece\u65e7\u670d\u52a1\u5668\u4e0b\u8f7d\u65e7\u7248\u672cminisite.hk<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/var\/www\/html\/backup\nmkdir -p \/var\/www\/html\/dbbackup\nmkdir -p \/var\/www\/html\/minisite.hk\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install httpd -y\nyum install httpd-tools -y\nyum install -y mysql mysql-server -y\nyum install -y php\nyum install -y wget\nyum install -y unzip<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u4fee\u6539MYSQL PASSWORD\nuse mysql;\nalter user 'root'@'localhost' identified by '123456';\nset password for root@localhost ='123456';\nFLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5composer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\r\ncurl -sS | sudo php -- --install-dir=\/usr\/local\/bin --filename=composer\r\n\r\nphp -r \"copy('https:\/\/getcomposer.org\/installer', 'composer-setup.php');\"\r\n\r\nHASH=\"$(wget -q -O - https:\/\/composer.github.io\/installer.sig)\"\r\nphp -r \"if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\"\r\nsudo php composer-setup.php --install-dir=\/usr\/local\/bin --filename=composer\n\/usr\/local\/bin\/composer -V<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539\u73af\u5883\u53d8\u91cfPATH <\/p>\n\n\n\n<p>vi  \/etc\/environment<br>PAHT=&#8221;\/usr\/local\/bin&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer -V\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u521b\u5efa\u5b9e\u4f8b 2.\u8fdb\u884c\u547d\u4ee4\u884c 3.\u66f4\u65b0 4.\u4ece\u65e7\u670d\u52a1\u5668\u4e0b\u8f7d\u65e7\u7248\u672cminisite.hk \u5b89\u88c5composer <\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.inhhh.com\/blog\/?p=787\" 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":[],"class_list":["post-787","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/787","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=787"}],"version-history":[{"count":5,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/787\/revisions"}],"predecessor-version":[{"id":828,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/787\/revisions\/828"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=787"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}