Debian system to let the program boot from the start, in addition to the program's own boot self-start function, but also manually set up, can be achieved through the editing of the rc.local file, the following small series will give you a detailed introduction to Debian Set the method to start the program from boot.
code is as follows
sudo vi /etc/rc.local
Add software startup command before exit 0. Such as:
/usr/local/bin/sslocal -c /etc/shadowsocks.json
Save the file and restart the system to take effect
If someone wants to put the service Add it to us. Refer to the following method
Adding a self-starting service
1. Creating a new script file
Adding a script file under /etc/init.d
The code is as follows
sudo vi /etc/init.d/aria2c
Input:
#! /bin/sh
### BEGIN INIT INFO
# Provides: Aria2
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Aria2 - Download Manager
# Description: Aria2 - Download Manager
### END INIT INFO
NAME=aria2c
USER=pi
ARIA2C=/usr/bin/$NAME
PIDFILE=/var/Run/$NAME.pid
CONF=/home/$USER/.aria2/aria2.conf
ARGS=“--conf-path=${CONF}”
test -f $ARIA2C
Linux When you are doing Tsung stress test, you may need to create multiple tcp req
The Linux system itself is an open source system, so the Linux version is also being improved at any
In Linux, although you can enable Java directly, but sometimes you need to enable J
In the Ubuntu system, many users will download the update part of the program after
Linux is a way to execute programs as other users.
How to detect the device name and writing speed of DVD burner under Linux
Linux geeks need to master the collection of skills
How to expand Xen virtual hard disk space by Linux
Linux system using the sl command to make train dynamic desktop skills
How Linux uses shell scripts to defend against small amounts of ddos attacks
Repairing database skills after Linux system crashes
How to use regular expressions in Linux system
How Linux can improve the copying efficiency of large files
Linux system smbclient command usage
Win10 third-party theme package Numix download: the dark wind is carried out in the end
Powerful Controls Allows Win8 users to open only specific websites/applications/games.
How to clear the software residual service item in Win7 system?
Win7 IE browser right-click menu display English reason and solution
Two steps to quickly and easily remove system waste
Win7 market share breaks the sum of 5Vista in the first 4 months
Win10 Mobile/PC Preview 14946 This Week Push: Mobile Edition will also add new features
How Win10 Customizes Notifications and Action Center Quick Action Buttons
Win7/Win8.1 get Win10 update program to install kb3035583 patch tutorial