Linux Learning Diary-linux Foundation

Source: Internet
Author: User

Suggestions for Beginners:

Shutting down the firewall

1: Close the iptables:

# chkconfig iptables off

2: Close the Sellinux:

Double-click the mouse to open:/etc/sysconfig/selinux file

Modify "selinux=disabled"

After saving, exit and restart the system.


Inittab configuration file:

  • /etc/inittaab Configuring the default run level

  • /etc/sysconfig/init control the number of open TTY terminals, terminal color scheme

  • /etc/init/rcs.conf loading the Rc.sysinit script to complete the system initialization task

  • /etc/init/rc.conf compatible scripts, with run-level call handling

  • /etc/init/rcs-sulogin.conf starting the/sbin/sushell environment for single-user mode

  • Ctrl+alt+del Hotkey operation under the/etc/init/control-alt-delete.conf control terminal

  • /etc/init/start-ttys.conf Configure the number of TTY terminal turns on, device files

  • . etc/init/tty.conf control the opening of the TTY terminal

id:runlevels:action:proccess

That

tag: Run Level: Action type: Program or script

Command explanation:

(1): id--tag field with 1~4 characters to distinguish the configuration from other lines

(2): runlevels--Run Level field, which specifies which runlevel the record runs in

    • 0: Shutdown state, the host will be turned off when using this level

    • 1: Single user mode, no password Authentication required to log in system, more for system maintenance

    • 2: Multi-user mode for character interface (network access not supported)

    • 3: Full multi-user mode for character interface, most server hosts run at this level

    • 4: Not assigned to use

    • 5: Graphical interface for multi-user mode, providing a graphical desktop operating environment

    • 6: Reboot, use this level is will reboot the host

(3) action--action Type field, which describes what kind of action the record will perform

(4) process--program or Script field to set the command that the startup process executes

System Service Control:

Service Name control type

/etc/rc.d/init.d/Service Name control type

Control type:
Start: Startup
STOP: Stop
Restart: restart
Reload: Reload
Status: View service status

To view the run level:
Use the RunLevel command to display, respectively, the runlevel before switching, the current RunLevel

To temporarily switch the run level:
Using the init command to combine 0-6 run-level parameters

[[email protected] ~]# runlevel//View system level
N 5//The first character is n indicates a previous switch-over level
[[Email protected] ~]# init 3//Modify system level to 3
[Email protected] ~]# RunLevel
5 3
[[Email protected] ~]# init 6//Restart system
[[Email protected] ~]# init 0//Shutdown system

System Services Administration Tools:

NTSYSV Tools
Provides an interactive, visual window
Can be run at the character terminal to facilitate centralized management of multiple services

              command: NTSYSV
                     ntsysv --level  Level list
650) this.width=650; "Name=" image_operate_39251463391052842 "src=" http://s16.sinaimg.cn/ mw690/006ggi6wgy71jjrobyt1f&690 "width=" 690 "height=" 381 "alt=" 006ggi6wgy71jjrobyt1f&690 "/>

   chkconfig tools:
                            does not provide interactive, Visual Window
                            Manage individual services more efficiently

to view the Startup status command for system services: chkconfig--list
Chkconfig--list Service Name

Service Script location:/etc/init.d/etc/rc.d/init.d

Case:

[email protected] ~]# chkconfig--list Network
Network 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: Off
[Email protected] ~]#chkconfig--list
NetworkManager 0: Off 1: Off 2: Off 3: Off 4: off 5: off 6: Off
Abrt–ccpp 0: Off 1: Off 2: Off 3: Enable 4: Off 5: Enable 6: Off
ABRTD 0: Off 1: Off 2: Off 3: Enable 4: Off 5: Enable 6: Off
Acpid 0: Off 1: Off 2: Off 3: Enable 4: Enable 5: Enable 6: Off
......

To set the system service startup status:

chkconfig--level Level list service name On|off

Case:

[Email protected] ~]# chkconfig--level 2345 Network on
[Email protected] ~]#
chkconfig--list Network
Network 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: Off


This article is from the "Dark Cloud Technology" blog, please be sure to keep this source http://wuyunkeji.blog.51cto.com/12028005/1866066

Linux Learning Diary-linux Basics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.