Understanding Zombie Processes under linux-Orphan Processes-Test Samples and Sources for Daemons

Test Code #define _GNU_SOURCE #include<sched.h> #include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<stdint.h> #include<sys/wait.h> #include<sys/types.h> typedef void (*spawn_proc_pt)(void*data); static void work_process_cycle(void*data);//Function of work static void start_processes ...

Posted by bogins on Thu, 30 Sep 2021 10:16:29 -0700

Shell basic syntax

1, Variable 1. When defining a variable, the variable name does not add a dollar sign 2. Naming can only use English letters, numbers and underscores, and the first character cannot start with a number. 3. There can be no space in the middle, and underline () can be used.   4. Punctuation cannot be used.     & ...

Posted by Quest on Wed, 29 Sep 2021 15:42:31 -0700

Linux learning notes

1.1 introduction to Linux Unix is a powerful multi-user and multi task operating system developed in Bell Labs of at & T in 1969. The trademark right of UNIX is owned by The Open Group. UNIX operating system is commercial and charged, and the price is a little more expensive than Microsoft Windows. Linux is a UNIX like operating system ...

Posted by mrcaraco on Wed, 29 Sep 2021 14:59:13 -0700

Write C + + server by hand (37): tear code by hand -- asynchronous connect, the cornerstone of high concurrency multithreading technology [10000 words long text]

Navigation for this series of articles:   Write C + + server by hand (0): column - Summary navigation [updating]  The default blocking mode is used when connect is created, but in reality, the connection speed may be slow due to poor network, intermediate proxy server, gateway and other factors. At this time, in blocking mode, the pr ...

Posted by pkSML on Wed, 29 Sep 2021 11:52:43 -0700

Use of docker command

1,Docker Docker is an open source application container engine, which is based on Go language and complies with Apache 2.0 protocol.Docker allows developers to package their applications and dependent packages into a lightweight and portable container, and then publish them to any popular Linux On the machine, virtualization can also be real ...

Posted by AbraCadaver on Wed, 29 Sep 2021 11:29:51 -0700

Set up a Linux server on your mobile phone

Install SSHD Install sshd apt update && apt upgrade # Update Terminal Package apt install openssh Start sshd sshd Set sshd self-start echo "sshd" >> ~/.bashrc Set User Name Password Get the username, I have the username u0_a173 here whoami u0_a173 Set Password passwd Remote landing ssh -p 8022 u0_a173@192.168.1 ...

Posted by Rusnoff on Wed, 29 Sep 2021 09:25:18 -0700

[OpenStack (Train version) installation and deployment] win7 system installation, qcow2 format image production

This article is published by the public account [development pigeon]! Welcome to pay attention!!! Old rules - sister town building: 1. Production of win7 system qcow2 format image (1) Overview         For image acquisition in qcow2 format, you can directly download the corresponding system image from the netw ...

Posted by timolein on Tue, 28 Sep 2021 19:39:43 -0700

[NetworkManager] NM service listens to IPV6 addresses of the whole network

1 problem phenomenon When IPV6 is enabled, the NetworkManager service will listen to all 0 addresses by default. Here 58 is not a port, but a protocol number, indicating icmpv6. The phenomenon is as follows: # netstat -anp | grep Network raw6 0 0 :::58 :::* 7 2581242/NetworkMana 2 cause analysis 2.1 raw6 what is it? raw6 is the RAW SOCKET ...

Posted by valtido on Tue, 28 Sep 2021 13:12:28 -0700

Ubuntu 16.04 how to solve the problem of installing rose and failing to connect to the server?

The first step is to open the terminal, type the following code, and automatically open the download source text editor sudo gedit /etc/apt/sources.list Replace the download source, and replace all the download sources with the following sources of China University of science and technology deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main ...

Posted by Akenatehm on Mon, 27 Sep 2021 21:36:57 -0700

CentOS 7 RPM installs Elasticsearch 7.14.1 and common plug-ins

CentOS 7 RPM installs Elasticsearch 7.14.1 and common plug-ins Installing JDK 1.8 Install jdk: Open the official website to download: https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.htmlDownload the Linux x64 RPM Package: jdk-8u301-linux-x64.rpmInput password, 2696671285@qq.com /Oracle123 (if it fails, you can search th ...

Posted by waltonia on Mon, 27 Sep 2021 20:07:15 -0700