{"id":110,"date":"2024-06-28T18:08:23","date_gmt":"2024-06-28T10:08:23","guid":{"rendered":"http:\/\/192.168.5.24\/?p=110"},"modified":"2024-07-24T14:31:30","modified_gmt":"2024-07-24T06:31:30","slug":"lamp%e5%ae%89%e8%a3%85wordpress%e4%b8%aa%e4%ba%ba%e7%bd%91%e7%ab%99","status":"publish","type":"post","link":"https:\/\/bigvip.dpdns.org\/?p=110","title":{"rendered":"LAMP\u5b89\u88c5WordPress\u4e2a\u4eba\u7f51\u7ad9"},"content":{"rendered":"\n<p>1\u3001\u80cc\u666f\u4ecb\u7ecd<\/p>\n\n\n\n<p>\u5b89\u88c5WordPress6.5.5\u7248\u672c<\/p>\n\n\n\n<p>         Linux\u7cfb\u7edf\u4f7f\u7528centos 7\uff0cWebServer\u4f7f\u7528httpd\uff08\u7cfb\u7edf\u81ea\u5e26yum\u6e90\u5b89\u88c5\uff09\uff0c\u6570\u636e\u5e93\u76f4\u63a5\u4f7f\u7528\u6e90\u7801MySQL-8.3.0\uff0cPHP\u4f7f\u7528php-7.4\u7248\u672cyum\u5b89\u88c5\u3002<\/p>\n\n\n\n<p>2\u3001\u5b89\u88c5MySQL<\/p>\n\n\n\n<p>     \u89e3\u538bMySQL\u5230\/opt\/mysql830<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost mysql830]# ls\nbin  docs  include  lib  LICENSE  man  README  share  support-files<\/code><\/pre>\n\n\n\n<p>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf,\u5728\u6587\u4ef6\/etc\/profile\u6700\u540e\u589e\u52a0\u4e00\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PATH=$PATH:\/opt\/mysql830\/bin<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost bin]# . \/etc\/profile<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0MySQL\u7684\u8fd0\u884c\u7528\u6237\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost ~]# useradd -M -s \/sbin\/nologin mysql<\/code><\/pre>\n\n\n\n<p>\u521b\u5efa\u6570\u636e\u5e93\u5b58\u50a8\u6587\u4ef6\u5939\u5e76\u4fee\u6539\u6743\u9650<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/mysqldata\nchown mysql:mysql \/mysqldata\n\u521b\u5efa\u65e5\u5fd7\u6587\u4ef6\u5939\nmkdir \/var\/log\/mariadb\/\nchown mysql:mysql \/var\/log\/mariadb\/<\/code><\/pre>\n\n\n\n<p>\u521d\u59cb\u5316\u6570\u636e\u5e93<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost mysql830]# mysqld -I -b \/opt\/mysql830\/ -h \/mysqldata\/ -u mysql\n2024-06-29T02:15:34.832602Z 0 &#91;System] &#91;MY-015017] &#91;Server] MySQL Server Initialization - start.\n2024-06-29T02:15:34.834258Z 0 &#91;Warning] &#91;MY-011070] &#91;Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.\n2024-06-29T02:15:34.834374Z 0 &#91;System] &#91;MY-013169] &#91;Server] \/opt\/mysql830\/bin\/mysqld (mysqld 8.3.0) initializing of server in progress as process 1856\n2024-06-29T02:15:34.861445Z 1 &#91;System] &#91;MY-013576] &#91;InnoDB] InnoDB initialization has started.\n2024-06-29T02:15:35.379863Z 1 &#91;System] &#91;MY-013577] &#91;InnoDB] InnoDB initialization has ended.\n2024-06-29T02:15:36.391390Z 6 &#91;Note] &#91;MY-010454] &#91;Server] A temporary password is generated for root@localhost: <strong><mark style=\"background-color:#0073a8\" class=\"has-inline-color\">,Y\/jM7la1rqp<\/mark><\/strong>\n2024-06-29T02:15:38.218147Z 0 &#91;System] &#91;MY-015018] &#91;Server] MySQL Server Initialization - end.<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\/etc\/my.ini<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;mysqld]\ndatadir=\/mysqldata\nsocket=\/mysqldata\/mysql.sock<\/code><\/pre>\n\n\n\n<p>\u914d\u7f6e\u5f00\u673a\u81ea\u52a8\u8fd0\u884c\u811a\u672c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost mysql830]# cp support-files\/mysql.server \/etc\/init.d\/\n&#91;root@localhost mysql830]# chkconfig --add mysql.server\n&#91;root@localhost mysql830]# vi \/etc\/init.d\/mysql.server \n&#91;root@localhost mysql830]# service  mysql.server restart<\/code><\/pre>\n\n\n\n<p>\u914d\u7f6eMySQL\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u53c2\u6570<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost mysql830]# vi \/etc\/my.cnf.d\/mysql-clients.cnf \n#\n# These groups are read by MariaDB command-line tools\n# Use it for options that affect only one utility\n#\n\n&#91;mysql]\nsocket=\/mysqldata\/mysql.sock\n&#91;mysqladmin]\nsocket=\/mysqldata\/mysql.sock<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539MySQL\u6570\u636e\u5e93\u7684\u521d\u59cb\u5bc6\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost mysql830]# mysqladmin -uroot -p password\nEnter password:                    --\u539f\u521d\u59cb\u5316\u7684\u5bc6\u7801\uff0c\u6570\u636e\u521d\u59cb\u5316\u7684\u65f6\u5019\u81ea\u52a8\u751f\u6210\nNew password: \nConfirm new password: <\/code><\/pre>\n\n\n\n<p>\u521b\u5efawordpress\u6570\u636e\u5e93<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost mysql830]# mysqladmin -uroot -p create wpdatabase<\/code><\/pre>\n\n\n\n<p>3\u3001\u5b89\u88c5httpd\u548cPHP74<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@localhost mysql830]# yum -y install httpd php74-php php74-php-mysql\n&#91;root@localhost mysql830]# systemctl start httpd<\/code><\/pre>\n\n\n\n<p>4\u3001\u5b89\u88c5wordpress<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u89e3\u538bwordpress\n&#91;root@localhost html]# unzip wordpress-6.5.5-zh_CN.zip -d \/var\/www\/html\/<\/code><\/pre>\n\n\n\n<p>\u7528\u6d4f\u89c8\u5668\u6253\u5f00http:\/\/127.0.0.1\/wordpress<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"668\" src=\"http:\/\/192.168.5.24\/wp-content\/uploads\/2024\/06\/image-8-edited.png\" alt=\"\" class=\"wp-image-128\" srcset=\"https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-8-edited.png 1002w, https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-8-edited-300x200.png 300w, https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-8-edited-768x512.png 768w\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"606\" src=\"http:\/\/192.168.5.24\/wp-content\/uploads\/2024\/06\/image-9-edited.png\" alt=\"\" class=\"wp-image-130\" style=\"width:960px;height:auto\" srcset=\"https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-9-edited.png 808w, https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-9-edited-300x225.png 300w, https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-9-edited-768x576.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/figure>\n\n\n\n<p>\u5728\/var\/www\/html\/wordpress\u4e0b\u521b\u5efa&nbsp;<code>wp-config.php<\/code>&nbsp;\u6587\u4ef6\uff0c\u5e76\u5c06\u4ee5\u4e0a\u6587\u672c\u7c98\u8d34\u4e8e\u5176\u4e2d\u3002\u7136\u540e\u70b9\u51fb\u4e0a\u56fe\u7684\u201c<strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong>\u201d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"848\" src=\"http:\/\/192.168.5.24\/wp-content\/uploads\/2024\/06\/image-10-edited.png\" alt=\"\" class=\"wp-image-134\" style=\"width:960px;height:auto\" srcset=\"https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-10-edited.png 848w, https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-10-edited-300x300.png 300w, https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-10-edited-150x150.png 150w, https:\/\/bigvip.dpdns.org\/wp-content\/uploads\/2024\/06\/image-10-edited-768x768.png 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<p>\u6309\u4e0a\u56fe\u586b\u5199\u597d\u76f8\u5173\u4fe1\u606f\u5373\u53ef\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u80cc\u666f\u4ecb\u7ecd \u5b89\u88c5WordPress6.5.5\u7248\u672c Linux\u7cfb\u7edf\u4f7f\u7528centos 7\uff0cWebServer\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,36],"tags":[25,15,26,24],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-linux","category-36","tag-lamp","tag-mysql","tag-php","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=110"}],"version-history":[{"count":18,"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bigvip.dpdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}