버글버글

[PuTTY] E325: ATTENTION 오류 본문

기타사항/기타

[PuTTY] E325: ATTENTION 오류

Bugle 2023. 5. 9. 10:00
반응형

PuTTY 서버 설정을 하던 도중, conf파일을 수정하려고 하는데 아래와 같은 오류가 발생하였다.

E325: ATTENTION

(1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with cauion.

(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/nginx/nginx.conf"to recover the changes (see ":hepl recovery").
If you did this already, delete the swap file "/etc/nginx/.nginx.conf.swp" to aboid this message.

 

영어를 못하는 나는...바로 파파고 번역기 돌려보았음..

해결방법

1. /etc/nginx/.nginx.conf.swp를 삭제하려고 찾아봤으나, 안보여서 find로 찾으니 어딘가에 박혀있길래

find /etc/nginx/.nginx.conf.swp

 

2. 지우려고 명령어를 입력 했으나..

rm /etc/nginx/.nginx.conf.swp

내 계정으로 해서 그런지 ㅋㅋㅋ 권한이 차단되어있음 ㅠㅠ

 

3. 그래서 권한이 있는 root 계정으로 접속하여서 지워보도록... 했다..

su

4. 다시 삭제 명령어 입력하니 성공함

5. 다시 서버 설정을 하러 돌아가서 명령어를 입력 했는데, 아까와 같은 오류는 뜨지 않았다.

vi /etc/nginx/nginx.conf

 

Readonly오류

 - 진행하다가 이 오류도 났었는데... 아마도..root계정이 아닌 내 계정으로 수정을 해서 권한이 없어서 수정을 못하는 듯 하다..

 

참고사이트

https://itisyo.tistory.com/entry/Linux-VI-%EC%97%90%EB%94%94%ED%84%B0-E325-ATTENTION-%ED%95%B4%EA%B2%B0%ED%95%98%EA%B8%B0

반응형