How do I install chkconfig on Ubuntu?
The command chkconfig
is no longer available in Ubuntu.The equivalent command to chkconfig
is update-rc.d
.This command nearly supports all the new versions of ubuntu.
The similar commands are
update-rc.d <service> defaults
update-rc.d <service> start 20 3 4 5
update-rc.d -f <service> remove
Setting up CRON on Ubuntu VPS
As indicated in comments, and following the tutorial you mentioned How To Use Cron To Automate Tasks On a VPS, this is what you missed:
Check where is your
service
:which service
As it returned,
/usr/sbin/service
, then you have to use it to start cron:sudo /usr/sbin/service cron start
This returned
start: Job is already running: cron
to you, so it was already running. In general, to know if it is running you can perform the commandps -ef | grep cron
From this moment on, you have
cron
running on your server. You can edit it withcrontab -e
, see current values withcrontab -l
. You can test it with a dummy* * * * * echo "hello" >> /tmp/test123
, that will writehello
in /tmp/test123 every minute. In case of need, you can debug in https://stackoverflow.com/tags/crontab/info.
When i am Trying to install JAVA 7 in Ubuntu 18.04 m facing some problem
oracle-java7-installer
is no longer available from their ppa:webupd8team/java
repository, and that would make sense now that Java 8 is out. Try installing Java 8 and see if the problem still persists.
Related Topics
Minicom Black Background Color Is Not Respected
Passing Main Script Variables into Perl Modules
Add Up a Column of Numbers at the Unix Shell
How to Include File in a Bash Shell Script
How to Run Vi on Docker Container
In Screen, How to Send a Command to All Virtual Terminal Windows Within a Single Screen Session
How to Hide Wget Output in Linux
Maximum Number of Inodes in a Directory
How to Dump Part of Binary File
What Does the Mkdir -P Mean in a Script File
Every Command Is Returning 'Bash: <Command>: Command Not Found...'
Why Do I Get 'Permission Denied' After Using ./File2 in Linux
Delete .Ds_Store Files in Current Folder and All Subfolders from Command Line on MAC
Fast Way to Get Image Dimensions (Not Filesize)
How to Perform a 'Git Pull' Without Re-Entering My Ssh Password
Trying to Use Bash on Windows and Got No Installed Distributions Message