LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2015, 02:55 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
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
 
Old 03-09-2015, 03:15 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
Code:
service vsftpd start
Though "restart" works too.
Should work if your're using systemV

If you're using systemD
to list all services registered
Code:
systemctl list-units --type service --all
assuming vsftpd is listed you need to check it it's enabled.
Code:
systemctl is-enabled vsftpd.service
assuming it's there and registered, to start it.
Code:
systemctl start vsftpd.service
Then check the status
Code:
systemctl status vsftpd.service
hope that helps.

Last edited by dijetlo; 03-09-2015 at 03:21 AM.
 
Old 03-09-2015, 03:29 AM   #3
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-09-2015, 03:56 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
Code:
man systemctl
No problem. I didn't know either until you asked, I don't support any systemD instances. I just thought it was an interesting question so I looked it up for you from the vendors "for pay only" web site.

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.
 
Old 03-09-2015, 10:46 AM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 596

Rep: Reputation: Disabled
Try "type=service" not "type service"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install libcgroup package on centos 5.5? Kaustuv Linux - Enterprise 6 07-06-2013 12:30 PM
Cant install Virtual machine in CentOS 6 Cannot find package qemu-kvm in yum install linux_rhca Linux - Newbie 4 10-19-2011 06:37 AM
How to install mod_jk.so package in centos jsaravana87 Linux - Server 1 09-27-2011 03:26 AM
[SOLVED] Centos 5.5 yum install - No package libsdl-dev available. xunil123 Linux - Software 2 08-12-2010 04:03 PM
Centos 5 Desktop Install - missing package "lrzsz-0.12.20-22.1.i386.rpm" roundcube Linux - Newbie 1 05-01-2008 10:25 PM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration