Home > Operation and Maintenance > Linux Operation and Maintenance > Share an example tutorial of the startup process

Share an example tutorial of the startup process

零下一度
Release: 2017-06-10 13:19:02
Original
1622 people have browsed it

This article mainly introduces relevant information about the detailed introduction of the Linux startup process. Friends who need it can refer to the Introduction to the Linux Startup Process. We all know that due to the stability of Linux, it is usually used as a server system. If you want to call it a PHP For masters, Linux is a required course. So what exactly happens in the middle of the Linux system from booting to startup? This article will briefly explore the mysterious process in between. 1. BIOS power-on self-test BIOS is the abbreviation of "Basic Input Output System" in English. In fact, it is a set of programs solidified on a ROM chip on the motherboard of the computer. The computer will first load the BIOS information. This is because the BIOS contains CPU-related information, device startup sequence information, hard disk information, memory information, clock information, etc. After this, the computer has a mental map and knows which hardware device it should read. 2. Load the master boot loader (MBR) MasterBootRecord, which is the master boot record. Its size is 512 bytes. Although the space is small, it contains the pre-boot

1. Detailed introduction to the linux startup process

Share an example tutorial of the startup process

#Introduction: This article mainly introduces the linux startup process For detailed introduction of relevant information, friends in need can refer to

2. Yii2.0 entry script

Share an example tutorial of the startup process

Introduction: The entry script is the first step in the application startup process. An application (whether it is a web application or a console application) has only one entry script. End-user requests go through the entry script that instantiates the application and forwards the request to the application. Entrance to Web applications

3. Redis source code analysis 1

Introduction: Preface Redis (REmoteDIctionaryServer) is a Key-value storage system written by Salvatore Sanfilippo. It has the following characteristics: Overall structure Redis is a single-threaded server (except for writing to disk, which will open a child process, and VM management, which will open threads. Ignore these two parts for now). Therefore, its server startup process is very clear. Look at the picture below. Then

4. How to accept the client request and call the processing function

Introduction: The previous article summarizes the redis Start the process. This article focuses on how redis accepts client requests and calls processing functions to execute commands. In the previous article, it was mentioned that in the initServer() function, the two functions anetTcpServer and anetUnixServer will be called to create monitoring of the tcp port and unix domain socket, so here we will focus on the analysis first

5. redis startup process

Introduction: 1. Prepare the running environment* Set up the oom handler, call when zmalloc fails to allocate memory* Initialize randomly Seed, used to generate random numbers* Initialize server parameters to default values* Create a mapping table between commands and processing functions 2. Parse command line parameters, loadServerConfig() parses configuration files* Configuration files will overwrite parameters specified on the command line* Invalid

6. Redis startup process analysis

Share an example tutorial of the startup process

Introduction: The component involved, Redis, is based on the C language. Each C file corresponds to a module and can be considered a component. According to the analysis of its source code, it can be concluded that the following component modules and methods are involved when the Redis service is started. Startup timing diagram The main function in redis.c mainly does three things: 1) Loading the configuration includes loading the configuration from the command line or passing in the configuration

The above is the detailed content of Share an example tutorial of the startup process. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template