Tag:nginx

  • Centos7 quickly build LNMP (nginx + MySQL + PHP)

    Time:2022-5-3

    Centos7 quickly build LNMP (nginx + MySQL + PHP) 1. Briefly introduce Yum before installation 2. Nginx installation 3. MySQL installation (install MySQL 8 directly here) 3.1. Clean up the old version of MySQL before installation 3.2. Install MySQL 3.3. Configuration after MySQL installation 4. PHP compilation and installation 1. Briefly introduce Yum before installation […]

  • Centos-7 nginx, PHP, MySQL installation

    Time:2022-5-2

    1、 Install nginx 1. Install make Make commandIt is an engineering compilation tool of GNU, which is used to compile many interrelated source codes and ask price, so as to realize engineering management and improve development efficiency. # yum -y install gcc automake autoconf libtool make 2. Installation G++ # yum install gcc gcc-c++ 3. […]

  • Complete centos7 in 30 minutes 6. Latest production environment configuration (git2.35.1 Python 3.10.2 golang1.18 docker nginx)

    Time:2022-5-2

    0. Server preparation & target Before that, the server mainly uses Ubuntu LTS, and the RH system has not been tried. It happens to be tested with an Alibaba cloud server that is about to expire. After running for 2 months to test the stability, take notes and install another one, it will be faster […]

  • One nginx rewrite redirect 403 error elimination

    Time:2022-5-1

    One nginx rewrite redirect 403 error eliminationFor the following two URLs, the first one (without the word. PHP) is normal, and the second one will display 403 error, but return the content http://api.cn/type/item_get/? http://api.cn/type/api_call.php?api_name=item_get Consistent with the first one, some clients will judge whether the network request is successful according to the HTTP status, so […]

  • LNMP build personal blog

    Time:2022-5-1

    Build personal blog on LNMP platform erection sequence Installing nginx Configure nginx official Yum source        #vim /etc/yum.repos.d/nginx.repo        [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true Save exit Installing nginx               #yum install -y nginx Install MySQL Configure Yum source        #wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm        #yum localinstall -y mysql-community-release-el7-5.noarch.rpm Install MySQL        yum install […]

  • Docker deployment PHP

    Time:2022-4-29

    nginx FROM centos:7 MAINTAINER “jlin <[email protected]>” RUN yum -y install wget proc-devel gcc make openssl-devel RUN wget http://nginx.org/download/nginx-1.9.7.tar.gz RUN tar zxf nginx-1.9.7.tar.gz WORKDIR nginx-1.9.7 RUN ./configure –prefix=/usr/local/nginx && make && make install EXPOSE 80 EXPOSE 443 RUN echo “daemon off;” >> /usr/local/nginx/conf/nginx.conf WORKDIR /root/nginx ADD jlin.sh /jlin.sh RUN chmod 775 /jlin.sh CMD /jlin.sh [[email protected] ~]# […]

  • LNMP installation

    Time:2022-4-28

    LNMP nginx1.6.3 configuration file mysql 5.7 PHP 5.3.27 (I’m so angry without PHP FPM) 1. Function library 2. Get & & Configuration Troubleshooting ini php-fpm.conf mysqli_coonect LNMP latest configuration nginx1.6.3 nginx configuration file nginx.conf.default mysql 5.7 MySQL official website Detailed installation PHP 5.3.27 (I’m so angry without PHP FPM) PHP has released the latest stable […]

  • Tencent cloud lightweight application server configuration

    Time:2022-4-26

    There are many application templates in the server. These applications should be able to run when installed, which is very convenient, but there are many holes in configuring HTTPS. Please record it Take WordPress Tencent cloud plug-in version as an example, the application information is as follows SSL certificate installation Click nginx server certificate installation […]

  • Nginx displays 504 gateway time out related settings

    Time:2022-4-26

    Nginx configuration nginx. In conf, set the following parameters to increase the timeout fastcgi_connect_timeoutFastcgi connection timeout, 60 seconds by default fastcgi_send_timeoutThe timeout of the process when nginx process sends a request to fastcgi process. The default value is 60 seconds fastcgi_read_timeoutThe timeout for the fastcgi process to send the output process to the nginx process. […]

  • Installing nginx under Windows

    Time:2022-4-25

    1、 Introduction Nginx is a powerful high-performance web and reverse proxy service. It is also a lightweight web server. It can be deployed as an independent server. It is widely used, especially when the front and back ends are separated. In the development process, we often need to use nginx as a web server under […]

  • Build LNMP platform and NFS file sharing to deploy wordpress blog

    Time:2022-4-25

    Build LNMP platform and deploy wordpress blog Install LNMP platform Installing nginx Install PHP Build MySQL data Build NFS Install LNMP platform Installing nginx 1) Download official source [[email protected] ~]# vim /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true 2) Download nginx from official source yum -y install nginx 3) Edit nginx virtual […]

  • Configuration of nginx after downloading using WGet (installation and configuration of nginx 3)

    Time:2022-4-24

    Configuration of nginx 1. Create users for nginx running: /usr/sbin/groupadd www /usr/sbin/useradd -g www www 2. Reconfigure.ngx Conf, set / usr / local / webserver / nginx / conf / nginx Replace conf with the following user www www; worker_ processes 2; # The setting value is consistent with the number of CPU cores errorlog […]