当前位置:网站首页>Rhel7 operation level introduction and switching operation
Rhel7 operation level introduction and switching operation
2022-07-02 07:56:00 【Teacher Liu Trent】
init yes Linux System One of the indispensable procedures in operation .init process , It's a user level process started by the kernel . The kernel will have been used in the past init Look for it in a couple of places , It's in the right place ( Yes Linux system ) yes /sbin/init. If the kernel cannot be found init, It will try to run /bin/sh, If the run fails , The startup of the system will also fail .
Linux System 7 Operating levels
0: To turn it off , Shutdown mode
1: Single user mode
2: Multi user mode
3: Complete multi-user text mode
4: The system is not in use , It's not necessary to keep it
5: Graphic mode
6: Restart mode
The runtime level is the functional level that the operating system is currently running . This level goes from 0 To 6, It has different functions .
Level specific description :
0: System shutdown ( To turn it off ) Pattern , The system default run level cannot be set to 0, Otherwise it will not start properly , Turn it off automatically as soon as you turn it on .
1: Single user mode ,root jurisdiction , For system maintenance , No remote login , It's like Windows Under security mode login .
2: Multi user mode , No, NFS Network support .
3: Complete multi-user text mode , Yes NFS, Enter the console after logging in command Row mode .
4: The system is not in use , It's not necessary to keep it , In some special cases, you can use it to do something . For example, when the battery of a laptop is exhausted , You can switch to this mode to make some settings .
5: Graphic mode , Log in and enter the figure GUI Mode or GNOME、KDE Graphical interface , Such as X Window System .
6: Restart mode , The default run level cannot be set to 6, Otherwise it will not start properly , It will always be on and on .
Introduction to starting principle :1、 In the catalog /etc/rc.d/init.d There are many servers under Script Program , It's generally called service (service).
[[email protected] ~]# ls -l /etc/rc.d/init.d
total 40
-rw-r--r--. 1 root root 15131 Sep 12 2016 functions
-rwxr-xr-x. 1 root root 2989 Sep 12 2016 netconsole
-rwxr-xr-x. 1 root root 6643 Sep 12 2016 network
-rwxr-xr-x. 1 root root 2190 May 31 02:09 nginx
-rw-r--r--. 1 root root 1160 Sep 13 2016 README
-rwxr-xr-x. 1 root root 2437 Jun 26 2015 rhnsd
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
2、 stay /etc/rc.d There are 7 One is called rcN.d The catalog of , Corresponding to the 7 The first level of operation is (0-6).
[[email protected] ~]# ls -l /etc/rc.d
total 36
drwxr-xr-x. 2 root root 4096 May 31 02:09 init.d
drwxr-xr-x. 2 root root 4096 May 30 11:46 rc0.d
drwxr-xr-x. 2 root root 4096 May 30 11:46 rc1.d
drwxr-xr-x. 2 root root 4096 May 31 05:00 rc2.d
drwxr-xr-x. 2 root root 4096 May 31 05:00 rc3.d
drwxr-xr-x. 2 root root 4096 May 31 05:00 rc4.d
drwxr-xr-x. 2 root root 4096 May 31 05:00 rc5.d
drwxr-xr-x. 2 root root 4096 May 30 11:46 rc6.d
-rw-r--r--. 1 root root 473 Sep 13 2016 rc.local
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
Be careful :
Minimize the installed operating system. By default, there is no graphical software
The method of installing graphical software is as follows
yum install -y xorg* gnome* glx*
- 1.
RHEL7 Change the default boot level
[[email protected] ~]# systemctl get-default
graphical.target
Set the default startup to multi-user character interface :
[[email protected] ~]# systemctl set-default multi-user.target
rm '/etc/systemd/system/default.target'
ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target'
Check the operation mode of default startup :
[[email protected] ~]# systemctl get-default
multi-user.target Character mode
Set the default startup to multi-user graphical interface :
[[email protected] ~]# systemctl set-default graphical.target
rm '/etc/systemd/system/default.target'
ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'
Check the operation mode of default startup :
[[email protected] ~]# systemctl get-default
graphical.target Graphic mode
Switch from character interface to graphic interface :
Method 1: perform startx
Method 2: perform systemctl isolate graphical.target
Method 3: perform init 5
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
summary
That's all RHEL7 Operation level and switching operation , These basic operations are very practical .
边栏推荐
- 【Batch】learning notes
- 【Cutout】《Improved Regularization of Convolutional Neural Networks with Cutout》
- Win10+vs2017+denseflow compilation
- Timeout docking video generation
- 浅谈深度学习模型中的后门
- 【双目视觉】双目矫正
- 【多模态】CLIP模型
- 【Batch】learning notes
- Apple added the first iPad with lightning interface to the list of retro products
- 针对tqdm和print的顺序问题
猜你喜欢
【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》
Record of problems in the construction process of IOD and detectron2
EKLAVYA -- 利用神经网络推断二进制文件中函数的参数
Hystrix dashboard cannot find hystrix Stream solution
【学习笔记】反向误差传播之数值微分
ModuleNotFoundError: No module named ‘pytest‘
用MLP代替掉Self-Attention
mmdetection训练自己的数据集--CVAT标注文件导出coco格式及相关操作
In the era of short video, how to ensure that works are more popular?
How do vision transformer work?【论文解读】
随机推荐
Replace convolution with full connection layer -- repmlp
用于类别增量学习的动态可扩展表征 -- DER
[CVPR‘22 Oral2] TAN: Temporal Alignment Networks for Long-term Video
Sorting out dialectics of nature
[C # note] the data in DataGridView saved in WinForm is excel and CSV
【Mixup】《Mixup:Beyond Empirical Risk Minimization》
Eklavya -- infer the parameters of functions in binary files using neural network
【TCDCN】《Facial landmark detection by deep multi-task learning》
[mixup] mixup: Beyond Imperial Risk Minimization
[learning notes] matlab self compiled Gaussian smoother +sobel operator derivation
Win10+vs2017+denseflow compilation
Proof and understanding of pointnet principle
conda常用命令
【Wing Loss】《Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks》
Execution of procedures
[multimodal] clip model
【C#笔记】winform中保存DataGridView中的数据为Excel和CSV
【Cascade FPD】《Deep Convolutional Network Cascade for Facial Point Detection》
Handwritten call, apply, bind
【MagNet】《Progressive Semantic Segmentation》