본문 바로가기

Linux

(59)
[ Linux ] FTP 서버 설치 1. CentOS7 [ FTP 서버 ] yum -y install vsftpd mkdir -p /app/repo/ftp chmod 775 /app/repo/ftp chmod 777 /app/repo/ftp/upload sed -i "s/^write_enable.*//g" /etc/vsftpd/vsftpd.conf sed -i "s/^anon_upload_enable.*//g" /etc/vsftpd/vsftpd.conf sed -i "s/^anon_root.*//g" /etc/vsftpd/vsftpd.conf sed -i "s/^pasv_enable.*//g" /etc/vsftpd/vsftpd.conf sed -i "s/^pasv_min_port.*//g" /etc/vsftpd/vsftpd.conf sed..
[ Linux ] TFTP 서버 설치 1. CentOS7 [ TFTP 서버 ] yum -y install tftp-server xinetd mkdir -p /app/repo/tftp chmod 777 /app/repo/tftp cat /app/repo/tftp/file01 chmod 777 /app/repo/tftp/file01 ip route [ 리눅스 클라이언트 ] yum -y install tftp TFTP_SERVER_IP=192.168.108.50 mkdir -p /app/tmp cd /app/tmp firewall-cmd --direct --permanent --add-rule ipv4 raw OUTPUT 0 -j CT -p udp --helper tftp firewall-cmd --reload firewall-cmd --list..
[ Linux ] Quota 활용 쿼터 (Quota) 파일시스템의 사용자나 그룹이 생성할 수 있는 파일의 용량 및 갯수를 제한 1. CentOS7 # quota 설치 확인 rpm -qa quota # quota 설치 yum -y install quota # root 시스템 quota 설정 확인 mount | grep ' / ' # "noquota"는 기본 커널 설치 옵션이기 때문에, 커널 부팅 옵션에서 변경 sed -i "s/rhgb quiet/rhgb quiet rootflags=uquota,pquota/g" /etc/default/grub # 커널 설정 파일을 백업 cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig # 커널 부팅 옵션 반영 grub2-mkconfig -o /boot/grub2/g..
[ Linux ] LVM 활용 LVM(Logical Volume Manager) Logical Volume을 효율적이고 유연하게 관리하기 위한 커널의 한 부분이자 프로그램 논리 볼륨을 확장 및 축소하여 관리 가능( 단 xfs 시스템은 축소 x ) Physical Volume(물리 볼륨) : /dev/sda1, /dev/sdb2 등의 파티션 Volume Group(볼륨 그룹) : 물리 볼륨을 합쳐서 1개의 물리 그룹으로 만드는 것 Logical Volume(논리 볼륨) : 볼륨 그룹을 1개 이상으로 나눠서 논리 그룹으로 나눈 것 0. 환경 설정 # centos7의 경우 yum -y install lvm2 # ubuntu20의 경우 apt-get -y install lvm2 1. LVM 생성 # sdb LVM 으로 설정 # fdisk /..
[ Linux ] ORACLE 19c 서버 설치 1. CentOS7 [ ORACLE 19c 서버 ] ※ 서버의 메모리를 4GB 이상으로 설정하지 않을 경우 설치 되지 않음 ORACLE_SERVER_IP=$(ifconfig | grep -A 2 ens | grep "inet " | awk '{ print $2 }') # 오라클 설치 폴더 생성 mkdir -p /app/dbms/oracle/product/19.0.0/dbhome_1 # 다운로드 받은 LINUX.X64_193000_db_home.zip 파일을 이동 mv LINUX.X64_193000_db_home.zip /app/dbms/oracle/product/19.0.0/dbhome_1 # 오라클은 툴 내부에서 호스트 이름을 통해 IP를 조회하기 때문에 # 호스트 이름과 서버의 아이피를 매핑시켜주어야..
[ Linux ] GIT 서버 설치 [ GIT 서버 ] yum -y install git-core useradd git echo -e "1234\n1234" | passwd git mkdir -p /home/git/linux_proj1.git cd /home/git/linux_proj1.git git init --bare --share chown -R git:git /home/git/linux_proj1.git [ 윈도우 클라이언트 ] git clone git@192.168.108.67:linux_proj1.git git status git add * -- git user 등록 git config --global user.email "hmwoo@hmwoo.com" git config --global user.name "hmwoo" git ..
[ Linux ] NFS 서버 설치 1. CentOS7 [ NFS 서버 ] NET_INTERFACE=`ls /sys/class/net | grep -v lo | head -1` NFS_SERVER_IP=`ip route | grep -e ${NET_INTERFACE} | grep src | awk '{print $9}'` # nfs 서버는 6개의 포트를사용 # prtmap(portmapper) : rpc 통신을 하는 nfs서버에게 클라이언트가 rpc 통신 사용 포트를 질의하는데 사용 (111) # rpc.nfsd : rpc 통신 요청 처리를 위한 포트 (2049) # rpc.mountd : 클라이언트가 마운트 요청을 할때 /etc/exports 설정에 따라 마운트 요청을 처리하기 위한 포트 (random) # rpc.statd : rpc...
[ Linux ] VNC 서버 설치 1. CentOS7 [ VNC 서버 ] yum -y install tigervnc-server # vnc 서버는 접속할 사용자를 # 미리 정해 사용자에게 디스플레이 번호를 # 할당해야함 원본 파일을 복사하여 # 디스플레이 번호 지정 /usr/bin/cp -f /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service sed -i "s//root/g" /etc/systemd/system/vncserver@:1.service firewall-cmd --permanent --add-port=5900-5903/tcp firewall-cmd --reload firewall-cmd --list-all echo -e "123456\n..