본문 바로가기

728x90

리눅스

[draft] 우분투에 node와 npm을 설치하는 방법 우분투에 Node.js와 npm을 설치하는 방법우분투 리포지토리에 있는 Node.js 패키지를 사용하여 설치할 수 있지만 일반적으로는 Node.js 공식 버전을 설치하는 것이 좋습니다.테스트 환경$ cat /etc/lsb-releaseDISTRIB_ID=UbuntuDISTRIB_RELEASE=22.04DISTRIB_CODENAME=jammyDISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"NodeSource를 통해 설치1. NodeSource PPA 추가NodeSource PPA를 추가하고 apt-get update를 자동으로 실행합니다.curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -$ curl -fsSL http.. 더보기
[draft] 우분투 22.04 LTS 환경에서 apt(dpkg) 오류와 패키지 의존성 문제를 해결하는 방법 우분투 22.04 LTS 환경에서 apt(dpkg) 오류와 패키지 의존성 문제를 해결하는 방법테스트 환경$ cat /etc/lsb-releaseDISTRIB_ID=UbuntuDISTRIB_RELEASE=22.04DISTRIB_CODENAME=jammyDISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"문제 발생$ apt install nodejs...Errors were encountered while processing: mysql-server-8.0needrestart is being skipped since dpkg has failedE: Sub-process /usr/bin/dpkg returned an error code (1)시도 1: dpkg 상태 복구cd /var/lib.. 더보기
[draft] 우분투에서 MySQL 8을 바이너리 파일로 설치하는 방법 우분투에서 MySQL 8.0.31을 바이너리 파일로 설치하는 방법테스트 환경$ lsb_release -dDescription: Ubuntu 22.04.1 LTSMySQL 설치MySQL 바이너리 파일 다운로드☞ MySQL Community Downloads- https://dev.mysql.com/downloads/mysql1. 필수 패키지 설치sudo apt-get updatesudo apt-get install -y libaio1 libncurses5 libnuma12. MySQL 사용자 및 그룹 생성** ubuntu sudo 그룹에서 group id 27번을 사용하고 있음.더보기Ubuntu 패키지 매니저를 사용하여 MySQL을 설치할 때, mysql 계정 정보$ cat /etc/passwd | gre.. 더보기
GNU C 라이브러리(glibc)의 버전을 확인하는 방법 GNU C 라이브러리(glibc)의 버전을 확인하는 방법 우분투 운영체제의 버전 정보 확인 lsb_release -d $ lsb_release -d Description:Ubuntu 22.04.2 LTS 명령어로 확인 ldd 명령어를 사용하여 동적 링크 라이브러리를 조회하고 glibc의 버전 정보를 확인할 수 있습니다. ldd --version $ ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3) 2.35 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MER.. 더보기
CentOS 7에서 MySQL 8을 바이너리 파일로 설치하는 방법 CentOS 7에서 MySQL 8을 바이너리 파일(tar 아카이브)로 설치하는 방법 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) MySQL 설치 MySQL 바이너리 파일 다운로드 ☞ MySQL Community Downloads - https://dev.mysql.com/downloads/mysql 1. MySQL 계정 생성 groupadd -g 27 mysql useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -u 27 -g 27 mysql 생성된 mysql 계정 확인 cat /etc/passwd | grep mysql $ cat /etc/passwd | gre.. 더보기
[draft] Rocky Linux 9에서 Postfix 메일 서버를 설치하고 설정하는 방법 Rocky Linux 9에서 Postfix 메일 서버를 설치하고 설정하는 방법테스트 환경$ cat /etc/redhat-releaseRocky Linux release 9.1 (Blue Onyx)1. Postfix 설치hostnamectl 명령어로 호스트 이름 설정hostnamectl set-hostname pmail.sangchul.kr/etc/hosts 파일 편집하여 호스트 이름 설정sudo vim /etc/hosts192.168.0.52 pmail.sangchul.krPostfix 패키지 설치dnf install -y postfix설치 중에 Postfix의 기본 설정 대화식 대화창이 나타납니다. 기본 설정을 사용하려면 "OK"를 선택하고 진행합니다.Postfix 버전 정보postconf -d mai.. 더보기
ftps 설치 및 서버 구성(vsftpd : ftp+ssl) ftps 설치 및 서버 구성(vsftpd : ftp+ssl) vsftpd는 매우 안전한 FTP 데몬입니다. SFTP와 FTPS의 차이점 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) vsftpd 서버 및 클라이언트 패키지 설치 vsftpd : Very Secure FTP Daemon ftp : Internet file transfer program vsftpd 패키지 설치 yum install -y vsftpd ftp vsftpd 버전 정보 확인 $ vsftpd -v vsftpd: version 3.0.2 $ yum info ftp | grep Version Version : 0.17 vsftpd 서비스 시작 systemctl.. 더보기
FTP(vsftp) 전송 모드(Active Mode/Passive Mode) FTP(vsftp) 전송 모드(Active Mode/Passive Mode) 테스트 환경 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy vsftpd(ftp) 서버 설치 apt-get install -y vsftpd vsftpd 버전 정보 $ vsftpd -version vsftpd: version 3.0.5 vsftpd.conf(/etc/vsftpd.conf) 기본 설정 $ cat /etc/vsftpd.conf | egrep -v '^$|^#' listen=NO listen_ipv6=YES anonymous_enab.. 더보기

728x90