'Cloud Service/CentOS'에 해당되는 글 2건

  1. 2015.07.03 CentOS Minimal 리눅스 서버
  2. 2015.07.03 Oracle VirtualBox 이미지 생성

vi 편집기 명령어

명령 모드로 돌아가려면 Esc 키를 누릅니다.

  • h , moves cursor left

  • , moves cursor down

  • k , moves cursor up

  • , moves cursor right

  • , delete character

  • ##x , delete ## characters

  • dw , delete word

  • dd , delete line

  • p , put last deletion after cursor

  • , undo last change

  • , turn on insert mode (hit the esc key twice to stop)

  • :w ,write to the file already named

  • :q , quit editing

  • :wq , write file and quit

  • :q! , quit without saving file

  • ctrl f , move forward one page

  • ctrl b , move backward one page

  • :/text , will search for next occurance of 'text' (hitting n will find next occurence)

  • :?text ,search backward for first occurrence of text

  • G , go to end of file

  • 1G , go to first line of file

  • set nu , to set line number

  • :w filename , write to the file named filename

  • yy , yank line into buffer

  • ##yy , yank ## lines into general buffer

  • CONTROL-G print information about file: name, current line number

  • :%s/pattern/text/ substitute first occurrence of pattern on each line with text

  • :%s/pattern/text/g substitute every occurrence of pattern with text

  • p , put contents of general buffer after current line

  • , put contents of general buffer before current line

  • :g/pattern/d delete every line containing pattern

시스템 업데이트 방법
네트워크가 설정되고 인터넷에 연결되고 나면, 가장 먼저 할 일은 업데이트 작업이다. 최초 배포판 이후에 알려진 버그 업데이트들을 시스템에 적용하는 것이다. 이 작업을 하기전에 몇가지 참고할 사항을 설명한다.

CentOS의 업데이트 서버 한국 미러서버에 mirror.khlug.org, data.nicehosting.co.kr가 있는데 속도 제한이 설정되어  1kb/sec의 속도가 나올정도로 느리다. 이로인해 업데이트 작업은 위서버들은 예외되도록 설정하자.
[root]# cat /etc/yum/pluginconf.d/fatestmirror.conf


나머지는 https://www.3rabbitz.com/f01c33e7d8367da2#857542b4ddd63403 여기서



'Cloud Service > CentOS' 카테고리의 다른 글

Oracle VirtualBox 이미지 생성  (0) 2015.07.03
Posted by MIDDLE
,

Oracle VM virtualVox를 설치합니다.


1. 설치 이후  새로만들기 버튼을 이용하여 이미지를 생성합니다. 

이름을 설정하고 이미지 OS의 종류와 해당 OS의 버전을 설정합니다.


2. OS와 버전 선택이 맞춘이후에는 Memory 크기를 선택합니다.


3. 하드 드라이브를 구성에 대해 선택하게 되는데

하드드라이브 자원을 가상화 하여 가상 하드드라이브를 만들거나 기존 가상하드 드라이브 파일사용하거나 가상하드를 추가하지 않기중 선택을 합니다.


4. 가상 하드드라이브 종류를 선택하여 나중에 이파일이 다른곳에 적용시키기를 원할때 이용가능합니다.


5. 물리적 하드드라이브에 저장할 것인지 선택하여 최대크기를 지정한 정적 할당을 할것인지 동적할당 하여 가상 디스크를 사용할때 고정된 최대크기가 커지지만 사용량이 줄어들어도 자동적으로 작아지지는 않습니다.


6. 파일 위치및 크기 선택 가상 드라이브 파일 위치와 가상 하드드라이브의 크기를 지정합니다.


생성된 가상 OS를 설정에 들어가

저장소에 접속하면 IDE 텝에 설치할 OS의 ISO파일을 삽입한 후 

해당 VM을 실행시키면 OS설치가 시작됩니다.



'Cloud Service > CentOS' 카테고리의 다른 글

CentOS Minimal 리눅스 서버  (0) 2015.07.03
Posted by MIDDLE
,