본문 바로가기

반응형

우분투

C276x260 우분투에서 rsyslog를 사용하여 로그를 원격으로 전송하는 방법 우분투에서 rsyslog를 사용하여 로그를 원격으로 전송하는 방법 rsyslog 패키지 설치 sudo apt-get update sudo apt-get install -y rsyslog 원격 rsyslog 서버 구성(받는 서버) 원격 rsyslog 서버를 설정해야 합니다. 이 서버는 원격 로그를 수신하고 저장할 것입니다. 1. 원격 rsyslog 서버에서 rsyslog 설정 /etc/rsyslog.conf 파일을 열고 다음 줄을 추가하여 UDP 또는 TCP 포트를 설정합니다. 로그를 수신할 포트를 지정합니다. vim /etc/rsyslog.conf # Provides UDP syslog reception $ModLoad imudp $UDPServerRun 514 # Provides TCP syslog r.. 더보기
C276x260 우분투에서 needrestart를 설치하고 사용하는 방법 우분투(ubuntu 22.04)에서 needrestart를 설치하고 사용하는 방법needrestart은 Ubuntu 시스템에서 시스템을 다시 시작해야 하는 경우를 확인하고 관리하기 위한 유틸리티입니다. 이 도구는 시스템에 설치된 패키지 업데이트, 라이브러리 변경 또는 커널 업데이트와 관련하여 시스템을 재시작해야 하는지 여부를 확인합니다. 그런 다음 필요한 경우 시스템을 다시 시작하도록 안내합니다.테스트 환경$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 22.04.1 LTSRelease: 22.04Codename: jammy1. needrestart 설치needresta.. 더보기
C276x260 우분투에서 LVM을 사용하여 ROOT 파일 시스템(vg0-lv--0)을 확장하는 방법 우분투에서 LVM을 사용하여 ROOT 파일 시스템(vg0-lv--0)을 확장하는 방법 테스트 환경 $ lsb_release -d Description: Ubuntu 22.04 LTS $ df -h | egrep -v tmpfs Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-lv--0 48G 9.7G 36G 22% / /dev/sda2 974M 127M 780M 14% /boot 현재 구성된 볼륨 확인 Physical volume 확인 pvs $ pvs PV VG Fmt Attr PSize PFree /dev/sda3 vg0 lvm2 a-- 더보기
C276x260 우분투에서 APT 패키지 매니저를 사용하여 APM 스택을 설치하는 방법 우분투에서 APT 패키지 매니저를 사용하여 APM(Apache, PHP, MySQL) 스택을 설치하는 방법 테스트 환경 $ cat /etc/os-release | egrep PRETTY_NAME PRETTY_NAME="Ubuntu 22.04 LTS" APT 업데이트 sudo apt-get update Apache2 설치 및 설정 Apache 설치 sudo apt-get install -y apache2 ssl-cert Apache 설정 echo "ServerName localhost" >> /etc/apache2/apache2.conf Apache 모듈 활성화 a2enmod rewrite a2enmod headers a2enmod ssl a2dismod -f autoindex Apache 버전 확인 ap.. 더보기
C276x260 우분투에서 apt 저장소를 변경하는 방법 우분투(Ubuntu)에서 apt 저장소(repository)를 변경하는 방법1. apt 저장소 확인현재 사용 중인 저장소 목록을 확인합니다.vim /etc/apt/sources.listsources.list더보기---cat /etc/apt/sources.list# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution.deb http://archive.ubuntu.com/ubuntu/ jammy main restricted# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted## Major bug fix u.. 더보기
C276x260 쿠버네티스 실습 환경(플레이그라운드) 쿠버네티스 실습 환경(플레이그라운드)O'Reilly Katacoda homehttps://katacoda.com로그인 필요없음운영체제 : Ubuntu"20.04.2 LTS (Focal Fossa)Play with Kuberneteshttps://labs.play-with-k8s.comdocker 또는 github 로그인 필요운영체제 : CentOS Linux 7 (Core)세션 및 모든 해당 인스턴스는 04:00:00 시간 후에 삭제됩니다. 더보기
C276x260 우분투에서 기본 텍스트 편집기를 변경하는 방법(ubuntu editor) 우분투에서 기본 텍스트 편집기를 변경하는 방법(ubuntu editor)update-alternatives 명령어는 Debian 계열의 Linux 시스템에서 여러 프로그램 간에 대안을 선택하거나 설정하는데 사용됩니다. 주로 여러 버전의 소프트웨어를 시스템에 설치할 때 유용하게 활용됩니다.기본 텍스트 편집기 변경(vim.basic)update-alternatives --config editor$ sudo update-alternatives --config editor대체 항목 editor에 대해 (/usr/bin/editor 제공) 4개 선택이 있습니다. 선택 경로 우선순위 상태----------------------------------------------------.. 더보기
C276x260 우분투에서 apt-get update 명령을 실행할 때 발생하는 GPG 오류를 해결하기 위한 방법 우분투에서 apt-get update 명령을 실행할 때 발생하는 GPG 오류를 해결하기 위한 방법 $ apt-get update ... 무시 http://us.archive.ubuntu.com precise/restricted Translation-ko_KR 무시 http://us.archive.ubuntu.com precise/universe Translation-ko_KR 내려받기 29.5 M바이트, 소요시간 1분 53초 (259 k바이트/초) W: GPG 오류: http://extras.ubuntu.com precise Release: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 16126D3A3E5C1192 W: gzip:/var/lib/apt/lists/partia.. 더보기

728x90
반응형