• Nginx solves cross domain


    Original linkhttps://segmentfault.com/a/11… What is cross domain agreement + domain name + portOne difference is considered cross domain Why cross domain Homology policy is a kind of agreement. It is the most core and basic security function of the browser. Without homology policy, the browser is vulnerable to attack. Solution Scenario 1 Assuming that the website […]

  • Install Jenkins for Ubuntu 16.04


    Install, start, and configure Jenkins services wget -q -O – http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add – sudo sh -c ‘echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list’ sudo apt-get update sudo apt-get install jenkins systemctl status jenkins.service ● jenkins.service – LSB: Start Jenkins at boot time Loaded: loaded (/etc/init.d/jenkins; bad; vendor preset: enabled)Active: failed (result: exit code) since – 2017-09-18 20:02:02 CST; 5min ago Docs: […]

  • Translate Chapter 3 of JavaScript everywhere web application with node and express (^ ^)


    Translate Chapter 3 of JavaScript everywhere web application with node and express (^ ^) Write at the beginning Hello, I’m Mao Xiaoyou, a front-end development engineer. Is translating an English technical book. In order to improve everyone’s reading experience, the structure and content of the sentence are slightly adjusted. If you find any flaws in […]

  • Nginx configuration (windows and Linux)


    Windows Edition Baidu download nginx / windosw and unzip it Nginx command:Start command start nginxRestart command nginx – s reloadStop command nginx – s stop Profile configuration #Image server proxy image.jt.com: 80 server { listen 80; server_name image.jt.com; location / { #Turn to directory root D:/JT-SOFT/images; } } Listen indicates the listening port, server_ Name […]

  • Construction of docker swarm cluster


    @[TOC] Environment introduction My two virtual hosts The host name CentOS IP is the management nodeThe host name node1 IP is a normal node The system is CentOS 7 64 bit Install docker Install docker in two hosts respectively curl -sSL https://get.daocloud.io/docker | sh Power on service docker start systemctl enable docker Execute […]

  • Tomcat port address is already in use (bind failed)


    environment Linux/Ubuntu20.04LTS IntelliJ IDEA Community Editon 2021.1 java-11-openjdk-amd64 apache-tomcat-7.0.109 abnormal Tomcat service port is occupied! Critical: failed to initialize end point associated with protocolhandler [“http-bio-8087”] Java.net.bindexception: address already in use (bind failed) < null >: 8087 July 14, 2021 9:45:36 PM org.apache.catalina.core.standardserver await Critical: standardserver.await: create [localhost: 8005]: reason The port address is already in […]

  • The golang gin framework implements HTTPS access


    Cause: When using Facebook for three-party login, the effective OAuth jump URI only supports HTTPS access, and HTTPS is required for local testing Introduction to mkcertMkcert is a small tool written in go language to generate local self signed certificates. It has a series of convenient features such as cross platform, simple use, support for […]

  • Use docker to set up Minio file storage


    Create a directory on the management node host to store files and configuration files mkdir -p /home/data/minio/data mkdir -p /home/data/minio/config chmod 777 /home/data/minio/data External access is required to create a container and upload files. Here, we mapped host port 9001 to container port 9000 docker run -d –restart always \ -p 9001:9000 –name minio \ […]

  • Node series – 008 – shelljs


    One directory What’s the difference between a non tossing front end and a salted fish catalogue One directory II. Preface Solution of bash script written by three nodes Four programming front V. close the port Vi. delete files / folders VII. Git operation 7.1 git instructions commonly used in work 7.2 switching branches VIII. Summary […]

  • Quickly understand the service mesh microservice architecture and realize grpc communication between services


    In the previous article, we introduced how to play the service mesh microservice architecture step by step based on kubernetes and istio! In this article, we demonstrate a case that is very close to the actual combat. Here we review the structure of the case, as shown in the figure below: This case demonstrates the […]

  • Use assh to manage SSH config


    I often can’t connect directly to AWS or Oracle machines in China, but the transfer through domestic VPS is very fast, which means that every time I connect to foreign machines, I must log in to Tencent cloud machines, and then connect to Tencent cloud machines. It’s a little troublesome, But I saw someone sharing […]

  • CentOS 8.2 deploying CouchDB 3.3 database


    CouchDBIs an open source, document oriented NoSQL database. In this article, you will learn how to install Apache CouchDB on CentOS 8. catalogue What is Apache CouchDB? Environmental specifications: Step 1: update CentOS 8 package Step 2: install EPEL Yum repository on CentOS 8 Step 3: install CouchDB Yum repository on CentOS 8 Step 4: […]