반응형

# IT #/Linux 78

# linux 좀비 프로세스 죽이기 #

1. top 로 프로세스 현황을 보면 좀비 프로세스가 있는 경우가 있다두번째 줄 마지막에 2zombie [root@secure ~]# top -d 1top - 09:36:49 up 240 days, 22:16, 2 users, load average: 0.10, 0.15, 0.18Tasks: 366 total, 2 running, 362 sleeping, 0 stopped, 2 zombieCpu(s): 1.6%us, 3.2%sy, 0.0%ni, 95.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stMem: 16399032k total, 15599628k used, 799404k free, 547544k buffersSwap: 33551744k total, 256k used, 3355148..

# IT #/Linux 2018.07.19

# 리눅스 시간 설정 / 폐쇄망 시간 동기화 #

[리눅스 시간 관리]_리눅스 date 명령어를 이용한 시간 동기화 # date [MMDDhhmm[[CC]YY][.ss] 예) 2018년 6월 26일 오전 10시 00분 00초이면 # date 062610002018.00 ▶ 리눅스 시간 관리 ⊙ clock : CMOS의 시간을 조절하는 명령어 1. CMOS 시간 확인 [root@localhost ~]# clock -r 2012년 01월 09일 (월) 오후 02시 05분 57초 -1.121557 seconds 2. 리눅스 시스템 시간으로 CMOS 시간 설정하기 (clock -w) [root@localhost ~]# clock -r 2012년 01월 09일 (월) 오후 02시 05분 57초 -1.121557 seconds [root@localhost ~]# ..

# IT #/Linux 2018.06.26

# RHEL, CentOS에서 ntp 서버 설정하기(사설망 내부 서버들의 시간 동기화) #

RHEL, CentOS에서 ntp 서버 설정하기(사설망 내부 서버들의 시간 동기화) 사설망 내부 서버들의 시간 동기화를 위해서, ntp 서버 데몬을 사용하는 방법입니다. 먼저 시간의 기준이 되는 서버를 선정합니다. 예로 그 서버가 192.168.100.15 라고 합니다.그리고, 각 서버들이 192.168.100.x 네트워크에 속해있다고 가정합니다. 제일 우선적으로 모든 서버에 ntp 데몬을 설치하여야 합니다. [root@localhost ~]# yum install ntp Loaded plugins: dellsysid, fastestmirror Loading mirror speeds from cached hostfile * base: centos.tt.co.kr * extras: centos.tt.co...

# IT #/Linux 2018.06.26

# linux 6 텍스트 모드에서 GUI 모드로 변환하기 #

Ctrl + Alt + F1 ~ F6첫번째 ~ 6번째 터미널로 이동 Ctrl + Alt + F7 ~ F12첫번째 ~6번째 GUI로 이동 멈추거나(freezing) 기타 등등 혹은 실수로 텍스트 터미널로 들어갔을 때 Ctrl + Alt + F7~12 중 하나를 누르다 보면 gui로 돌아올 수 있다. 첨에 Ctrl + Alt + F7을 누르니까 speech-dispatcher와 saned가 disable 됐다고 수정하라고 뜨던데 Ctrl + Alt + F8을 눌렀더니 다시 GUI로 돌아왔다. 실수로 터미널로 잘 못 들어가서 어떻게 돌아오는지 몰라서 reboot 명령을 쳤었는데....ㅠ이젠 알게 되었다. 실수로 (혹은 의도적으로) Ctrl Alt F1로 텍스트 터미널에 들어갔을 때Ctrl Alt F7 을 누르..

# IT #/Linux 2018.05.29

# linux 새로운 디스크 포맷 및 마운트 방법 #

2TB 이상일 경우 parted [root@dsmaref ~]# parted /dev/sdc (파티션 구성) GNU Parted 2.1 Using /dev/sdc Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Error: /dev/sdc: unrecognised disk label (parted) mklabel New disk label type? gpt (parted) mkpart Partition name? []? File system type? [ext2]? ext4 Start? 0 End? -1 Warning: The resulting partition is not properly aligned for best ..

# IT #/Linux 2018.04.27

# linux 6 NTP 시간 동기화 / 타임서버와 시간 동기화 #

# linux 6 NTP 시간 동기화 / 타임서버와 시간 동기화 # 우리나라에서 운영되고 있는 NTP 서버kr.pool.ntp.orgtime.bora.nettime.kornet.net -----------------------------------------------"지금 시간이 맞는지 확인"[root@localhost /]# [root@localhost /]# date2017. 12. 01. (금) 13:51:41 KST ----------------------------------------------- " date 및 ntp 가 설치되어 있는지 확인 "[root@localhost /]# rpm -qa|grep daterdate-1.4-16.el6.x86_64system-config-date-1.9..

# IT #/Linux 2018.04.06

# linux 6 버전에서 새로운 디스크 추가 후 fdisk 로 포맷 및 마운트 작업 #

[root@localhost /]# fdisk /dev/sd sda sda1 sda2 sda3 sdb sdb1 [root@localhost /]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x34c1337c. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag ..

# IT #/Linux 2018.03.09
반응형