본문 바로가기
[linux] yum tutorial [linux] yum tutorial https://linuxmoz.com/linux-yum-tutorial/ -YUM 은 Redhat RHEL, CentOS, Fedora 등의 Linux distribution 에 사용된다.Yum 은 RPM repo 를 사용하며, package 의 설치, 삭제 등을 관리할 수 있다. -RPM 은 Redhat Package Manager 의 약자이다. -모든 RPM package update 하기$ yum update -한개의 package 만 설치하기$ yum install -특정 package 를 제외하며 update 하기$ yum —exclude=package update -패키지 삭제하기$ yum remove or$ yum erase -패키지 조회하기$ yum l.. 2017. 7. 7.
[vi] shortcut for undo and redo [vi] shortcut for undo and redo u (undo) : undoCtrl + R : redo Redo, undo, vi shortcut, [vi] shortcut for undo and redo 2017. 7. 5.
[vi] shortcut for moving to the end of the line and the first char of the line [vi] shortcut for moving to the end of the line and the first char of the line $ : move to end of the lineA (append) : move to end of line and change the mode to insert 0 : move to the beginning of the line.^ : move to the first non-whitespace character of the line.I (insert) : move to the beginning of the line and change the mode to insert $, append, beginning of the line, move to end, move to .. 2017. 7. 4.
Docker 에 대한 이해 Docker 에 대한 이해 http://bcho.tistory.com/805 -Docker 는 Linux 기반 & Container 기반 Runtime Open Source 이다.VM 과 비슷하면서 다르다. -VM 은.. Host OS 가 깔리고 그 위에 Hypervisor (VMWare, KVM, Xen 등 ) 가 깔리고, 그 위에 VM 이 만들어지는 구조이다.VM 은 x86 하드웨어를 가상화 한 것.다양한 종류의 OS 설치 가능 -Docker 도 VM 처럼 Docker Engine 이 Host OS 위에서 수행된다.VM 대신 Container 들이 생기는 구조인데, 이 Container 들은 Linux 기반의 OS만 수행 가능하다.Hardware 를 가상화 해주는 것이 아니라, Guest OS(Con.. 2017. 6. 8.
[Server구축/Tutorial] 권한 설정 [Server구축/Tutorial] 권한 설정 http://egloos.zum.com/slog2/v/3546476http://thinkpro.tistory.com/16-chmod 파일, 디렉토리 권한 수정 # chmod 755 file # chmod o+rw file // others 에 rw 권한 부여 # chmod -R 755 directory // 해당 directory 내 모든 파일과 디렉토리의 권한 수정 -umask 파일이 만들어질 때 허가권 기본값 # umask 022 // chmod 755 와 같다. 777 에서 빼는 개념 -chown 파일 소유자, 소유 그룹 수정 # chown userName file # chown userName:groupName file # chown -cR userN.. 2017. 6. 4.
[Server구축/Tutorial] MySQL 설치 [Server구축/Tutorial] MySQL 설치 http://jongkwang.com/?p=941 -yum install mysql 을 수행하면 낮은 버전이 설치된다.따라서 아래 사이트에서 자신에 맞는 rpm 을 구해야 한다. http://dev.mysql.com/downloads/repo cf) RPM 은 Redhat Package Manager -$wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm$ yum localinstall http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm$ yum update$ yum install mysql-community-se.. 2017. 6. 3.
[Server구축/Tutorial] 계정 생성 [Server구축/Tutorial] 계정 생성 http://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EA%B3%84%EC%A0%95_%EC%83%9D%EC%84%B1_useraddhttp://www.hobbyhobby.net/2012/02/linux.html-계정이 있는지 확인 # cat /etc/passwd | grep 계정명 -계정 + 홈 생성 # useradd 계정명 /etc/passwd 파일에 사용자 정보 설정/etc/group 파일에 그룹정보 설정/home/사용자명/ 위치에 홈 디렉토리 생성/var/spool/mail/ 디렉토리에 사용자명의 메일 파일 생성 -비밀번호 설정 # passwd 계정명 # echo 'CustomPassword' | passwd.. 2017. 5. 28.
[Server구축/Tutorial] Shell 기본 명령어들 [Server구축/Tutorial] Shell 기본 명령어들 -cf) root 일 경우 # 로 prompt 가 나오고, 일반 user 일 경우 $ 로 prompt 가 나온다. -# reboot // 서버 리부팅으로 root 계정만 사용 가능# poweroff // 서버를 끄는 명령어로 가급적 사용하지 않는 것이 좋다. $ passwd // 패스워드 바꾸는 명령어$ whoami // 어떤 계정으로 접속했는지 알 수 있다. -# /etc/init.d/network restart // 네트워크 재시작 명령, 잘못된 option 일 경우 문제가 생길 수 있음을 주의!! -$ ifconfig // 네트워크 관련 정보 출력 -$ cat /etc/*release* // 리눅스 버전 확인 -$ getconf LONG_.. 2017. 5. 27.
[Server구축/Tutorial] Nginx 설치 [Server구축/Tutorial] Nginx 설치 http://jongkwang.com/?p=941 -yum 은 Yellow dog Updater, Modified 의 약자로 RPM 기반의 시스템을 위한 자동 업데이트 겸 패키지 설치/제거 도구( RPM 은 Redhat Package Manager ) -$ yum list installed | grep fastestmirror // ping 이 빠른 yum 서버 자동 찾는 fastestmirror 설치 여부 조회$ yum install yum-plugin-fastestmirror yum-fastestmirror // fastestmirror 설치 -$ vi /etc/yum.repos.d/nginx.repo [nginx]name=nginx repobase.. 2017. 5. 21.
반응형