Linux programming time: wall time, cpu time and timer
Getting time in Java/JS is very simple (system. Currenttimemillis()) nanoTime(); new Date(). Gettime (), etc.), which is a little more complicated in C/C + +.
Today, let's learn about time related concepts and acquisition methods in Linux C programming.
Linux time related knowledge
The UNIX system uses the elapsed time since 0:00 on Jan ...
Added by robmarston on Sat, 19 Feb 2022 18:44:13 +0200
Supervisor daemon
Supervisor( http://supervisord.org/ )It is a client/server service developed in Python. It is a process management tool under Linux/Unix system and does not support Windows system. It can easily monitor, start, stop and restart one or more processes. For a process managed by supervisor, when a process is accidentally killed, supervisor will aut ...
Added by Hikari on Sat, 19 Feb 2022 09:44:57 +0200
stress tool tutorial of performance tool (with source code description)
Stress is a stress testing gadget under linux.
I see some people use this tool to describe some scenarios of resource depletion, and others use it for chaos testing. Users should note that this tool does not simulate business problems, but system level problems. Therefore, when using it to simulate, it is very different from the real busin ...
Added by stockdalep on Sat, 19 Feb 2022 01:14:47 +0200
Linux Installation JDK, Tomcat, mysql, redis
Virtual machine installation, Linux system and software installation
Environmental Science:
Software selection: server with GUI
Network type: use network address translation (NAT)
Power on automatic networking
cd /etc/sysconfig/network-scripts/
vim Network profile
//ONBOOT = "no" is changed to yes, and there is no need to conne ...
Added by sarun on Fri, 18 Feb 2022 23:32:30 +0200
Linux System Management Networking
The second part (Networking) describes the protocols used on UNIX system and the technology used to set up, expand and maintain network and Internet Oriented server. In addition, it also introduces the upper network software, including domain name system, e-mail, single sign on and Web hosting.
Chapter 13 TCP/IP networking
1. Basic knowle ...
Added by TylerL on Fri, 18 Feb 2022 19:57:02 +0200
docker self built warehouse and network
docker network creation
Containers themselves cannot be networked with each other, but they can be interconnected by placing them in the same network segment. Can pass
docker network create creates a network segment name
To create network segments, we can also use docker network ls to view network segments. By default, there will be thr ...
Added by cbn_noodles on Thu, 17 Feb 2022 22:56:45 +0200
Redis operation and maintenance - learning from scratch
1, Introduction to Redis
Redis is an open-source SQL database developed based on C language for the underlying code. Redis runs and persists based on memory and adopts the storage form of key value (key value pair). It is an indispensable part of the current distributed architecture
Advantages of Redis
It has extremely high data reading ...
Added by coverman on Thu, 17 Feb 2022 22:36:49 +0200
Linux system management and operation
Chapter 23 configuration management Ansible and Saltstack
1. Configuration management system
The most commonly used CM systems: Ansible, Salt, Puppet, Chef
Interpretation of configuration management terms
Terms we useAnsibleSaltoperationtaskstateop typemodule (template)functionOperation list (OP)Tasks (multiple tasks)states (state set)b ...
Added by Xeoncross on Thu, 17 Feb 2022 21:27:49 +0200
2021-10-13-linux Foundation
See what types of shell interpreters are available on this machine:
[root@sanchuang huahsan]# cat /etc/shells
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
/usr/bin/tmux
/bin/tmux
sh It's a very old interpreter, more than bash Have a sense of history, No bash Easy to use
[root@sc ~]# sh switch to sh interpreter
sh-4.4# Switch bash to bash inte ...
Added by mrfruits on Thu, 17 Feb 2022 05:00:39 +0200
ubuntu 18.04 how to set automatic startup script
Introduction: This paper mainly introduces how to realize the automatic running script of ubuntu 18.04 system startup through systemd.
For image download, domain name resolution and time synchronization, please click Alibaba open source mirror station
1, Overview
Ubuntu 18.04 does not have / etc / rc.exe by default Local file. It is impos ...
Added by corylulu on Wed, 16 Feb 2022 16:18:53 +0200