{"id":7,"date":"2021-01-04T12:00:38","date_gmt":"2021-01-04T04:00:38","guid":{"rendered":"https:\/\/explause.com\/?p=7"},"modified":"2021-04-12T14:33:52","modified_gmt":"2021-04-12T06:33:52","slug":"centos8%e7%bc%96%e8%af%91php8","status":"publish","type":"post","link":"https:\/\/devdoge.org\/?p=7","title":{"rendered":"CentOS8\u7f16\u8bd1PHP8"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u90fdCentOS8\u4e86\uff0c\u5b98\u65b9\u6e90\u81ea\u5e26\u7684php\u8fd8\u662f7.2\u7248\u672c\uff0c\u88c5\u4e2aphp8\u597d\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u4e0b\u8f7d\u89e3\u538b\u5e76\u8fdb\u5165php8\u7684\u6e90\u7801\u76ee\u5f55\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/www.php.net\/distributions\/php-8.0.3.tar.gz\ntar xzf php-8.0.3.tar.gz\ncd php-8.0.3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u63d0\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-bash: wget: command not found<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c31\u662f\u6ca1\u6709\u5b89\u88c5wget\uff0c\u5148\u5b89\u88c5\u518d\u6267\u884c\u4e0a\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install wget -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u5de5\u5177\u5305\u548c\u4f9d\u8d56\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install epel-release -y\nyum groupinstall \"Development tools\" -y\nyum install dnf-plugins-core\nyum config-manager --set-enabled powertools\nyum install libxml2-devel sqlite-devel oniguruma-devel \\\n            httpd-devel mysql-devel enchant-devel \\\n            libffi-devel libwebp-devel libXpm-devel \\\n            libiodbc-devel libsodium-devel libxslt-devel \\\n            libcurl-devel libpng-devel libjpeg-devel \\\n            freetype-devel libzip-devel \\\n            systemtap-sdt-devel libicu-devel systemd-devel -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f16\u8bd1\u914d\u7f6e\uff1a\u628a\u80fd\u5f00\u542f\u7684\u529f\u80fd\u90fd\u6253\u5f00\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/configure --with-apxs2=\/usr\/bin\/apxs \\\n            --with-mysqli=\/usr\/bin\/mysql_config \\\n            --with-mysql-sock=\/var\/lib\/mysql\/mysql.sock \\\n            --with-openssl \\\n            --with-zlib \\\n            --with-curl \\\n            --with-enchant \\\n            --with-ffi \\\n            --with-webp \\\n            --with-jpeg \\\n            --with-xpm \\\n            --with-freetype \\\n            --with-valgrind \\\n            --with-kerberos \\\n            --with-imap-ssl \\\n            --with-unixODBC \\\n            --with-zip \\\n            --with-pcre-jit \\\n            --with-mhash \\\n            --with-imap-ssl \\\n            --with-iodbc \\\n            --with-sodium \\\n            --with-xsl \\\n            --enable-exif \\\n            --enable-gd \\\n            --enable-gd-jis-conv \\\n            --enable-zts \\\n            --enable-mbstring \\\n            --enable-sigchild \\\n            --enable-dtrace \\\n            --enable-sockets \\\n            --enable-calendar \\\n            --enable-bcmath \\\n            --enable-intl \\\n            --enable-pcntl \\\n            --enable-shmop \\\n            --enable-soap \\\n            --enable-fpm \\\n            --enable-ftp \\\n            --enable-sysvmsg \\\n            --enable-sysvsem \\\n            --enable-sysvshm \\\n            --with-fpm-systemd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f16\u8bd1\u5e76\u5b89\u88c5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make &amp;&amp; make install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u914d\u7f6e\u6587\u4ef6\u590d\u5236\u5230php\u7684\u5b89\u88c5\u76ee\u5f55\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp php.ini-production \/usr\/local\/lib\/php.ini<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-verse\">\u6ce8\u610f\u6709\u4e24\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u4e00\u4e2a\u662f\u5f00\u53d1\u7248\u4e00\u4e2a\u662f\u53ef\u4ee5\u6295\u5165\u751f\u4ea7\u7684\u7248\u672c\u3002\n\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u81ea\u52a8\u5b89\u88c5apache httpd\u670d\u52a1\u5668\u3002<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f16\u8bd1\u6240\u9700\u7684\u4f9d\u8d56\u548c\u914d\u7f6e\u90fd\u6574\u7406\u597d\u4e86\uff0c\u590d\u5236\u7c98\u8d34\u5373\u7528\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[10,16,21],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-c8","tag-centos8","tag-php","tag-21"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":2,"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/devdoge.org\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/162"}],"wp:attachment":[{"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devdoge.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}