{"id":1718,"date":"2019-08-03T06:10:46","date_gmt":"2019-08-02T22:10:46","guid":{"rendered":"http:\/\/kopuikeung.synology.me\/?p=1718"},"modified":"2019-11-23T08:04:39","modified_gmt":"2019-11-23T00:04:39","slug":"mint-linux-19-%e5%ae%89%e8%a3%9d-lamp","status":"publish","type":"post","link":"https:\/\/kopuikeung.com\/wordpress\/archives\/1718","title":{"rendered":"Mint Linux 19 \u5b89\u88dd LAMP"},"content":{"rendered":"<p>\u5b89\u88dd LAMP<br \/>\nsudo apt-get install lamp-server^ -y<\/p>\n<p>\u6e2c\u8a66 Apache<br \/>\nhttp:\/\/localhost<\/p>\n<p>\u6e2c\u8a66 PHP<br \/>\nsudo nano \/var\/www\/html\/info.php<\/p>\n<p>\u52a0\u5165\u4ee5\u4e0b\u4e00\u884c<\/p>\n<p><?php phpinfo(); ?><\/p>\n<p>Then CTRL+X then y and Enter<\/p>\n<p>\u6e9c\u7060\u5668\ud862\uddde\u5165:<\/p>\n<p>http:\/\/localhost\/info.php<\/p>\n<p>\u5b89\u88dd PHPMyAdmin<br \/>\nsudo apt-get install phpmyadmin -y<\/p>\n<p>\u9810\u8a2d\u7684\u4f7f\u7528\u8005\u662fphpmyadmin<\/p>\n<p>\u9032\u5165mysql\u8a2d\u5b9aroot\u7684\u5bc6\u78bc<br \/>\nLogin to mysql<br \/>\nsudo mysql -u root<br \/>\nmysql><br \/>\nALTER USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED WITH mysql_native_password BY &#8216;new-password&#8217;;<\/p>\n<p>\u589e\u52a0\u4f7f\u7528\u8005\u4e26\u53d6\u5f97\u6240\u6709\u6b0a\u9650\ufe55<\/p>\n<p>Grant privileges to a new user execute below command in mysql interface: \u201creplace new-user with the name you need\u201d<\/p>\n<p>CREATE USER &#8216;new-user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<br \/>\nGRANT ALL PRIVILEGES ON *.* TO &#8216;new-user&#8217;@&#8217;localhost&#8217;;<br \/>\nFLUSH PRIVILEGES;<\/p>\n<p>\u767b\u51fasql<br \/>\nexit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88dd LAMP sudo apt-get install lamp-server &hellip; <a href=\"https:\/\/kopuikeung.com\/wordpress\/archives\/1718\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1718","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/posts\/1718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1718"}],"version-history":[{"count":3,"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/posts\/1718\/revisions"}],"predecessor-version":[{"id":1744,"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/posts\/1718\/revisions\/1744"}],"wp:attachment":[{"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kopuikeung.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}