무작정 개발.Vlog

[Linux] starting oracle net listener...touch: cannot touch '/var/lock/subsys/listener': no such file or directory 해결

by 무작정 개발
반응형

Linux 환경에서 Oracle 설치 과정 중 환경 설정에서 아래의 에러를 만났다.

starting oracle net listener...touch: cannot touch '/var/lock/subsys/listener': no such file or directory

starting oracle net listener...touch: cannot touch '/var/lock/subsys/listener': no such file or directory
starting oracle net listener...touch: cannot touch '/var/lock/subsys/listener': no such file or directory

위의 에러 때문에 몇 번을 리눅스 및 오라클 삭제 설치 반복을 하였다..

그래서 아래의 명령어를 실행시켜도 에러가 발생했다.

$ systemctl start oracle-xe

해결 방법

우선 아래의 명령어를 실행시킨다.

sudo -e /etc/wsl.conf

위의 명령어를 실행하면 vi 편집과 유사한 화면이 나오는데 다음을 추가한다.

  • Linux의 nano 에디터 라고 한다. 혹시 몰라서 nano 에디터 단축키 관련 링크도 첨부

Linux nano 에디터 단축키

[boot]
systemed=true

위의 내용을 추가한 후에 우분투(Ubuntu)를 종료하기 위해 아래의 명령어를 실행한다.

$ wsl --shutdown

참고한 StackOverflow

 

System has not been booted with systemd as init system (PID 1). Can't operate

I use WSL2 on Windows 11. I want to run the systemctl command in Ubuntu 20.04, but it gives me the following error: System has not been booted with systemd as init system (PID 1). Can't operate. F...

askubuntu.com

필자는 여기까지 명령어를 실행 후 에러가 발생했던 명령어를 다시 실행하니 해결되었다.


 

systemctl st art oracle-xe
systemctl st art oracle-xe

 

반응형

블로그의 정보

무작정 개발

무작정 개발

활동하기