摘要:ouddn.com/mysql57-community-release-el7-11.noarch.rpm yum localinstall -y mysql57-community-release-el7-11.noarch.rpm tar -zxf apr-1.6.3.tar.gz tar -zxf apr-util-1.6.1.tar.gz tar -zxf httpd-2.4.29.tar.gz tar -zxf pcre-8.41.tar.gz tar -zxf php-5.6.33.tar.g
ouddn.com/mysql57-community-release-el7-11.noarch.rpm yum localinstall -y mysql57-community-release-el7-11.noarch.rpm tar -zxf apr-1.6.3.tar.gz tar -zxf apr-util-1.6.1.tar.gz tar -zxf httpd-2.4.29.tar.gz tar -zxf pcre-8.41.tar.gz tar -zxf php-5.6.33.tar.gz tar -zxf git-2.9.5.tar.gz # 安装依赖 yum install -y gcc
gcc-c++ expat expat-devel libxml2 libxml2-devel openssl openssl-devel libcurl libcurl-devel nginx perl perl-devel gd gd-devel libmcrypt libmcrypt-devel bzip2 bzip2-devel unzip autoconf mysql-community-server cd /root/pcre-8.41 ./configure --prefix=/usr/local/pcre make && make install cd /root/apr-1.6.3 ./configure --prefix=/usr/local/apr make && make install cd /root/apr-util-1.6.1 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make && make install cd /root/git-2.9.5 ./configure --prefix=/usr/local/git make && make install cp /usr/local/git/bin/git /usr/local/bin/git cd /root/httpd-2.4.29 ./configure --prefix=/usr/local/apache --enable-mods-shared=all --with-apr=/usr/local/apr --with-mpm=event --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre make && make install cp /usr/local/apache/bin/apachectl /usr/local/bin/httpd # 安装php cd /root/php-5.6.33 ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-config-file-path=/usr/local/php/etc --with-openssl=shared --with-curl=shared --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-mysqlnd --enable-mbstring --with-gd=shared --with-mcrypt=shared --enable-zip --with-bz2=shared make && make install cp /root/php-5.6.33/php.ini-development /usr/local/php/etc/php.ini cp /usr/local/php/bin/php /usr/local/bin/php cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf cp /usr/local/php/sbin/php-fpm /usr/local/bin/php-fpm cd mv composer.phar /usr/local/bin/composer chmod 755 /usr/local/bin/composer composer config -g repo.packagist composer https://packagist.phpcomposer.com yum install -y mysql-community-server # grep "password" /var/log/mysqld.log 查找密码 # set password for root@localhost = password(\'123456\') 重置密码 # flush privileges # 添加Apache对PHP的支持 # echo "AddType application/x-httpd-php .php" >> /usr/local/apache/conf/httpd.conf # 加载PHP扩展 # extension=openssl.so # extension=gd.so # extension=curl.so # extension=mcrypt.so # extension=bz2.so # nginx + laravel # location / { # index index.php index.html index.htm; # try_files $uri $uri/ /index.php?$query_string; # } # location ~ .php$ { # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /wwwroot/YouBaoAdmin/public/$fastcgi_script_name; # include fastcgi_params; # } # 虚拟主机 # server { # listen 80; # server_name admin1.njchi.cn; # location / { # index index.html; # root /wwwroot/YouBaoAdmin/resources; # } # error_page 404 /404.html; # location = /40x.html { # } # error_page 500 502 503 504 /50x.html; # location = /50x.html { # } # }
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28