I suggest you use LocalDateTime instead of Date

Time processing is often encountered in the process of project development, but do you really use it right? Do you understand that static decoration SimpleDateFormat is disabled in Alibaba development manual By reading this article you will learn: Why do I need LocalDate, LocalTime, LocalDateTime [java8's new class] How to use java8's new ...

Posted by simwiz on Tue, 05 Nov 2019 10:29:45 -0800

Getting started with docker - install docker and use docker to build a PHP environment. Learn about Dockerfile

First of all, we need to install the docker environment. This is relatively simple. Take centos7 as an example. docker needs kernel version 3.10 + to install on centos7. You can check the kernel version number through uname-r. if the version does not match, please consult the data for replacement. When you are ready, use the following command t ...

Posted by beebum on Mon, 04 Nov 2019 02:47:25 -0800

Learn from scratch about the configuration environment variables of dockerdocker

In the previous section, we introduced the deployment of a complex docker process. A command option - e is involved. The purpose of this command is to pass environment variables. Next I'll show you how it works. First, create a container and set the environment variable VINCENT=vincent@qq.com docker run -d --name test1 -e VINCENT=vincent@qq.c ...

Posted by aladin13 on Sun, 03 Nov 2019 05:27:20 -0800

Learn docker docker compose -- scale from scratch

Environment preparation, the flash redis project in the previous section, starts the project: docker-compose up -d Starting flask-redis_web_1 ... done Starting flask-redis_redis_1 ... done View status: docker-compose ps Name Command State Ports ---------------------------------------- ...

Posted by [uk]stuff on Sat, 02 Nov 2019 02:54:00 -0700

Docker compose of docker three swordsmen

Blog Outline:I. Introduction to ComposeII. Installation and use of ComposeIII. preparation of. yml document I. Introduction to Compose Compose is a tool for defining and running multi container Docker applications. With compose, you can use YAML files to configure your application's services. Then, with one command, you can create and start ...

Posted by auteejay on Fri, 01 Nov 2019 06:02:58 -0700

Docker installs and configures Mysql Cluster on a server

1. Download the image of mysql5.6 from the docker hub docker pull mysql:5.6 2. Use mysql 5.6 image to run 4 mysql services, and distinguish by port number Preparatory work # Four directories are created on the local machine to store the data, logs and configuration files of four mysql services. mkdir /data/mysql cd /data/mysql mkdir mysq ...

Posted by flaab on Fri, 01 Nov 2019 01:03:30 -0700

kubernetes FAQ

Error when creating pod If the pod fails, the following two prompts will be displayed [root@master ~]#kubectl get pods NAME READY STATUS RESTARTS AGE net-test1-7c9c4b94d6-5mddl 1/1 Running 0 2m41s net-test1-7c9c4b94d6-xk8jp 0/1 ImagePullBackOff 0 5s [root@master ...

Posted by NEWDAY on Thu, 31 Oct 2019 00:06:08 -0700

Mongodb practice 1: initial (including installation)

Mongodb series Mongodb practice 1: initial (including installation) Practice 2 of Mongodb: Practice 3 of Mongodb Practice 4 of Mongodb Practice 5 of Mongodb Practice 6 of Mongodb Practice 7 of Mongodb Practice 8 of Mongodb Preface Mongodb actually wanted to write a tutorial as early as a year ago. Because of the busy work, I didn't really use ...

Posted by benmay.org on Wed, 30 Oct 2019 23:03:49 -0700

9 examples to analyze how to install dependency through Kepler cloud platform

This article introduces how to install dependency on Kepler cloud platform. What is Kplcloud? kplcloud is a lightweight PaaS platform based on Kubernetes. It manages the application through a visual interface, reduces the degree of application containerization, and reduces the time cost of application containerization. Kplcloud has been serving ...

Posted by AnsonM on Wed, 30 Oct 2019 20:34:38 -0700

Using Docker

Foundation of Docker Technology: Namespace, the basis of container isolation, to ensure that container A cannot see container B. 6 namespace: User,Mnt,Network,UTS,IPC,Pid cgroups, container resource statistics and isolation. cgroups: cpu,blkio,device,freezer,memory unionfs, typical: aufs/overlayfs, the foundation of layered image implementat ...

Posted by domino1 on Wed, 30 Oct 2019 13:18:40 -0700