리눅스
-
IIS 서버 백업 및 복원리눅스 2025. 3. 26. 09:59
Windows IIS서비스 하는 서버를 이전 시 IIS에 등록된 프로젝트나 설정이 많으면 다시 똑같이 구성하기가 번거롭게 된다.이럴 때 IIS 구성 백업을 사용해 보자. 복원 하려는 곳과 IIS 버전이 동일해야 오류가 없기 때문에 버전 먼저 확인하자.명령 프롬프트창을 열어 아래 명령어로 확인이 가능하다.reg query HKLM\SOFTWARE\Microsoft\inetstp 백업을 하기 위해서는 C:\Windows\System32\inetsrv 경로로 이동후 명령어를 입력해야 된다.cd C:\Windows\System32\inetsrv 해당 경로로 이동 했다면 아래 명령어로 백업을 진행한다.appcmd add backup IIS 백업이 된 것을 확인 하려면 아래 list 명령어로 확인하면 된다.a..
-
[Linux] 'Failed to start IPv4 firewall with iptables' 오류리눅스 2024. 9. 12. 16:32
서버 OS 새로 업데이트 혹은 설치하고 iptables를 올려야 할때 'Failed to start IPv4 firewall with iptables' 해당 오류로 올라오지 않을 경우 firewalld 가 켜져 있을 경우가 크다. # systemctl status firewalld위 명령어로 확인후 켜져 있으면 끄고 iptables 서비스를 시작하면 해결 # systemctl stop firewalld# systemctl disable firewalld # systemctl start iptables# systemctl enable iptables
-
리눅스(Linux) history 에 날짜, 시간 표시하기리눅스 2024. 4. 3. 16:39
종종 리눅스에서 전에 쳤던 명령어를 확인을 위해 history를 사용한다. 보통은 history 사용시 아래와 같이 줄 번호만 나오며, 여기에 날짜와 시간을 확인하기 위해 따로 설정해줘야 한다. # history 방법은 /etc/profile에 HISTTIMEFORMAT 변수를 추가해 주면 history 조회시 해당 명령어를 입력한 날짜, 시간이 표시 됩니다. # vim /etc/profile 해당 파일을 열어 아래쪽에 아래변수를 추가하면된다. HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S " 위와 같이 변수를 추가했으면 이제 설정을 적용시켜줘야 된다. 적용시키는 명령어는 아래와 같다. # source /etc/profile 적용 후 history 사용시 아래처럼 날짜와 시간이 나오는 것을..
-
curl: (60) SSL certificate problem: self signed certificate리눅스 2022. 12. 6. 18:44
셀프 ssl인증서를 사용하여 조건을 만들때 밑에 처럼 curl 사이트 접속이 안될때가 있다. curl https://www.abc.com curl: (60) SSL certificate problem: self signed certificate More details here: https://curl.haxx.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned ..
-
sudo apt update 서버 오류리눅스 2022. 9. 23. 17:52
sudo apt update 혹은 sudo apt-get update 나 apt install 을 할때 우분투 서버가 안맞아서 다운이 안될때가 있다. 이럴때는 한국서버로 바꿔주면 된다 카카오 서버가 가장 빠르기 때문에 카카오 서버로 변경 1.sources.list 열기 sudo vim /etc/apt/sources.list 2. sources.list 수정 vim command %s 를 사용해서 :%s/기존문자열/변경문자열 로 변경 %s/old-releases.ubuntu.com/mirror.kakao.com 혹은 변경할 주소를 old-releases.ubuntu.com 여기에 넣어 주면 된다. ex) %s/security.ubuntu.com/mirror.kakao.com 3. apt update 수정하..