목록서___리눅스 (289)
변군이글루
SVN 서버 설치 및 설정 yum -y install subversion mkdir -p /app/svn cd /app/svn svnadmin create --fs-type fsfs repo1 echo 'OPTIONS="--threads --root /app/svn"' > /etc/sysconfig/svnserve cd /app/s..
리눅스 2TB 이상 디스크 사용하기(GPT 파티션 설정) > MBR과 GPT의 비교표 참고URL : http://blog.naver.com/PostView.nhn?blogId=leekh8412&logNo=100132406507 1. 운영 중인 커널 버전 확인 # uname -a Linux vm01 2.6.32-504.23.4.el6.x86_64 #1 SM..
" Arcy's vim environment (based on perky's) let g:Arcy="3.11" set nocompatible "set fileformat=unix set formatoptions=tcql set ai "set laststatus=2 "set wrapmargin=2 set visualbell set mat=3 showmatch "set term=xterm "..
sysfsutils(systool) 설치 systool 명령어는 sysfsutils 패키지에 포함되어 있음. Name : sysfsutils Description : This package's purpose is to provide a set of utilities for interfacing with sysfs. ..
Install Gitlab on CentOS 1. Prerequisites - Openssh yum install -y openssh-server - Postfix yum install -y postfix chkconfig postfix on - Cron yum install cronie 2. Download curl -O https://downloads..
git 설치(gitlab) gitlab 다운로드 https://packages.gitlab.com/gitlab/gitlab-ce 1. Install and configure the necessary dependencies # yum install curl openssh-server postfix cronie # service postfix start # chkconfig postfix on # lokkit -..
HP Smart Array CLI commands Show configuration /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information /opt/hp/hps..
itop - ITSM & CMDB OpenSource yum install php-devel iTop-2.1.0 mkdir log env-production conf dataroot chown apache.apache log env-production conf data mysql -u root -p c..
swap 메모리 초기화 [swap 메모리 사용빈도 설정] : vm.swappiness = 60 / 기본값 60 : (사용빈도 낮음: 0%-----------------------|------------100% 사용빈도 높음) root@lvm05:~# sysctl vm.swappiness vm.swappiness = 60 root@lvm05:~# cat /proc/sys/vm/swappiness ..
last 명령어 : 최근 시스템에 접속한 정보를 출력하는 명령어 [root@lvm08 log]# last root pts/0 192.168.56.1 Tue Aug 4 13:38 still logged in reboot &nbs..
SSH Key 배포(ssh 키 교환) [server 작업 : ssh key 생성] [anti1346@server01 ~]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/anti1346/.ssh/id_rsa): Enter passphrase (empt..
TFTP 서버 구축 # yum install tftp tftp-server # useradd -m -d /app/tftproot tftpd # vi /etc/xinetd.d/tftp # default: off # description: The tftp server serves files using the trivial file transfer \ # ..
PHP 수호신(Suhosin) 설치 [root@lvm07 src]# wget http://download.suhosin.org/suhosin-0.9.29.tgz [root@lvm07 src]# tar xvfz suhosin-0.9.29.tgz [root@lvm07 src]# cd suhosin-0.9.29 [root@lvm07 suhosin-0.9.29]# phpize [root@lvm07 suhosin-0.9...
MariaDB YUM Repository # vi /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 # y..
ipcalc - 아이피 계산기(ip계산기) # ipcalc -4bmnp 192.168.0.0/27 NETMASK=255.255.255.224 PREFIX=27 BROADCAST=192.168.0.31 옵션 -4bmnp -4 : ipv4 기준 -b : Broadcast 값 계산 -m: Netmask 값 계산 -n : Network 값 계산 -p : Prefix 값 계산 #..
paste 명령어 문법 paste [ -s ][ -d구분문자 ] 파일명(들) 옵션 -s : 각 파일을 순회하면서 paste를 수행한다. -d구분문자 : 어떠한 문자로 칼럼을 구분하는지 지정한다. 기본값은 탭 문자이다. 설명 paste를 사용할 때 서로 붙여지는 파일명을 ..
zabbix Item, Trigger 설정 zabbix agent 설정 root@galileoweb1:~# tail /etc/zabbix/zabbix_agentd.conf # UserParameter= UserParameter=t8081log[*],tail -n 1000 /var/lib/tomcat7/8081/logs/catalina.out | grep "$1..
원도우 TXT 파일 리눅스 TXT 파일로 변환 $ file windows.txt windows.txt: ASCII text, with CRLF line terminators $ sh cvt.sh #/bin/sh for i in $(ls -l | grep windows.txt | awk {'print $9'}) &nbs..
오라클 버전 정보 확인 $ sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Tue Apr 14 16:22:09 2015 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10..
Linux hpacucli 유틸리티_2 1. Array Card # hpacucli ctrl all show Smart Array P400 in Slot 0 (Embedded) Smart Array P800 in Slot 8 (sn: P98690K9SW20U7) 2. Logical Drive # hpacucli ctrl slot=0 ld all show Smart..
Zabbix 소스 설치 http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/ wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-2.4.4-1.el6.x86_64.rpm wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-agent-2.4.4-1.el6.x86..
Linux용 hpacucli 유틸리티 •# hpacucli •# hpacucli 도움말 • 컨트롤러 명령: hpacucli> ctrl all show config ## 컨트롤러의 세부 정보 표시 hpacucli> ctrl all show config detail hpacucli> ctrl all show status ## 컨트롤러의 상태 표시 ..
389 Directory Server # service dirsrv-admin restart Shutting down dirsrv-admin: Starting dirsrv-admin: httpd.worker: apr_sockaddr_info_get() failed for lvm02 httpd.worker: Could not reliably determine the server's fully qualified..
리눅스 고정 라우팅 추가 방법 [CentOS : Add Static Routing] cat /etc/sysconfig/network-scripts/route-eth1 ... # Add Static Routing 192.168.1.0/24 via 10.1.1.1 [Ubuntu : Add Static Routing] cat /etc/network/interfaces ..
LVM 디스크 추가 증설 [root@cacti01 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup-lv_root &nb..
Recommended System Swap Space Red_Hat_Enterprise_Linux 5 Amount of RAM in the System Recommended Amount of Swap Space 4GB of RAM or less a minimum of 2GB of swap space 4GB to 16GB of RAM a minimum of 4GB of s..
promiscuous mode - 비 스위치 네트워크에서는 이더넷 패킷이 네트워크의 모든 장치로 전달되고(broadcast), 스위치 네트워크에서느느 각 장치는 목적지가 자신이 아닌 패킷은 모두 버리도록 되어 있다(unicast) 그렇지만 장치(NIC)를 난잡 모드(promiscuous mode)로 만들어 놓으면 장치는 자신에게 오지 않은 패킷..
top 명령어 top - 09:47:52 up 2 days, 18:20, 1 user, load average: 0.19, 0.07, 0.02 Tasks: 75 total, 1 running, 74 sleeping, 0 stopped, 0 zombie Cpu(s): 1.5% us, 0.9%..
리눅스 프로세스별 메모리 사용량 확인법 프로세스 PID 확인 # ps -ef | grep named | grep -v grep | awk {'print $2'} 1728 프로세스 메모리 사용량 확인 ex) # cat /proc/PID값/status # cat /proc/1728/status | grep "Name\|Vm" Name: named VmPe..