How to Kill X service permanently in ubuntu server

0

When I attempt to stop or kill the X service using the PID command on the Ubuntu server, it temporarily stops, but after a few minutes, it automatically appears again. It doesn't seem to work as expected. please suggest any way to resolve it.

Rj
질문됨 3달 전138회 조회
2개 답변
0

Which process is it that you're trying to kill? If it's launched by a service that's under systemd control, then it may be set to automatically restart on failure.

This Red Hat document explains it in more depth, I know you're running Ubuntu but they both use systemd https://www.redhat.com/sysadmin/systemd-automate-recovery

profile picture
전문가
Steve_M
답변함 3달 전
0

X service is associated with graphical desktop environment for GUI. Your Ubuntu probably have GUI installed. If you do not need GUI, you can switch from graphical.target to multi-user. target with the command

sudo systemctl isolate multi-user.target

To set this permanently,

sudo systemctl set-default multi-user.target
AWS
전문가
Mike_L
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠