About chkconfig, mount, and shutdown in Linux

Source: Internet
Author: User
& Nbsp; (1) when the startup level is 2345, chkconfig closes the ftp service: [root @ RHEL4etc] # chkconfig -- level2345vsftpdoff displays the startup status of each service at different levels: [root @ RHEL4etc] # chkconfig -- list scripts for starting, querying, and disabling daemon: [root @  

(1) chkconfig

Disable the ftp service at startup level 2345: [root @ RHEL4 etc] # chkconfig -- level 2345 vsftpd off

Display the startup status of each service at different levels: [root @ RHEL4 etc] # chkconfig -- list

Script for starting, querying, and disabling daemon: [root @ RHEL4 etc] # service vsftpd stop [status, start]

The following are some of the services I know that can be stopped:

Autofs automatically reprints the file system when you need it, but uninstalls it when you do not need it.

Apmd is used to monitor the power usage status of the system and write related information to logs through syslogd. It can also be used to shut down when the power supply is insufficient.

Acpid is a new power management standard to replace the traditional APM power management standard. Generally, the laptop needs to be powered on for management.

Netfs is responsible for loading/detaching NFS, Samba, and NCP (Netware) file systems.

Kudzu is inspecting new hardware and can be switched off. After the new hardware is installed, you can use/usr/sbin/kudzu.

The sendmail Daemon.

Irqbalance is a load balancing daemon for system interrupt requests in multiple system processor environments. If you only install one CPU, you do not need to load this daemon.

(2) smartd startup failure

Smart is a hard disk fault monitoring process.

[Root @ RHEL4 ~] # Service smartd start prompt: start smartd [failed]

[Root @ RHEL4 ~] # Service smartd status prompt: smartd is dead, but sbusys is locked

[Root @ RHEL4 ~] # Tail/var/log/messages-n 15 prompt:

Unable to register device/dev/sda (no Directive-d removable). Exiting.

Unable to register SCSI device/dev/sda at line 30 of file/etc/smartd. conf

The prompt is probably that smart does not support SCSI devices, but I don't understand why the hard disk of my virtual machine RHEL4 is a SCSI hard disk.

I deleted this service in the service: chkconfig -- del smartd

(3) mount

After the USB device is inserted into the host, winXP first prompts to find the device, but no USB device is found through fdisk-l on linux. To solve this problem, choose an anonymous USB device from VM> Removable Devices. The USB device name is sdb1.

[Root @ RHEL4 ~] # Mkdir/mnt/usb

[Root @ RHEL4 ~] # Mount-t auto/dev/sdb1/mnt/usb

[Root @ RHEL4 ~] # Umount/mnt/usb

(4) shutdown

Shutdown is the safest way to shut down. It notifies all logged-on users that the system will be shut down and freezes login. Direct shutdown, delayed shutdown, and even restart are all possible. This gives your applications time to save relevant information.

Shutdown-r restart

Shutdown-t: The number of seconds after shutdown

Shutdown-h power off after shutdown, that is, the halt command

Shutdown-f ignores fsck during reboot and restarts quickly

Related Article

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.