Ubuntu 자동 업그레이드(unattended-upgrades) 끄는 방법

Ubuntu 서버는 기본으로 unattended-upgrades 가 켜져 있어서 보안 업데이트를 알아서 설치한다. DB 나 게임 서버처럼 패키지가 바뀌며 서비스가 재시작되면 곤란한 서버에서는 이걸 끄고 직접 업데이트하는 편이 낫다. 1. 자동 업데이트…

Continue ReadingUbuntu 자동 업그레이드(unattended-upgrades) 끄는 방법

Docker 로 Redis 띄우고 systemd 로 자동 시작하기

1. Docker 설치 [crayon-6b0327016e54e844524783/] 2. Redis 컨테이너 실행 -d 같은 docker 옵션은 이미지 이름 앞에 와야 한다. 이미지 뒤에 쓰면 컨테이너 안의 명령 인자로 넘어간다. [crayon-6b0327016e556840433800/] --restart unless-stopped 만 있어도…

Continue ReadingDocker 로 Redis 띄우고 systemd 로 자동 시작하기

EC2 에 EBS 볼륨 추가해서 xfs 로 마운트하기

AWS 콘솔에서 볼륨을 만들고 인스턴스에 연결한 뒤 서버에서 하는 작업이다. 예시는 300GB 볼륨을 MongoDB 데이터 폴더로 쓰는 경우다. 1. 추가된 디스크 확인 [crayon-6b0327016e77b200096352/] Nitro 기반 인스턴스는 콘솔에서 /dev/sdf 로 붙여도…

Continue ReadingEC2 에 EBS 볼륨 추가해서 xfs 로 마운트하기

WireGuard(wg-easy) 로 VPN 클라이언트에 포트포워딩하기

공인 IP 가 있는 서버에 wg-easy(Docker)로 WireGuard 를 띄우고, 집이나 사무실 PC 를 VPN 클라이언트로 붙여 두면 외부에서 그 PC 의 서비스로 들어갈 수 있다. 아래 예시에서 VPN 대역은 wg-easy…

Continue ReadingWireGuard(wg-easy) 로 VPN 클라이언트에 포트포워딩하기

azure ubuntu 설치 ver 2022

TimeZone Setting [crayon-6b0327016ecab393776272/] package update [crayon-6b0327016ecb2230428119/] Util Install & Setting [crayon-6b0327016ecb5090343955/] .ssh login 처리 after edit ~/.ssh/authorized_keys from have to login client's ~/.ssh/id_rsa.pub  sudoer 처리 after modify /etc/sudoers.d/init-user zsh Install…

Continue Readingazure ubuntu 설치 ver 2022