[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
위의 에러 때문에 몇 번을 리눅스 및 오라클 삭제 설치 반복을 하였다..
그래서 아래의 명령어를 실행시켜도 에러가 발생했다.
$ systemctl start oracle-xe
해결 방법
우선 아래의 명령어를 실행시킨다.
sudo -e /etc/wsl.conf
위의 명령어를 실행하면 vi 편집과 유사한 화면이 나오는데 다음을 추가한다.
- Linux의 nano 에디터 라고 한다. 혹시 몰라서 nano 에디터 단축키 관련 링크도 첨부
[boot]
systemed=true
위의 내용을 추가한 후에 우분투(Ubuntu)를 종료하기 위해 아래의 명령어를 실행한다.
$ wsl --shutdown
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
필자는 여기까지 명령어를 실행 후 에러가 발생했던 명령어를 다시 실행하니 해결되었다.
반응형
'OS > Linux' 카테고리의 다른 글
[Ubuntu] 우분투에 Java 설치 및 환경 변수 설정하기 (3) | 2023.02.27 |
---|---|
[FiliZilla] 오류: Connection timed out after 20 seconds of inactivity (0) | 2023.02.24 |
[Linux] E: Unable to locate package alien 에러 해결 (0) | 2023.02.24 |
[Linux] 리눅스(우분투) IP 주소 확인 방법 (0) | 2023.02.23 |
[Linux] WSL(Windows Subsystem for Linux) 설치 및 세팅(Ubuntu) (0) | 2023.02.23 |
블로그의 정보
무작정 개발
무작정 개발