LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-15-2018, 11:22 AM   #1
arahmancsd
LQ Newbie
 
Registered: Nov 2018
Posts: 10

Rep: Reputation: Disabled
Why there are so many services running


I am running to find out about running services in linux. Unfortunately I am getting so many services are running and also so many ports are open. The confusing part is same port is open is both TCP and UDP. If TCP is only open, can I close UDP one?Running services
 
Old 11-15-2018, 12:25 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,145
Blog Entries: 6

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
look at
Code:
ss -ap
or
Code:
netstat -ap
That image you posted shows what is running on what port.
You have a mail server running, ssh server, DNS server, netcat, samba...They are running because you have them running.
 
Old 11-15-2018, 01:00 PM   #3
arahmancsd
LQ Newbie
 
Registered: Nov 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
look at
Code:
ss -ap
or
Code:
netstat -ap
That image you posted shows what is running on what port.
You have a mail server running, ssh server, DNS server, netcat, samba...They are running because you have them running.
Thanks for your reply. How can I close them for always. It should stop. I tried killing them, but it appears after restart.
 
Old 11-15-2018, 01:06 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
What distribution are you running? We need to know that to advise you how to turn off services.
Which services do you want to turn off, and why?
 
Old 11-15-2018, 01:10 PM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,145
Blog Entries: 6

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
You haven't told anything about what you are using. What distribution of linux, if it's systemd or not...
Quote:
I tried killing them, but it appears after restart.
Of course they do. They are services that are enabled to start after boot. Don't kill services that way. If you don't want them to run then disable them.

Give output of
Code:
uname -a
Or tell what you are using.
 
Old 11-15-2018, 01:38 PM   #6
arahmancsd
LQ Newbie
 
Registered: Nov 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
You haven't told anything about what you are using. What distribution of linux, if it's systemd or not...

Of course they do. They are services that are enabled to start after boot. Don't kill services that way. If you don't want them to run then disable them.

Give output of
Code:
uname -a
Or tell what you are using.
Thanks, I should be able to send email, see website in port 80, use samba only for root, have access to wordpress for configuration,have access to mysql with wordpress,
ssh (this is all I should run, anything else should be stopped)

the output of uname command
Linux friend 3.2.0-4-686-pae #1 SMP Debian 3.2.96-2 i686 GNU/Linux
 
Old 11-15-2018, 02:04 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by arahmancsd View Post
Thanks, I should be able to send email, see website in port 80, use samba only for root, have access to wordpress for configuration,have access to mysql with wordpress,
ssh (this is all I should run, anything else should be stopped)

the output of uname command
Linux friend 3.2.0-4-686-pae #1 SMP Debian 3.2.96-2 i686 GNU/Linux
That list covers pretty much everything that's running, I think, but I'll leave it to the Debian experts to advise how to stop services.
 
Old 11-16-2018, 10:50 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,615
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
I'm no expert, but Debian now uses systemd and you stop services for good by using (as root) systemctl disable service_name. That won't kill the running service -- you do that with systemctl stop service_name -- but it will stop it being activated in future sessions.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
One to Many or Many to Many? baldur2630 Programming 5 04-23-2013 12:09 PM
Why are there so many users in passwd relating to system services BobTheSlob Linux - General 1 09-03-2007 02:04 PM
Multi Booting many, many, many, OS's mac_man25 Linux - General 10 10-26-2003 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 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
Open Source Consulting | Domain Registration