• Using consumer + nginx upsync to realize dynamic load


    This is from the course I learned some time ago. I actually operated it. The detailed operation and instructions are as follows. If nginx encounters large traffic and high load, it may not always be convenient to modify the configuration file and restart, because restoring nginx and reloading the configuration will further increase the system […]

  • Windows 10 professional 64 bit system installs docker and uses laradock to build laravel environment


    Windows 10 professional 64 bit system installs docker and uses laradock to build laravel environment Docker official website Docker official website installation document Installation instructions Hyper-V needs to be enabled for windows 10 system The opening mode is as follows: Open control panel – programs – programs and features – turn windows features on or […]

  • Docker builds PHP environment


    Version introduction cliCommand line version apacheApache version fpmReverse proxy version alpineCompact version buster & stretchFor Debian distribution Mode of use Method 1: build based on dockerfile vim Dockerfile FROM php:7.3-fpm RUN mv “$PHP_INI_DIR/php.ini-production” “$PHP_INI_DIR/php.ini” COPY . /usr/src/myapp WORKDIR /usr/src/myapp CMD [ “php”, “./your-script.php” ] $ docker build -t my-php-app . $ docker run -it –rm […]

  • Dependency injection container — PHP version of the Phalcon container


    The PHP version of Phalcon relies on the injection container Environmental requirements php7.0+ install composer require fanqingxuan/di If you want to install the PHP extension container, please refer todi-extThe usage is as like as two peas. Basic Usage require_once ‘vendor/autoload.php’; use JsonDi\Di; class Test { } $di = new Di; //Injection mode $di->set(‘test’, ‘Test’); $di->set(“test2”, […]

  • You asked me: do you have to use containers for the perfect implementation of Devops?


    BoCloud Bo Yun WeChat official account [you ask me answer] small column, will collect and organize the problems and problems encountered by IT in the construction of enterprises, and make targeted answers by the Bo Yun products and technology team. Every Friday, you can issue the columns for your IT, and hope to provide ideas […]

  • Talk about spring for Kafka’s encapsulation and integration of producer


    order This article mainly analyzes the encapsulation and integration of spring for Apache Kafka to the native Kafka client producer. Producer factory spring-kafka-1.2.3.RELEASE-sources.jar!/org/springframework/kafka/core/DefaultKafkaProducerFactory.java public class DefaultKafkaProducerFactory<K, V> implements ProducerFactory<K, V>, Lifecycle, DisposableBean { @Override public void destroy() throws Exception { //NOSONAR CloseSafeProducer<K, V> producer = this.producer; this.producer = null; if (producer != null) { producer.delegate.close(this.physicalCloseTimeout, […]

  • Mpaas wkwebview network interception FAQ


    Introduction:Mpaas wkwebview network interception FAQ 1. Background The native wkwebview executes the network request in a process independent of the app process, and the request data does not pass through the main process. Therefore, the request cannot be intercepted by directly using nsurlprotocol on wkwebview. However, since the offline packet mechanism of mpaas strongly depends […]

  • Tomcat critical: context [/ Chinamobile] failed to start due to previous error


    environment Linux/Ubuntu20.04LTS IntelliJ IDEA Community Editon 2021.1 java-11-openjdk-amd64 apache-tomcat-7.0.109 SSH Framework (struts 2 + Spring + Hibernate 3) abnormal Critical: one or more filters failed to start. Full details will be found in the appropriate container log file July 8, 2021 9:29:09 PM org.apache.catalina.core.standardcontext startinternal Critical: context [/ Chinamobile] failed to start due to a […]

  • Spring framework


    What is spring? Spring is a lightweight open source framework with IOC (inversion of control) and AOP (aspect oriented programming) as the core.The essence of spring is to manage objects in software, that is, to create objects and maintain the relationship between objects. Advantages of spring 1) It is convenient to decouple and simplify development […]

  • Run Minio — springboot actual e-commerce project mall4j in docker


    Run Minio in docker. Springboot e-commerce project mall4j( https://gitee.com/gz-yami/mall4j ) Minio requires a persistent volume to store configuration and application data. However, for testing purposes only, you can simply pass a directory (in the following example/ data)Start Minio. This directory will be created in the container‘s file system when the container starts, but all data […]

  • Alibaba open source container image acceleration technology


    Introduction:Recently, Alibaba has opened source its cloud native container image acceleration technology. Compared with the traditional layered tar package file format, its overlay BD image format realizes network-based on-demand reading, so that the container can be started quickly. Author Chen BoSource|Alibaba cloud official account Recently, Alibaba opened itsCloud native container image acceleration technology, its overlay […]

  • Containerization | implementation scheme of new generation MySQL high availability architecture based on kubernetes


    Author: Gao riyao, senior MySQL kernel R & D This article comes from the author’s speech “implementation scheme of new generation MySQL high availability architecture based on kubernetes” at kubesphere & Friends 2021 Hangzhou station. This is the third article in the MySQL container series, which mainly introduces the design idea of MySQL container helm […]