One linux command per day: ss command

ss is the abbreviation of Socket Statistics. As the name implies, the ss command can be used to obtain socket statistics, which can display content similar to netstat. But the advantage of ss is that it can display more detailed information about TCP and connection status, and it is faster and more efficient than netstat. When the number of s ...

Posted by phpfreak101 on Wed, 27 Mar 2019 11:36:29 -0700

Supervisor's never-to-die process

brief introduction Supervisor is a C/S system. It can control the process on UNIX-like system. It is written by python. It provides a lot of functions to manage the process. install sudo pip install supervisor 1 To configure After installing the supervisor, you can use the "echo_supervisord_conf" command to generate the ...

Posted by backinblack on Tue, 26 Mar 2019 19:42:28 -0700

File Operation, File Search

I. File Operation 1. The Concept of Documentation Files are a basic form of data storage in computers. Each file is represented by a file path and file name. When accessing the file, you only need to know the path of the file and the full name of the file. In different operating system environments, the representation of file path is differe ...

Posted by kendall on Tue, 26 Mar 2019 13:12:30 -0700

JAVA project released to docker

Step 1: Open docker remote API port My file is centos7 system. The file to be modified is / usr / lib / system D / system / docker. service file. vim /usr/lib/systemd/system/docker.service The following is my configuration file, which needs to be added in line 13-17: ExecStart=/usr/bin/dockerd followed by - H tcp://0.0.0:2375-H unix://var/run/ ...

Posted by nelsok on Tue, 26 Mar 2019 04:27:28 -0700

Analysis of Android Sensor Framework

The original phase heart rate sensor is taken as an example for analysis. The original heart rate sensor drives pixart_hc_driver.c. It mainly collects register data into the structure of _ppg_mems_data, and then reports the event through the input subsystem. input_report_abs(ofndata.pah8001_input_dev, ABS_X, *(uint32_ ...

Posted by luckybob on Tue, 26 Mar 2019 02:54:29 -0700

MySQL Note 5 Date and Time Function

MySQL Note 5 Date and Time Function MySQL Note 5 Date and Time Function Get the function of the current date and the function of the current time A function to get the current date and time Getting UNXI timestamp function Functions that return UTC date and UTC time Get month functions MONTHdate and MONTTHNAMEdate Get weekly functions D ...

Posted by MrXander on Sat, 23 Mar 2019 18:33:53 -0700

KSCrash Source Code Analysis

0x01 installation process 1.1 Bricks and Jades KSCrashInstallationStandard* installation = [KSCrashInstallationStandard sharedInstance]; installation.url = [NSURL URLWithString:@"http://put.your.url.here"]; [installation install]; The above code is the installation code of KSCrash, [KSCrash Installation Standard init] the underlying layer assig ...

Posted by fatal on Wed, 20 Mar 2019 20:39:27 -0700

Different nginx error reporting "Primary script unknown"

Last night, I forgot to make any changes to the development environment, which led to nginx prompting "Primary script unknown" when debugging the interface today. In most cases, this is a very simple problem: script_filename error in nginx configuration. However, I checked my nginx configuration and found nothing wrong. location ~ \.p ...

Posted by philip@hux.co.za on Mon, 18 Mar 2019 09:03:27 -0700

C - A Plug for UNIX (Network Flow)

C - A Plug for UNIXPOJ - 1087 Title: Give you some plugs and sockets. Plug and socket have different models, only the same model can match. Now there are k converters, each converter has infinite, but not necessarily all converter models. The function of the converter is to convert one plug into another plug. Now please at ...

Posted by Anti-Moronic on Sun, 17 Mar 2019 04:03:26 -0700

Go36-44,45-File Operation (os.File)

os package Through the os package, you can have the ability to manipulate the computer operating system. This code package provides platform-independent API s. Whether it is Linux, macOS, Windows, FreeBSD, OpenBSD, Plan9, os packages can provide a unified use interface. In this way, different operating systems can be manipulated in the same wa ...

Posted by Rabioza123 on Fri, 08 Feb 2019 05:51:16 -0800