<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ``` #拉取最新的centos鏡像 docker pull centos #創建env容器并且啟用systemd(可以使用systemd) docker run -d --privileged=true --name env centos /usr/sbin/init #進入容器 docker exec -it env /bin/bash #設置時區 timedatectl set-timezone Asia/Shanghai #更新軟件包 yum update -y #安裝epel源 yum install -y epel-release #安裝wget等 yum install -y wget #創建軟件包存放目錄 mkdir ~/soft-source #安裝nginx cd ~/soft-source wget http://nginx.org/download/nginx-1.15.5.tar.gz tar -zxf nginx-1.15.5.tar.gz cd nginx-1.15.5 yum install -y gcc pcre pcre-devel openssl openssl-devel ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_realip_module --with-pcre make && make install #修改nginx默認配置 mkdir /usr/local/nginx/conf/vhost echo '' > /usr/local/nginx/conf/nginx.conf vi /usr/local/nginx/conf/nginx.conf --- worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; server_tokens off; gzip on; include vhost/*.conf; } --- #安裝nginx服務 vi /usr/lib/systemd/system/nginx.service --- [Unit] Description=The NGINX HTTP and reverse proxy server After=syslog.target network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/usr/local/nginx/logs/nginx.pid ExecStartPre=/usr/local/nginx/sbin/nginx -t ExecStart=/usr/local/nginx/sbin/nginx ExecReload=/usr/local/nginx/sbin/nginx -s reload ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target --- systemctl enable nginx #安裝php cd ~/soft-source wget http://cn2.php.net/distributions/php-7.2.11.tar.gz tar -zxf php-7.2.11.tar.gz cd php-7.2.11 yum install -y gcc gcc-c++ systemd-devel libxml2 libxml2-devel curl curl-devel bzip2 bzip2-devel libjpeg-turbo libjpeg-turbo-devel libpng libpng-devel freetype freetype-devel libicu libicu-devel openssl openssl-devel pcre pcre-devel ./configure --prefix=/usr/local/php --with-bz2 --enable-zip --with-zlib --with-mhash --with-openssl --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-calendar --with-gettext --enable-mbstring --enable-exif --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-bcmath --with-curl --enable-ftp --enable-sockets --enable-libxml --enable-fpm --enable-pcntl --enable-soap --enable-opcache --with-xmlrpc --enable-intl --enable-shmop --with-fpm-systemd make && make install cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf cp ~/soft-source/php-7.2.11/sapi/fpm/php-fpm.service /usr/lib/systemd/system/php-fpm.service cp ~/soft-source/php-7.2.11/php.ini-production /usr/local/php/lib/php.ini systemctl enable php-fpm #安裝php擴展 yum install -y autoconf /usr/local/php/bin/pecl channel-update pecl.php.net /usr/local/php/bin/pecl install APCu yum install -y libmemcached-devel /usr/local/php/bin/pecl install memcached /usr/local/php/bin/pecl install igbinary /usr/local/php/bin/pecl install redis yum install -y hiredis-devel libnghttp2-devel /usr/local/php/bin/pecl install swoole yum install -y GraphicsMagick-devel /usr/local/php/bin/pecl install channel://pecl.php.net/gmagick-2.0.5RC1 /usr/local/php/bin/pecl install yaf /usr/local/php/bin/pecl install mongodb vi /usr/local/php/lib/php.ini --- extension=apcu extension=memcached extension=igbinary extension=redis extension=swoole extension=gmagick extension=yaf extension=mongodb --- #安裝mysql cd ~/soft-source/ wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm yum localinstall mysql80-community-release-el7-1.noarch.rpm yum install -y mysql-community-server systemctl enable mysqld systemctl start mysqld grep 'temporary password' /var/log/mysqld.log mysql -uroot -p --- mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '!Aa123456'; mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '!Aa123456'; --- vi /etc/my.cnf --- default-authentication-plugin=mysql_native_password --- systemctl restart mysqld mysql -uroot -p --- mysql> CREATE USER 'root'@'%' IDENTIFIED BY '!Aa123456'; mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; --- #安裝redis yum install -y redis systemctl enable redis more /etc/redis.conf #安裝memcached yum install -y memcached systemctl enable memcached more /etc/sysconfig/memcached #安裝momgodb vi /etc/yum.repos.d/mongodb-org-4.2.repo --- [mongodb-org-4.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc --- yum install -y mongodb-org systemctl enable mongod more /etc/mongod.conf ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看