how to disable dnsmasq service in CentOS 8 [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am install kubernetes v1.18 in CentOS 8, but the coredns start failed, tell me the port 53 is in using, and I using this command to find which app using the port:
lsof -i:53
then I found dnsmasq service are using this port, how to disable or close the auto start the dnsmasq service in CentOS 8? I am trying to kill the process but next time it still started, then using this command but not works:
systemctl disable dnsmasq

besides systemctl disable dnsmasq,
sudo sed -i 's/^dns=dnsmasq/#&/' /etc/NetworkManager/NetworkManager.conf
then restart the networking services
sudo service network-manager restart
sudo service networking restart
after that kill dnsmasq
sudo killall dnsmasq

Related

How do i setup Kali Linux while in text mode [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am a newbie at Linux, in fact this is the first time i'm using linux.
Having installed Kali Linux i keep getting the text mode display, a youtube tutorial shows that i need a display manager and how to set it up, but i can't run
sudo apt-get update
or
sudo apt-get install
gdm3 because i am not connected to the net ( a step i skipped while setting up due to ignorance).
Please how do i set up a WIFI connection or install a usb modem in text mode?
Thanks. I'm stuck at black n white
Try to enable the WiFi by running:
nmcli r wifi on
Just edit /etc/network/interfaces and write:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid {ssid}
wpa-psk {password}
After that write and close file and use command:
sudo dhclient wlan0
Replace {ssid} and {password} with your respective WiFi SSID and password.

Can lsof show open ports on alpine linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have a spring boot app running in alpine linux listening on port 8080. However, when I do:
$ lsof
$ lsof -i 8080
it doesn't show the open ports. Do you know what I am doing wrong?
It almost seems that lsof on alpine linux isn't honoring any arguments. It always shows the same output - just seems to ignore -i.
Thank you.
Install lsof from lsof, not from busybox. Busyboxs lsof is just only simple.
apk add lsof
should fix it.

Linux Command to revive process [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Is there a Unix command that monitors arbitrary processes and revive those processes if they got killed by the OS? For example, I have a background daemon that executes periodically but sometimes it would get killed by the OS. I'd like to either revive either that process again or something similar.
Given the vague nature of this question and what the OP has tried, here is an answer. A recent Ubuntu (assumes from the tag), OP uses a systemd system, and in this kinda system, one could write a systemd service script that would restart the daemon if it exits;
~]# cat /usr/lib/systemd/system/myawesome.service
[Unit]
Description=My Awesome Service
After=systemd-logind.service
[Service]
Type=notify
ExecStart=/path/to/my/awesome/daemon
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
Then start this service,
~]# systemctl start myawesome.service
~]# systemctl enable myawesome.service # To sustain after a reboot
To know more about systemd service unit files, follow this links:
https://www.freedesktop.org/software/systemd/man/systemd.service.html
https://www.freedesktop.org/software/systemd/man/systemd.unit.html

Migrate from LXC to LXD [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have installed LXC(Linux Containers) on Ubuntu Server 14.4 Host and i have some virtual servers running on it,but now i want to migrate all these containers to LXD, i have worked so hard configuring these containers and i don't want to lose all of these configurations.
This is my sketch:
HOST
Ubuntu Server LXC
Container Container Container
Ubuntu 12 Ubuntu 12 CentOS
Is there any way to do it?
Thanks
As I said in migrating lxc to lxd, you can do so by creating a dummy LXD container and replacing its rootfs, then updating some of the config to match your LXC container's configuration.
Specifically, if your source container was privileged, you'll want to set security.privileged=true at least until such time as you have confirmed your workload works properly unprivileged (just set security.privileged=false and restart the container with "lxc restart").
If you talk about: http://www.ubuntu.com/cloud/tools/lxd I think it's very early to start with it.
I have started to follow this project with first initial commit 3 month before. There wasn't release yet.
PS:
Getting started with LXD
Our OpenStack container capability, codenamed nova-compute-flex is included in Ubuntu OpenStack for Juno, which you can download via the Ubuntu Cloud Archive. Simply type the following commands to enable and use it:
sudo add-apt-repository cloud-archive:juno
sudo apt-get update
sudo apt-get install nova-compute-flex
OpenStack Juno is available for Ubuntu Server 14.04 LTS and 14.10.

Why ntpd service is not started automatically after reboot? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
After I installed ntpd via yum I run the command systemctl enable ntpd.service and rebooted the computer. After I got the shell prompt I run systemctl -a | grep ntp and I got ntpd.service loaded inactive dead. If I start it manually using systemctl start ntpd.service it works fine. Why is that? How can I ensure the ntpd.service will be up and running after reboot?
This appears to be an issue with fedora, there is a service named "chrony" which prevents ntpd service to start after boot. After removing chrony with yum, ntpd service is started after boot. For more details you can check this.
UPDATE: You can also disable the chronyd that runs on port 123 and then ntpd will start:
sudo systemctl disable chronyd
sudo systemctl start ntpd

Resources