install package on Centos 7
I use Centos 7 and have just installed vsftpd to the server , I want to start vsftp service after install , when I tried the command "systemctl |grep vsftp" , it show nothing .
I use previous , all services keep at /etc/rc.d/init.d , what I need to do is /etc/rc.d/init.d/vsftpd start . Please advise what I need to do for Centos 7 to start vsftpd ? thanks |
Code:
service vsftpd start Should work if your're using systemV If you're using systemD to list all services registered Code:
systemctl list-units --type service --all Code:
systemctl is-enabled vsftpd.service Code:
systemctl start vsftpd.service Code:
systemctl status vsftpd.service |
thanks reply ,
I can restart it by "systemctl start vsftpd.service" , it works . But I am wonder how do I know the service name is "vsftpd.service" ? as I can't find it by the command "systemctl list-units --type service --all" , when I use your string "systemctl list-units --type service --all" , it display nothing. Thanks |
Code:
man systemctl Legal Disclaimer: I didn't just cut and paste the answers, oh no, for that would be sin and a violation of all that is true and just (our contracts with the vendor, for example) I committed them to memory and wrote them down after I left the site utilizing nothing but my newly developed (though apparently defective) skill set. So Help Me God. |
Try "type=service" not "type service"
|
All times are GMT -5. The time now is 07:59 AM. |