How to test Linux command run time?

Liang Xu has written a Shell script in his work. This script can obtain time from four NTP servers in turn, and then set the most reliable time to system time. Because we have a high demand for time, we need to get the right time in a short time. So we need to test the running time of this script to see how long it will take from the start to t ...

Posted on Sun, 05 Apr 2020 21:35:52 -0700 by maGGot_H

Implementation of websocket proxy mechanism by NodeJS

Modules used ws http http-proxy Mainly through htt proxy to achieve transit Start websocket service var WebSocketServer = require('ws').Server; var wss = new WebSocketServer({port: 6443}); console.log(6443); wss.on('connection', function connection(ws) { ws.on('message', function incoming(message) { console.lo ...

Posted on Sun, 05 Apr 2020 19:31:53 -0700 by miltonos

What is the difference between 127.0.0.1 and localhost in connecting to mysql database

1, The difference between 127.0.0.1 and localhost in connecting mysql database 1. Connection of localhost to mysql database mysql -h localhost -uroot -p 2. The following is 127.0.0.1 connecting to mysql database mysql -h 127.0.0.1 root -p I don't know how you see the connection is different. Let me analyze ...

Posted on Sun, 05 Apr 2020 18:07:25 -0700 by elementaluk

C ා parameter transfer between programs and Args receiving parameter processing

Make a note, or leave it to someone you haven't touched but need to know. C ා there are quite a lot of parameter methods in a process, but it is not so convenient to transfer parameters between programs (of course, socket, memory sharing and other methods belong to another category, which will not be discussed here). Our C or C 񖓿 or Java and so ...

Posted on Sun, 05 Apr 2020 12:49:15 -0700 by daniel244rock

Analysis of httpserver source code in jdk

Before I wrote this blog, I checked it for a long time and found that there was no one on the whole network who wrote httpserver source code analysis So today, I will analyze the source code of http server for you. (here I will remove the source code of https part and only talk about http part. Readers interested in the implementation of https ...

Posted on Sun, 05 Apr 2020 04:37:45 -0700 by Avendium

webSocket implementation of code scanning login

Note: you must have spring 4.0 or above to integrate websocket Three interfaces are designed to realize code scanning login, two of which are HTTP protocol http interface 1 get QR code picture /** * * @Title:Get QR code picture * @Description:Comment for non-overriding methods * @author Zato-One * @date 2018 1:57:44 p.m., March 5, ...

Posted on Sun, 05 Apr 2020 03:02:06 -0700 by johnnyboy16

mysql installation and master-slave setup

Main storehouse: MySQL installation on CentOS 6.2: yum -y install mysql mysql-server mysql-devel mysql-libs After installing MySQL, change the configuration / etc/my.cnf: [mysqld] datadir=/data/mysql socket=/var/lib/mysql/mysql.sock user=mysql port=3306 # Disabling symbolic-links is recommended to prevent assorte ...

Posted on Sat, 04 Apr 2020 01:33:38 -0700 by OOP

mysql for linux Installation -- source code installation

OS environment: Official document reference address: https://dev.mysql.com/doc/refman/5.7/en/source-installation.html Download source package [root@localhost ~]# wget http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.21.tar.gz 1. Environment preparation and installation of dependency package System environment: [r ...

Posted on Fri, 03 Apr 2020 11:59:48 -0700 by shan_cool

Mysql tutorial - binary distribution installation

Environmental Science Server: alicloud server Operating system: CentOS 6.8 mysql version: 5.5 Memory: 2G download Address: https://dev.mysql.com/downloads/mysql/5.5.html deploy Download and unzip mysql 1> cd /usr/local/ 2> mkdir mysql5.5 3> rz [Select localmysql-5.5.59-linux-glibc2.12-x86_64.tar.gz] ...

Posted on Wed, 01 Apr 2020 19:09:54 -0700 by behzad

OkHttp3 source code (2) ------ Request

Chapter I OkHttp3 source code (I) -- OkHttpClient It's a great honor to receive comments and attention. Next, we will analyze another commonly used class of OkHttp3 - Request. From the name, this class knows that it is a Request. What specific Request information can be set? What is its main purpose? If you don't know much abo ...

Posted on Wed, 01 Apr 2020 14:34:34 -0700 by jesseledwards