All Products
Search
Document Center

:How to use sysv-rc-conf commands to manage boot items for an Ubuntu instance

Last Updated:Apr 29, 2022

Overview

After Linux such as Ubuntu start up, it runs the script in the /etc/rc.local file. Add the corresponding startup script in rc.local to add a startup item. However, for the default startup item, this is even more troublesome. For Centos, you can use the chkconfig command, while for Ubuntu, you can use the sysv-rc-conf command to manage the startup item.

Detail

Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • You can modify the configurations and data of instances including but not limited to Elastic Compute Service (ECS) and Relational Database Service (RDS) instances. Before the modification, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify such information in a timely manner.
  1. If the sysv-rc-conf command is not installed, run the following command to install it:
    sudo apt-get install sysv-rc-conf
  2. If you have installed the sysv-rc-conf command, you can open the Settings window of the graphical interface. Move the cursor to the corresponding square bracket, and press the space key to select or deselect as needed, and then press Q to exit.

Scope

  • Elastic Compute Service