What is the difference between "systemctl start" and "systemctl enable"?

Chathurika Senani

I installed MariaDB-server to my machine. While setting up I met with a problem whether I have to enable it all the time as the document I follow is given with these steps,

sudo yum install mariadb mariadb-server 
sudo systemctl start mariadb.service  
sudo systemctl enable mariadb.service
vurp0

systemctl start and systemctl enable do different things.

enable will hook the specified unit into relevant places, so that it will automatically start on boot, or when relevant hardware is plugged in, or other situations depending on what's specified in the unit file.

start starts the unit right now.

disable and stop are the opposite of these, respectively.

This means that when you first install MariaDB, you might want to run systemctl enable mariadb.service to enable it so it starts on boot. You might also want to run systemctl start mariadb.service, or just reboot, in order to start MariaDB. To stop MariaDB, run systemctl stop mariadb.service (it will start again on next boot or when you manually start it). To disable it so it doesn't start on boot anymore, run systemctl disable mariadb.service.

Source: systemctl man page

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What is the difference between systemctl start [service] and systemctl start [service].service?

From Dev

systemctl enable differs from systemctl start, how?

From Dev

What is the practical difference between `systemctl start reboot.target` and `systemctl reboot`?

From Dev

What does systemctl enable netctl.service do

From Dev

What's the difference between "as?", "as!", and "as"?

From Dev

What is the difference in operation between . and ^ and ^(.*)$?

From Dev

What is the difference between .// and //* in XPath?

From Dev

What is the difference between = and => for a variable?

From Dev

What is difference between "?" and "!" in Swift?

From Java

What is the difference between `.` and `#` in the JavaDoc?

From Dev

CoffeeScript, What is the difference between => and ->

From Java

What is the difference between * and *|* in CSS?

From Dev

What is the difference between $* and $@

From Java

What's the difference between '$(this)' and 'this'?

From Dev

What the difference between != and =/= in chisel?

From Dev

What is the difference between '&&' and '&' in Ruby

From Dev

what is difference between @ and @:?

From Dev

what is difference between (**) and (<<) in python?

From Dev

What is the difference between $ and ~?

From Dev

What is the difference between `::` and `.` in pig?

From Dev

What is the difference between $("") and $.find("")?

From Dev

What is the difference between list(a) and [a]?

From Dev

What is the difference between := and = operators?

From Dev

What is the difference between these files?

From Dev

What is the difference between /* ...*/ and /** ... */

From Dev

What is the difference between the inflaters

From Dev

What is the difference between [] and '[] in Clojure

From Dev

What is the difference between "||" and "or" in PHP?

From Dev

What is the difference between %>% and %,% in magrittr?

Related Related

  1. 1

    What is the difference between systemctl start [service] and systemctl start [service].service?

  2. 2

    systemctl enable differs from systemctl start, how?

  3. 3

    What is the practical difference between `systemctl start reboot.target` and `systemctl reboot`?

  4. 4

    What does systemctl enable netctl.service do

  5. 5

    What's the difference between "as?", "as!", and "as"?

  6. 6

    What is the difference in operation between . and ^ and ^(.*)$?

  7. 7

    What is the difference between .// and //* in XPath?

  8. 8

    What is the difference between = and => for a variable?

  9. 9

    What is difference between "?" and "!" in Swift?

  10. 10

    What is the difference between `.` and `#` in the JavaDoc?

  11. 11

    CoffeeScript, What is the difference between => and ->

  12. 12

    What is the difference between * and *|* in CSS?

  13. 13

    What is the difference between $* and $@

  14. 14

    What's the difference between '$(this)' and 'this'?

  15. 15

    What the difference between != and =/= in chisel?

  16. 16

    What is the difference between '&&' and '&' in Ruby

  17. 17

    what is difference between @ and @:?

  18. 18

    what is difference between (**) and (<<) in python?

  19. 19

    What is the difference between $ and ~?

  20. 20

    What is the difference between `::` and `.` in pig?

  21. 21

    What is the difference between $("") and $.find("")?

  22. 22

    What is the difference between list(a) and [a]?

  23. 23

    What is the difference between := and = operators?

  24. 24

    What is the difference between these files?

  25. 25

    What is the difference between /* ...*/ and /** ... */

  26. 26

    What is the difference between the inflaters

  27. 27

    What is the difference between [] and '[] in Clojure

  28. 28

    What is the difference between "||" and "or" in PHP?

  29. 29

    What is the difference between %>% and %,% in magrittr?

HotTag

Archive