본문 바로가기
반응형

DB,서버,OS 등26

[Centos7] ip 확인 ip address, ifconfig 일단 ip 확인하는 명령어를 날려봅시다. $ ifconfig command not found 라고 나오면 $ /sbin/ifconfig No such file or directory 라고 나오면 ip 명령어도 날려봅시다. $ ip addr centos7 에서는 ip 명령어로 볼수있다고 나와있는데 저는 안되네요. command not found 라고 나오면 ifconfig 를 사용할 수 있게 net-tools package 를 설치합니다. $ sudo yum install -y net-tools 설치가 되면 아래 명령어로 실행 $ ifconfig # 또는 $ /sbin/ifconfig 2020. 4. 17.
[Centos] centos6,7 timezone 변경하기 CentOS timezone config files and directories 1. / usr / share / zoneinfo / – 시스템 시간대 디렉토리에는 시간대 이름 별 파일이 포함됩니다. 예를 들어, / usr / share / zoneinfo / America / New_York 파일은 뉴욕의 시간대를 나타냅니다. 2. / etc / localtime – 파일 localtime 또는 / usr / share / zoneinfo / 디렉토리에있는 시스템의 올바른 시간대 파일에 대한 심볼릭 링크입니다. - 시간을 확인하는 command $ date $ ls -l /etc/localtime CentOS 7 에서 현재 timezone 변경 # 아시아의 타임존 리스트 보기 $ timedatectl .. 2020. 4. 7.
[Centos] centos7 에 firewall 설치 firewall install on centos7 방화벽 포트를 열기위해 $ firewall-cmd --permanent --zone=public --add-port=80/tcp 이런 명령어를 날렸는데 command not found 라는 응답이 날라오면 firewall 을 설치해야 합니다. 1. 설치 $ yum install -y firewalld 2. firewalld 시작 / 등록 $ systemctl unmask firewalld $ systemctl enable firewalld $ systemctl start firewalld 이제 firewall-cmd 사용 2020. 3. 19.
[Linux] 압축 명령어 tar, gz, zip tar # 압축하기 tar -cvf {fileName.tar} {folderName} # ex) $ tar -cvf fish.tar bird # bird 라는 폴더를 fish.tar 로 압축한다. # 압축해제 tar -xvf {fileName.tar} # ex) $ tar -xvf fish.tar 중괄호는 빼는겁니다~ tar.gz # 압축하기 tar -zcvf {fileName.tar.gz} {folderName} # ex) $ tar -zcvf fish.tar.gz bird # bird 폴더를 fish.tar.gz 파일로 압축함. # 압축해제 tar -zxvf {fileName.tar.gz} zip zip {fileName.zip} {folderName} # ex) $ zip fish.zip ./* #.. 2020. 2. 21.
[linux] Remove Directory ( 폴더 삭제 ) rm 명령어 readme.txt 라는 파일이 있을 때 rm readme.txt 삭제확인없이 바로삭제 할 때 rm -f readme.txt 폴더 삭제할 때 rm -r foldername/ 폴더가 비어있지않다면 -r 을 붙혀야 한다. rmdir 도 폴더를 삭제할 때 사용하지만 rm 을 사용해도 상관없다. 2020. 2. 20.
[Centos] centos 버전 확인하기 (Version Check Centos) 아래와 같은 방법들이 있다. # cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) # cat /etc/centos-release CentOS Linux release 7.4.1708 (Core) # cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https:/.. 2020. 2. 20.
728x90
반응형