Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.