docker creates lnmp image

Docker is a lightweight virtualization technology, and lnmp is a powerful, open-source web running environment, so here's a demonstration of using Docker to build an lnmp image. PS: To maintain lightweight and scalable performance, Docker encourages us to "one process per person"Container"means don't integrate too many functions ...

Added by madrazel on Fri, 17 Jul 2020 17:54:47 +0300

fetch pass-by instance code (back-end PHP)

FormData Passes Free Format Data to Backend The first is the js code: let formData=new FormData(); let headres = { method: 'post', credentials: 'include', headers: {}, body: formData } fetch("The address of your backend",headres) .then((respon ...

Added by sgalonska on Fri, 17 Jul 2020 17:48:21 +0300

Single source shortest path (c language)

Ideas: 1. Select a point V at will and record the distance from the starting point v to all points with the distance array (2) Then in the distance array, find the shortest distance from the starting point v to which point, with this point u as the intermediate, find[u]=1, prove that this point already exists ...

Added by soulrazer on Thu, 16 Jul 2020 19:16:28 +0300

(React-Native Learning Sixth) react-native-router-flux component learning

It feels good to see a video of this component on youtube. This is a navigation component, navigation is an important part of the app github address The use of direct jump is very intuitive and simple.Look at the code and make a simple comment //index.js import React, { Component } from 'react'; import { Router, Scene } from 'react- ...

Added by GrecoClub on Thu, 16 Jul 2020 19:14:33 +0300

Maven Nexus Private Library Setup with idea Development Configuration

1. Set up Nexus private server Environment preparation: OS:        [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) JDK Installation Download address:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html        tar -xzf jdk1.8.0_121.tar.gz mkdir /usr/j ...

Added by alonso on Wed, 15 Jul 2020 19:21:43 +0300

android turns on Https two-way authentication

Last article was written How to turn on https one-way authentication on Android The method of one-way authentication is that the client authenticates the identity of the server.Let's discuss how the server side authenticates the client. Many people on the Internet say that Android only knows about certificates in BKS f ...

Added by hessian on Wed, 15 Jul 2020 18:28:14 +0300

android exceptions collect error information and save it to the crash folder

Save the log file to the sdcard, directory: crash folder under the sdcard root directory First, set permissions, no permissions to the final effect <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>Two classes must be crea ...

Added by r_a_s_robin on Wed, 15 Jul 2020 18:08:46 +0300

C#Weighting ListBox

First, for an item contained in a listBox, assume that the listBox has duplicate data and can use this function to remove duplicate data ///<summary> // listBox has its own weighting /// </summary> /// <param name="listBox">Weight Removal Required ListBox</param> ...

Added by westair on Wed, 15 Jul 2020 18:00:30 +0300

Solution with empty list in foreach tag in Mybatis

In the previous article Optimizing Mybatis in-query through interceptor Interceptor In, we have resolved the case of an empty in() list in the mybatis query. However, because the list in the foreach tag is empty, not only is an in() empty list, but another common situation occurs when data is inserted in batches, as follows: INSERT INTO table1( ...

Added by noirsith on Mon, 13 Jul 2020 18:31:17 +0300

docker builds redis cluster

docker builds redis cluster 1. Download the redis image docker pull redis 2. Prepare the configuration fileRedis.conf mkdir /home/docker/redis/ wget https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf -O /home/docker/redis/redis.conf cd /home/docker/redis/ sed -i 's/# slaveof <masterip> <masterport>/slaveof red ...

Added by lc on Mon, 13 Jul 2020 17:48:21 +0300