File IO programming under Linux

Linux system call refers to a set of "special interfaces" provided by the operating system to user programs through which user programs can obtain special services provided by the operating system. To better protect kernel space, programs are divided into kernel space and user space, which ru ...

Posted by locomotive on Tue, 16 Jun 2020 18:34:54 -0700

cmake basic introduction (1)

cmake basic introduction (1) Official help documents CMake is a cross platform make. CMakeLists.txt The brief introduction is as follows: # Auto CMakeLists.txt: frame with cppunit use for lintcode/leetcode # minimum cmake version cmake_minimum_required(VERSION 3.7) # cmake minimum version ...

Posted by Cyberspace on Sun, 07 Jun 2020 00:39:06 -0700

Deployment and application of puppet

brief introduction Puppet is a centralized configuration management system for Linux, Unix and windows platforms. It uses its own puppet description language to manage configuration files, users, cron tasks, software packages, system services, etc. These system entities are called resources by puppet. The design goal of puppet is to simplify t ...

Posted by nareshrevoori on Fri, 05 Jun 2020 03:36:06 -0700

pthread realizes multithreaded program under Linux (one thread controls the pause, resume and termination of two threads)

1, Functional requirements Three threads are used. Thread 1 is used to listen to user input and as listener of other two threads. The main content of thread 2 is to output "hello 2" string every other period of time. Thread 3 is used to output "hello 3" string every other period ...

Posted by iamali on Thu, 04 Jun 2020 19:53:07 -0700

Detailed explanation of zombie process and orphan process in PHP

Zombie process When the child process finishes running, the parent process continues to run, but the parent process does not recycle the child process, freeing the resources occupied by the child process, then the child process becomes a zombie process. In Unix process management, if the new child process is finished, the parent process will re ...

Posted by move3rd on Thu, 21 May 2020 00:31:00 -0700

Handling mining zombie network dota3 Trojan attacks under CentOS7

In the early morning, I received alert text messages from Ali cloud server.Emergency security incident: access malicious download source, access malicious download IP.Instant wake up, immediately get up to handle. First log in to Aliyun backstage, check the security center's warning mascot, found several records: Parent process path: /usr/bin ...

Posted by lur on Wed, 20 May 2020 09:57:35 -0700

abandon os.path , embrace pathlib

Based on Python's file, directory and path operations, we usually use os.path modular. pathlib is its replacement in os.path On the basis of the encapsulation, the path is objectified, the api is more popular, the operation is more convenient, more in line with the thinking habits of programming. The pathlib module provides classes that use sem ...

Posted by SuNcO on Tue, 19 May 2020 20:44:08 -0700

RHEL7 does not have a graphical interface. Install the graphical interface

Background: When a RHEL7 machine is newly built, there is no graphic interface???? reason: The system was created without graphing installed The default run level of the system is not graphical After the system is installed, there are operations to reduce the memory. If the memory is too low, the desktop cannot be ...

Posted by spicerje on Thu, 30 Apr 2020 18:41:29 -0700

MySQL function of database

1, Date and time functions 1. Function to get the current dateIt's the same. It's different CURDATE(): used to get the current date of the systemCurrent "date() is used by the system to get the current date mysql> select CURDATE(),CURRENT_DATE(); 2. Get function of current time CURTIME(): used to get the current time of the system ...

Posted by deerly on Fri, 24 Apr 2020 10:12:24 -0700

RedHat 7.0 set weblogic to start automatically after power on

1 Description The system CTL tool is required to set the startup and self start. systemctl is a systemd tool, which is mainly responsible for controlling systemd system and service manager. SYSTEMd is a collection of system management daemons, tools, and libraries to replace the System V initial process. The function ...

Posted by nalkari on Mon, 13 Apr 2020 10:39:17 -0700