{"id":768,"date":"2017-12-08T14:29:52","date_gmt":"2017-12-08T06:29:52","guid":{"rendered":"https:\/\/damogame.cn:15443\/wordpress\/?p=768"},"modified":"2017-12-08T14:29:52","modified_gmt":"2017-12-08T06:29:52","slug":"%e5%9c%a8rhel%e3%80%81centos%e4%b8%8a%e5%ae%89%e8%a3%85%e5%bb%ba%e7%ab%99%e7%a5%9e%e5%99%a8drupal-8","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/768","title":{"rendered":"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8"},"content":{"rendered":"<div class=\"hidden-xs\">\n<div class=\"title-article\">\n<h1><a title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" href=\"http:\/\/www.linuxprobe.com\/rhel-centos-drupal-8.html\">\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8<\/a><\/h1>\n<\/div>\n<div class=\"tag-article container\"><\/div>\n<\/div>\n<p><a href=\"http:\/\/www.linuxprobe.com\/training\"><img decoding=\"async\" src=\"http:\/\/www.linuxprobe.com\/imgs\/peixun.jpg\" \/><\/a><\/p>\n<p><strong>Linux\u7cfb\u7edf\u6280\u672f\u4ea4\u6d41QQ\u7fa4\uff083026356\uff09\u9a8c\u8bc1\u95ee\u9898\u7b54\u6848\uff1a\u5218\u9044<\/strong><a href=\"http:\/\/shang.qq.com\/wpa\/qunwpa?idkey=a82afd41a7c0ee0bb10a75cf2bc846c5a7d443b0c474ac1d989ebeffc59ce55c\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto;\" title=\"&lt;Linux\u5c31\u8be5\u8fd9\u4e48\u5b66&gt;J\u7fa4\" src=\"http:\/\/pub.idqqimg.com\/wpa\/images\/group.png\" alt=\"&lt;Linux\u5c31\u8be5\u8fd9&gt;\u4e48\u5b66&gt;J\u7fa4\" border=\"0\" \/><\/a><\/p>\n<div class=\"centent-article fonts\">\n<div class=\"post-content\">\n<p>Drupal \u662f\u4e00\u4e2a\u5f00\u6e90\uff0c\u7075\u6d3b\uff0c\u9ad8\u5ea6\u53ef\u62d3\u5c55\u548c\u5b89\u5168\u7684\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edfContent Management System(CMS)\uff0c\u4f7f\u7528\u6237\u8f7b\u677e\u7684\u521b\u5efa\u7f51\u7ad9\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKiom1j915rAUIYcAAC18V2DZLY238.jpg\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>\u5b83\u53ef\u4ee5\u4f7f\u7528\u6a21\u5757\u62d3\u5c55\uff0c\u4f7f\u7528\u6237\u5c06\u5185\u5bb9\u7ba1\u7406\u8f6c\u6362\u4e3a\u5f3a\u5927\u7684\u6570\u5b57\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>Drupal \u8fd0\u884c\u5728\u8bf8\u5982 Apache\u3001IIS\u3001Lighttpd\u3001Cherokee\u3001Nginx \u7684 Web \u670d\u52a1\u5668\u4e0a\uff0c\u540e\u7aef\u6570\u636e\u5e93\u53ef\u4ee5\u4f7f\u7528 MySQL\u3001MongoDB\u3001MariaDB\u3001PostgreSQL\u3001MSSQL Server\u3002<\/p>\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c \u6211\u4eec\u4f1a\u5c55\u793a\u5728 RHEL 7\/6\u3001<a title=\"centos\" href=\"http:\/\/www.linuxprobe.com\/\" target=\"_blank\" rel=\"noopener\">CentOS<\/a>\u00a07\/6 \u548c Fedora 20-25 \u53d1\u884c\u7248\u4e0a\u4f7f\u7528 LAMP \u67b6\u6784\uff0c\u5982\u4f55\u624b\u52a8\u5b89\u88c5\u548c\u914d\u7f6e Drupal 8\u3002<\/p>\n<div><strong>Drupal \u9700\u6c42\uff1a<\/strong><\/div>\n<ol>\n<li>Apache 2.x (\u63a8\u8350)<\/li>\n<li>PHP 5.5.9 \u6216 \u66f4\u9ad8 (\u63a8\u8350 PHP 5.5)<\/li>\n<li>MySQL 5.5.3 \u6216 MariaDB 5.5.20 \u4e0e PHP \u6570\u636e\u5bf9\u8c61(PDO) \u652f\u6301<\/li>\n<\/ol>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4f7f\u7528 drupal.tecmint.com \u4f5c\u4e3a\u7f51\u7ad9\u4e3b\u673a\u540d\uff0cIP \u5730\u5740\u4e3a 192.168.0.104\u3002\u4f60\u7684\u73af\u5883\u4e5f\u8bb8\u4e0e\u8fd9\u4e9b\u8bbe\u7f6e\u4e0d\u540c\uff0c\u56e0\u6b64\u8bf7\u9002\u5f53\u505a\u51fa\u66f4\u6539\u3002<\/p>\n<div><strong>\u6b65\u9aa4 1\uff1a\u5b89\u88c5 Apache Web \u670d\u52a1\u5668<\/strong><\/div>\n<div><strong>1\u3001 \u9996\u5148\u6211\u4eec\u4ece\u5b98\u65b9\u4ed3\u5e93\u5f00\u59cb\u5b89\u88c5 Apache Web \u670d\u52a1\u5668\u3002<\/strong><\/div>\n<pre># yum install httpd<\/pre>\n<div><strong>2\u3001 \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u670d\u52a1\u5f00\u59cb\u662f\u88ab\u7981\u7528\u7684\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u624b\u52a8\u542f\u52a8\u5b83\uff0c\u540c\u65f6\u8ba9\u5b83\u4e0b\u6b21\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u542f\u52a8\uff0c\u5982\u4e0b\uff1a<\/strong><\/div>\n<pre>-------------\u00a0\u00a0\u901a\u8fc7\u00a0SystemD\u00a0-\u00a0CentOS\/RHEL\u00a07\u00a0\u548c\u00a0Fedora\u00a022+\u00a0-------------------\r\n#\u00a0systemctl\u00a0start\u00a0httpd\r\n#\u00a0systemctl\u00a0enable\u00a0httpd\r\n-------------\u00a0\u00a0\u901a\u8fc7\u00a0SysVInit\u00a0-\u00a0CentOS\/RHEL\u00a06\u00a0\u548c\u00a0Fedora\u00a0----------------------\r\n#\u00a0service\u00a0httpd\u00a0start<\/pre>\n<p>#\u00a0chkconfig\u00a0&#8211;level\u00a035\u00a0httpd\u00a0on<\/p>\n<div><strong>3\u3001 \u63a5\u4e0b\u6765\uff0c\u4e3a\u4e86\u5141\u8bb8\u901a\u8fc7 HTTP \u548c HTTPS \u8bbf\u95ee Apache \u670d\u52a1\uff0c\u6211\u4eec\u5fc5\u987b\u6253\u5f00 HTTPD \u5b88\u62a4\u8fdb\u7a0b\u6b63\u5728\u76d1\u542c\u7684 80 \u548c 443 \u7aef\u53e3\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/strong><\/div>\n<pre>------------\u00a0\u901a\u8fc7\u00a0Firewalld\u00a0-\u00a0CentOS\/RHEL\u00a07\u00a0and\u00a0Fedora\u00a022+\u00a0-------------\r\n#\u00a0firewall-cmd\u00a0--permanent\u00a0--zone=public\u00a0--add-service=http\r\n#\u00a0firewall-cmd\u00a0--permanent\u00a0--zone=public\u00a0--add-service=https\r\n#\u00a0firewall-cmd\u00a0--reload<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;\u00a0\u901a\u8fc7\u00a0IPtables\u00a0&#8211;\u00a0CentOS\/RHEL\u00a06\u00a0and\u00a0Fedora\u00a022+\u00a0&#8212;&#8212;&#8212;&#8212;- #\u00a0iptables\u00a0-A\u00a0INPUT\u00a0-p\u00a0tcp\u00a0-m\u00a0tcp\u00a0&#8211;dport\u00a080\u00a0-j\u00a0ACCEPT #\u00a0iptables\u00a0-A\u00a0INPUT\u00a0-p\u00a0tcp\u00a0-m\u00a0tcp\u00a0&#8211;dport\u00a0443\u00a0-j\u00a0ACCEPT #\u00a0service\u00a0iptables\u00a0save #\u00a0service\u00a0iptables\u00a0restart<\/p>\n<div><strong>4\u3001 \u73b0\u5728\u9a8c\u8bc1 Apache \u662f\u5426\u6b63\u5e38\u5de5\u4f5c\uff0c \u6253\u5f00\u6d4f\u89c8\u5668\u5728\u5730\u5740\u680f\u4e2d\u8f93\u5165 http:\/\/server_IP\uff0c \u8f93\u5165\u4f60\u7684\u670d\u52a1\u5668 IP \u5730\u5740\uff0c \u9ed8\u8ba4 Apache2 \u9875\u9762\u5e94\u51fa\u73b0\uff0c\u5982\u4e0b\u9762\u622a\u56fe\u6240\u793a\uff1a<\/strong><\/div>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKioL1j91_XjIj7BAAKK0Ah9pnI369.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>Apache \u9ed8\u8ba4\u9875\u9762<\/p>\n<div><strong>\u6b65\u9aa4 2\uff1a \u5b89\u88c5 Apache PHP \u652f\u6301<\/strong><\/div>\n<div><strong>5\u3001 \u63a5\u4e0b\u6765\uff0c\u5b89\u88c5 PHP \u548c PHP \u6240\u9700\u6a21\u5757\u3002<\/strong><\/div>\n<pre>#\u00a0yum\u00a0install\u00a0php\u00a0php-mbstring\u00a0php-gd\u00a0php-xml\u00a0php-pear\u00a0php-fpm\u00a0php-mysql\u00a0php-pdo\u00a0php-opcache\r\n<\/pre>\n<p><strong>\u91cd\u8981: \u5047\u5982\u4f60\u60f3\u8981\u5b89\u88c5 PHP7\uff0c \u4f60\u9700\u8981\u589e\u52a0\u4ee5\u4e0b\u4ed3\u5e93\uff1aEPEL \u548c Webtactic \u624d\u53ef\u4ee5\u4f7f\u7528 yum \u5b89\u88c5 PHP7.0\uff1a<\/strong><\/p>\n<pre>-------------\u00a0Install\u00a0PHP\u00a07\u00a0in\u00a0CentOS\/RHEL\u00a0and\u00a0Fedora\u00a0-------------\r\n#\u00a0rpm\u00a0-Uvh\u00a0https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm\r\n#\u00a0rpm\u00a0-Uvh\u00a0https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm\r\n#\u00a0yum\u00a0install\u00a0php70w\u00a0php70w-opcache\u00a0php70w-mbstring\u00a0php70w-gd\u00a0php70w-xml\u00a0php70w-pear\u00a0php70w-fpm\u00a0php70w-mysql\u00a0php70w-pdo\r\n<\/pre>\n<div><strong>6\u3001 \u63a5\u4e0b\u6765\uff0c\u8981\u4ece\u6d4f\u89c8\u5668\u5f97\u5230\u5173\u4e8e PHP \u5b89\u88c5\u548c\u914d\u7f6e\u5b8c\u6574\u4fe1\u606f\uff0c\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4\u5728 Apache \u6587\u6863\u6839\u76ee\u5f55 (\/var\/www\/html) \u521b\u5efa\u4e00\u4e2a info.php \u6587\u4ef6\u3002<\/strong><\/div>\n<pre># echo \"\" &gt; \/var\/www\/html\/info.php\r\n<\/pre>\n<p>\u7136\u540e\u91cd\u542f HTTPD \u670d\u52a1\u5668 \uff0c\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165 http:\/\/server_IP\/info.php\u3002<\/p>\n<pre>#\u00a0systemctl\u00a0restart\u00a0httpd<\/pre>\n<p>\u6216 #\u00a0service\u00a0httpd\u00a0restart<\/p>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKioL1j92EDxOW3UAAKKKbk_OS8575.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>\u9a8c\u8bc1 PHP \u4fe1\u606f<\/p>\n<div><strong>\u6b65\u9aa4 3: \u5b89\u88c5\u548c\u914d\u7f6e MariaDB \u6570\u636e\u5e93<\/strong><\/div>\n<div><strong>7\u3001 \u8bf7\u77e5\u6653\uff0c Red Hat Enterprise\u00a0<a title=\"linux\" href=\"http:\/\/www.linuxprobe.com\/\" target=\"_blank\" rel=\"noopener\">Linux<\/a>\/CentOS 7.0 \u4ece\u652f\u6301 MySQL \u8f6c\u4e3a\u4e86 MariaDB \u4f5c\u4e3a\u9ed8\u8ba4\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u3002<\/strong><\/div>\n<p>\u8981\u5b89\u88c5 MariaDB \u6570\u636e\u5e93\uff0c \u4f60\u9700\u8981\u6dfb\u52a0 \u5b98\u65b9 MariaDB \u5e93 \u5230 \/etc\/yum.repos.d\/MariaDB.repo \u4e2d\uff0c\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre>[mariadb]\r\nname\u00a0=\u00a0MariaDB\r\nbaseurl\u00a0=\u00a0http:\/\/yum.mariadb.org\/10.1\/centos7-amd64\r\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\r\ngpgcheck=1\r\n<\/pre>\n<p>\u5f53\u4ed3\u5e93\u6587\u4ef6\u51c6\u5907\u597d\u540e\uff0c\u4f60\u53ef\u4ee5\u50cf\u8fd9\u6837\u5b89\u88c5 MariaDB\uff1a<\/p>\n<pre>#\u00a0yum\u00a0install\u00a0mariadb-server\u00a0mariadb<\/pre>\n<div><strong>8\u3001 \u5f53 MariaDB \u6570\u636e\u5e93\u5b89\u88c5\u5b8c\u6210\uff0c\u542f\u52a8\u6570\u636e\u5e93\u7684\u5b88\u62a4\u8fdb\u7a0b\uff0c\u540c\u65f6\u4f7f\u5b83\u80fd\u591f\u5728\u4e0b\u6b21\u542f\u52a8\u540e\u81ea\u52a8\u542f\u52a8\u3002<\/strong><\/div>\n<pre>-------------\u00a0\u901a\u8fc7\u00a0SystemD\u00a0-\u00a0CentOS\/RHEL\u00a07\u00a0and\u00a0Fedora\u00a022+\u00a0-------------\r\n#\u00a0systemctl\u00a0start\u00a0mariadb\r\n#\u00a0systemctl\u00a0enable\u00a0mariadb\r\n-------------\u00a0\u901a\u8fc7\u00a0SysVInit\u00a0-\u00a0CentOS\/RHEL\u00a06\u00a0and\u00a0Fedora\u00a0-------------\r\n#\u00a0service\u00a0mysqld\u00a0start\r\n#\u00a0chkconfig\u00a0--level\u00a035\u00a0mysqld\u00a0on\r\n<\/pre>\n<div><strong>9\u3001 \u7136\u540e\u8fd0\u884c mysql_secure_installation \u811a\u672c\u53bb\u4fdd\u62a4\u6570\u636e\u5e93(\u8bbe\u7f6e root \u5bc6\u7801\uff0c \u7981\u7528\u8fdc\u7a0b\u767b\u5f55\uff0c\u79fb\u9664\u6d4b\u8bd5\u6570\u636e\u5e93\u5e76\u79fb\u9664\u533f\u540d\u7528\u6237)\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/strong><\/div>\n<pre>#\u00a0mysql_secure_installation\r\n<\/pre>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKioL1j92I2RI_KbAAU-ur0E8h4615.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>MySQL \u5b89\u5168\u5b89\u88c5<\/p>\n<div><strong>\u6b65\u9aa4 4\uff1a \u5728 CentOS \u4e2d\u5b89\u88c5\u548c\u914d\u7f6e Drupal 8<\/strong><\/div>\n<div><strong>10\u3001 \u8fd9\u91cc\u6211\u4eec\u4f7f\u7528 wget \u547d\u4ee4 \u4e0b\u8f7d\u6700\u65b0\u7248\u672c Drupal(\u4f8b\u5982 8.2.6)\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u5b89\u88c5 wget \u548c gzip \u5305 \uff0c\u8bf7\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4\u5b89\u88c5\u5b83\u4eec\uff1a<\/strong><\/div>\n<pre>#\u00a0yum\u00a0install\u00a0wget\u00a0gzip\r\n#\u00a0wget\u00a0-c\u00a0https:\/\/ftp.drupal.org\/files\/projects\/drupal-8.2.6.tar.gz\r\n<\/pre>\n<div><strong>11\u3001 \u4e4b\u540e\uff0c\u89e3\u538b tar \u6587\u4ef6 \u5e76\u79fb\u52a8 Drupal \u76ee\u5f55\u5230 Apache \u6587\u6863\u6839\u76ee\u5f55(\/var\/www\/html)\u3002<\/strong><\/div>\n<pre>#\u00a0tar\u00a0-zxvf\u00a0drupal-8.2.6.tar.gz\r\n#\u00a0mv\u00a0drupal-8.2.6\u00a0\/var\/www\/html\/drupal\r\n<\/pre>\n<div><strong>12\u3001 \u7136\u540e\uff0c\u4f9d\u636e \/var\/www\/html\/drupal\/sites\/default \u76ee\u5f55\u4e0b\u7684\u793a\u4f8b\u8bbe\u7f6e\u6587\u4ef6 default.settings.php\uff0c\u521b\u5efa\u8bbe\u7f6e\u6587\u4ef6 settings.php\uff0c\u7136\u540e\u7ed9 Drupal \u7ad9\u70b9\u76ee\u5f55\u8bbe\u7f6e\u9002\u5f53\u6743\u9650\uff0c\u5305\u62ec\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/strong><\/div>\n<pre>#\u00a0cd\u00a0\/var\/www\/html\/drupal\/sites\/default\/\r\n#\u00a0cp\u00a0default.settings.php\u00a0settings.php\r\n#\u00a0chown\u00a0-R\u00a0apache:apache\u00a0\/var\/www\/html\/drupal\/\r\n<\/pre>\n<div><strong>13\u3001 \u66f4\u91cd\u8981\u7684\u662f\u5728 \/var\/www\/html\/drupal\/sites\/ \u76ee\u5f55\u8bbe\u7f6e SElinux \u89c4\u5219\uff0c\u5982\u4e0b:<\/strong><\/div>\n<pre>#\u00a0chcon\u00a0-R\u00a0-t\u00a0httpd_sys_content_rw_t\u00a0\/var\/www\/html\/drupal\/sites\/<\/pre>\n<div><strong>14\u3001 \u73b0\u5728\u6211\u4eec\u5fc5\u987b\u4e3a Drupal \u7ad9\u70b9\u53bb\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406\u7684\u6570\u636e\u5e93\u548c\u7528\u6237\u3002<\/strong><\/div>\n<pre>#\u00a0mysql\u00a0-u\u00a0root\u00a0-p\r\nEnter\u00a0password:\r\nMySQL\u00a0Shell\r\nWelcome\u00a0to\u00a0the\u00a0MariaDB\u00a0monitor.\u00a0\u00a0Commands\u00a0end\u00a0with\u00a0;\u00a0or\u00a0\/g.\r\nYour\u00a0MySQL\u00a0connection\u00a0id\u00a0is\u00a012\r\nServer\u00a0version:\u00a05.1.73\u00a0Source\u00a0distribution\r\nCopyright\u00a0(c)\u00a02000,\u00a02016,\u00a0Oracle,\u00a0MariaDB\u00a0Corporation\u00a0Ab\u00a0and\u00a0others.\r\nType\u00a0'help;'\u00a0or\u00a0'\/h'\u00a0for\u00a0help.\u00a0Type\u00a0'\/c'\u00a0to\u00a0clear\u00a0the\u00a0current\u00a0input\u00a0statement.\r\n**MySQL\u00a0[(none)]&gt;\u00a0create\u00a0database\u00a0drupal;**\r\nQuery\u00a0OK,\u00a01\u00a0row\u00a0affected\u00a0(0.00\u00a0sec)\r\n**MySQL\u00a0[(none)]&gt;\u00a0create\u00a0user\u00a0ravi@localhost\u00a0identified\u00a0by\u00a0'tecmint123';**\r\nQuery\u00a0OK,\u00a00\u00a0rows\u00a0affected\u00a0(0.00\u00a0sec)\r\n**MySQL\u00a0[(none)]&gt;\u00a0grant\u00a0all\u00a0on\u00a0drupal.*\u00a0to\u00a0ravi@localhost;**\r\nQuery\u00a0OK,\u00a00\u00a0rows\u00a0affected\u00a0(0.00\u00a0sec)\r\n**MySQL\u00a0[(none)]&gt;\u00a0flush\u00a0privileges;**\r\nQuery\u00a0OK,\u00a00\u00a0rows\u00a0affected\u00a0(0.00\u00a0sec)\r\n**MySQL\u00a0[(none)]&gt;\u00a0exit**\r\nBye\r\n<\/pre>\n<div><strong>15\u3001 \u6700\u540e\uff0c\u6253\u5f00\u5730\u5740: http:\/\/server_IP\/drupal\/ \u5f00\u59cb\u7f51\u7ad9\u7684\u5b89\u88c5\uff0c\u9009\u62e9\u4f60\u9996\u9009\u7684\u5b89\u88c5\u8bed\u8a00\u7136\u540e\u70b9\u51fb\u4fdd\u5b58\u4ee5\u7ee7\u7eed\u3002<\/strong><\/div>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKiom1j92OuwsVrsAACKgn87s08465.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>Drupal \u5b89\u88c5\u8bed\u8a00<\/p>\n<div><strong>16\u3001 \u4e0b\u4e00\u6b65\uff0c\u9009\u62e9\u5b89\u88c5\u914d\u7f6e\u6587\u4ef6\uff0c\u9009\u62e9 Standard(\u6807\u51c6)\uff0c\u70b9\u51fb\u4fdd\u5b58\u7ee7\u7eed\u3002<\/strong><\/div>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKioL1j92P7SvS0TAABfV-krvZ4330.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>Drupal \u5b89\u88c5\u914d\u7f6e\u6587\u4ef6<\/p>\n<div><strong>17\u3001 \u5728\u8fdb\u884c\u4e0b\u4e00\u6b65\u4e4b\u524d\u67e5\u770b\u5e76\u901a\u8fc7\u9700\u6c42\u5ba1\u67e5\u5e76\u542f\u7528 Clean URL\u3002<\/strong><\/div>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKioL1j92Q_BotgQAABu0RxYNU0004.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>\u9a8c\u8bc1 Drupal \u9700\u6c42<\/p>\n<p>\u73b0\u5728\u5728\u4f60\u7684 Apache \u914d\u7f6e\u4e0b\u542f\u7528 Clean URL \u7684 Drupal\u3002<\/p>\n<pre>#\u00a0vi\u00a0\/etc\/httpd\/conf\/httpd.conf\r\n<\/pre>\n<p>\u786e\u4fdd\u4e3a\u9ed8\u8ba4\u6839\u6587\u6863\u76ee\u5f55 \/var\/www\/html \u8bbe\u7f6e AllowOverride All\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKioL1j92SbSS_O8AABYt1PLu5I679.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>\u5728 Drupal \u4e2d\u542f\u7528 Clean URL<\/p>\n<div><strong>18\u3001 \u5f53\u4f60\u4e3a Drupal \u542f\u7528 Clean URL\uff0c\u5237\u65b0\u9875\u9762\u4ece\u4e0b\u9762\u754c\u9762\u6267\u884c\u6570\u636e\u5e93\u914d\u7f6e\uff0c\u8f93\u5165 Drupal \u7ad9\u70b9\u6570\u636e\u5e93\u540d\uff0c\u6570\u636e\u5e93\u7528\u6237\u548c\u6570\u636e\u5e93\u5bc6\u7801\u3002<\/strong><\/div>\n<p>\u5f53\u586b\u5199\u5b8c\u6240\u6709\u4fe1\u606f\u70b9\u51fb\u4fdd\u5b58\u5e76\u7ee7\u7eed\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKiom1j92TXCAtbVAABto988Zm0247.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>Drupal \u6570\u636e\u5e93\u914d\u7f6e<\/p>\n<p>\u82e5\u4e0a\u8ff0\u8bbe\u7f6e\u6b63\u786e\uff0cDrupal \u7ad9\u70b9\u5b89\u88c5\u5e94\u8be5\u5b8c\u6210\u4e86\uff0c\u5982\u4e0b\u56fe\u754c\u9762\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKiom1j92UigOjG1AABuRdD80Qg221.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>Drupal \u5b89\u88c5<\/p>\n<div><strong>19\u3001 \u63a5\u4e0b\u6765\u914d\u7f6e\u7ad9\u70b9\u4e3a\u4e0b\u9762\u7684\u8bbe\u7f6e(\u4f7f\u7528\u9002\u7528\u4f60\u7684\u60c5\u51b5\u7684\u503c):<\/strong><\/div>\n<pre>\u7ad9\u70b9\u540d\u79f0 \u2013 TecMint Drupal Site\r\n\u7ad9\u70b9\u90ae\u7bb1\u5730\u5740 \u2013 admin@tecmint.com\r\n\u7528\u6237\u540d \u2013 admin\r\n\u5bc6\u7801 \u2013 ##########\r\n\u7528\u6237\u7684\u90ae\u7bb1\u5730\u5740 \u2013 admin@tecmint.com\r\n\u9ed8\u8ba4\u56fd\u5bb6 \u2013 India\r\n\u9ed8\u8ba4\u65f6\u533a \u2013 UTC\r\n<\/pre>\n<p>\u8bbe\u7f6e\u9002\u5f53\u7684\u503c\u540e\uff0c\u70b9\u51fb\u4fdd\u5b58\u5e76\u7ee7\u7eed\u5b8c\u6210\u7ad9\u70b9\u5b89\u88c5\u8fc7\u7a0b\u3002<\/p>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKioL1j92WGjGA8MAACPMxnib8A311.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>Drupal \u7ad9\u70b9\u914d\u7f6e<\/p>\n<div><strong>20\u3001\u4e0b\u56fe\u663e\u793a\u7684\u662f\u901a\u8fc7 LAMP \u6210\u529f\u5b89\u88c5\u7684 Drupal 8 \u7ad9\u70b9\u3002<\/strong><\/div>\n<p><img decoding=\"async\" title=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" src=\"http:\/\/www.linuxprobe.com\/wp-content\/uploads\/2017\/05\/wKiom1j92W6AxYX5AABSEzAxLV0679.png\" alt=\"\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668Drupal 8\" border=\"0\" \/><\/p>\n<p>Drupal \u7ad9\u70b9\u9762\u677f<\/p>\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u70b9\u51fb\u589e\u52a0\u5185\u5bb9\uff0c\u521b\u5efa\u793a\u4f8b\u7f51\u9875\u5185\u5bb9\u3002<\/p>\n<p>\u9009\u9879: \u6709\u4e9b\u4eba<a href=\"http:\/\/www.tecmint.com\/mysqladmin-commands-for-database-administration-in-linux\/\">\u4f7f\u7528 MySQL \u547d\u4ee4\u884c\u7ba1\u7406\u6570\u636e\u5e93<\/a>\u4e0d\u8212\u670d\uff0c\u53ef\u4ee5\u4ece\u6d4f\u89c8\u5668\u754c\u9762\u00a0<a href=\"http:\/\/www.tecmint.com\/install-phpmyadmin-rhel-centos-fedora-linux\/\">\u5b89\u88c5 PHPMYAdmin \u7ba1\u7406\u6570\u636e\u5e93<\/a><\/p>\n<p>\u6d4f\u89c8 Drupal \u6587\u6863 :\u00a0<a href=\"https:\/\/www.drupal.org\/docs\/8\">https:\/\/www.drupal.org\/docs\/8<\/a><\/p>\n<p>\u5c31\u8fd9\u6837! \u5728\u8fd9\u4e2a\u6587\u7ae0\uff0c \u6211\u4eec\u5c55\u793a\u4e86\u5728 CentOS 7 \u4e0a\u5982\u4f55\u53bb\u4e0b\u8f7d\u3001\u5b89\u88c5\u548c\u4f7f\u7528\u57fa\u672c\u914d\u7f6e\u6765\u8bbe\u7f6e LAMP \u4ee5\u53ca Drupal 8\u3002 \u6b22\u8fce\u5c31\u8fd9\u4e2a\u6559\u7a0b\u63d0\u4f9b\u53cd\u9988\uff0c\u6216\u63d0\u4f9b\u7ed9\u6211\u4eec\u4e00\u4e9b\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<blockquote><p>\u539f\u6587\u6765\u81ea\uff1a<a href=\"http:\/\/os.51cto.com\/art\/201704\/538005.htm\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/os.51cto.com\/art\/201704\/538005.htm<\/a><\/p>\n<p>\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.linuxprobe.com\/rhel-centos-drupal-8.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.linuxprobe.com\/rhel-centos-drupal-8.html<\/a><\/p><\/blockquote>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728RHEL\u3001CentOS\u4e0a\u5b89\u88c5\u5efa\u7ad9\u795e\u5668D<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[117],"class_list":["post-768","post","type-post","status-publish","format-standard","hentry","tag-01-linux"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}