Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

88 total results found

LDAP구성-4. rootdn변경

2. Open-Infra Openldap 구성

LDAP root dn 패스워드 변경 변경할 패스워드값 생성 $> slappasswd $> New password: $> Re-enter new password: {SSHA}qZsVpahyjXOF1fkdlXgtLsfAr11JGMfj.h LDIF파일을 아래내용으로 파일 작성 $> cat password.ldif dn: OlcDatabase={2}bdb,cn=config replace: olcRootPW olcRootPW: {SSHA}qZsVp...

centos
ldap
openldap
samba
root dn

bash에서 조건문 사용

2. Open-Infra 쉘스크립트개발

쉘 스크립트에서 조건문 사용시 사용방법 숫자형 비교조건 설  명 i 작을 때 g 클 때 e 같을때 t 초과 (이하)   스크립트로 구현 i가 j보다 작은 값 일 때$> vi ./test.sh #!/bin/bash i=0 j=1 if [[ $i -lt $j ]] then echo "$i는 $j 보다 작아요" fi $> ./test.sh 0는 1 보다 작아요 i가 j보다 큰 값 일 때$> vi ./test...

bash
centos
if

urandom기반의 랜덤텍스트 생성

2. Open-Infra 쉘스크립트개발

/dev/urandom 기반으로 랜덤한 문자열 생성 대소문자/숫자 조합으로 8자리 문자열 생성$> cat test.sh #!/bin/bash random_char=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | sed 1q) echo $random_char $> ./test.sh Y6cJfCwk $> ./test.sh ie3L5AYO $> ./test.sh ICEgcZib ...

bash
urandom
centos
script

centos7에서 docker 설치

3. Container/Kubernetes

yum 리포지터리 추가 $> wget https://download.docker.com/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker.repo $> yum install docker-ce -y docker서비스 활성화 후 시작 $> systemctl enable docker --now Docker 정보 확인 $> docker info docker info Client: Context: d...

centos
centos7
docker

container에서 the input device is not a TTY 로그 출력시 조치

3. Container/Kubernetes

container에 저장된 데이터를 export할때 편리하게 하려고 crontab에 걸어놨는데, 다음날 보니 export된 데이터의 사이즈가 0k. $> ls -l total 212 -rw-r--r-- 1 root root      0 Jan 23 01:02 back-2022-01-23.sql 혹시나 싶어서 mail로그를 보니. 이런게 똭.. $> cat /var/spool/m...

docker
centos
the input device is not a TTY

QEMU tcp원격접속 허용하기

Linux 정보기록 컨테이너&가상화

libvirt.conf 수정 (주석해제) $> vi /etc/libvirt/libvirtd.conf listen_tls = 0 (기본값은 TLS통신) listen_tcp = 1 (기본값은 비활성화) tcp_port = "16509" (TCP열었을때 사용하는 포트) listen_addr = "0.0.0.0" 허용할 IP (기본값은 모두 허용) mdns_name = "VMHOST-001" (MDNS환경에서 해당정보, 이 값은 같은 네트워크 안에 있는 서버...

qemu
libvirt
centos
centos6

centos6.x drbd설치

2. Open-Infra 스토리지 기술정보

Centos6에서 DRBD rpm 으로 설치 [root@localhost ~]# rpm -ivh http://elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm [root@localhost ~]# yum install *drbd84* -y [root@localhost ~]# modprobe drbd [root@localhost ~]# lsmod | grep drbd drbd 297925 0 libcrc32c 8...

centos
centos6
drbd

Centos에서 HP PSP설치

2. Open-Infra 모니터링

hpe.com 에서 서버 모델별 패키지 파일 다운로드 snmp 서비스 설치 및 활성화 $> yum install net-snmp -y 압축 해제 $> tar -zxvf hp-psp-8.60-8-CentOS.tar.gz $> cd psp/CentOS/5/i386/current HP PSP 설치 및 구성하기 $> yum localinstall ./*.rpm $> /sbin/hpsnmpconfig This configuration scr...

centos
psp
hp

Centos에서 zabbix설치하기

2. Open-Infra 모니터링

OS : Centos6 사전에 필요한 툴 : apache, php, mysql $> yum install httpd mysql-server -y 필요패키지 설치 $> yum install -y net-snmp net-snmp-devel net-snmp-utils curl-devel libxml2-devel 컴파일&설치 $> groupadd zabbix $> useradd -g zabbix zabbix $> tar -zxvf zabbi...

centos
zabbix
monitoring
centos6

dell 서버 Open Manage Server Administrator설치

2. Open-Infra 모니터링

패키지 설치하기 $> wget -q -O – http://linux.dell.com/repo/hardware/OMSA_6.3/bootstrap.cgi | bash $> yum -y install srvadmin-all $> /opt/dell/srvadmin/sbin/srvadmin-services.sh start 접속방법 https://서버IP:1311로그인 계정은 root계정 테스트 : Dell 2950, Centos 5.8 x86centos 6버...

centos
omsa
srvadmin-add

비호환OS dell Dset 실행하기.

2. Open-Infra 모니터링

Dell에서 cli기반의 진단Tool인 Dset은 Dell에서 정식지원되지 않는 OS버전이라도 몇가지 파일을 수정하면 실행 가능합니다. (비호환OS이니 잘 안되도.. 어쩔수가 없어요.. ㅠㅠ) DellDset 실행파일 다운로드\\ (http://linux.dell.com) Dset 실행파일 편집 [root@localhost ~]# vi delldset_v2.1.0.112_A00.bin ... ... # rm...

dell
centos
dset

apache2 컴파일 정보 확인

2. Open-Infra WEB&WAS기술정보

아파치 컴파일했던 정보 확인할때.(아파치는 /usr/local/apache2에 설치되었다는 가정하에.) [ root@localhost ~]# cat /usr/local/apache2/build/config.nice #! /bin/sh # # Created by configure "./configure" \ "--prefix=/usr/local/apache2" \ "--enable-mods-shared=all" \ "--enable-modules=s...

apache
compile
config.nice
centos

Centos7에서 apache+perl 연동하기

2. Open-Infra WEB&WAS기술정보

Centos7에서 apache와 perl 연동하기 Mod_Perl 소스 다운로드 https://archive.apache.org/dist/perl/ https://www.apache.org/dyn/closer.cgi/perl/mod_perl-2.0.12.tar.gz Dependency 패키지 설치 $> yum install -y perl apr-devel perl-devel 압축 해제 후 컴파일 $> tar -zxvf mod_perl-2....

centos
apache
perl
mod_perl

roundcube 업데이트 후 로그인 ui변경

2. Open-Infra WEB&WAS기술정보

roundcube 업데이트 후 로그인 UI가 변경되는 경우. 원인 & 조치사항 roundcube config에 정의된 skin값이 larry (이전버전부터 사용한 UI)값이였기 때문에 해당 skin으로 변경된것. roundcube가 설치된 경로에서 설정 파일 열면 $ vi config.inc.php ... $config['skin'] = 'larry'; ... 라고 되어 있는데. skin을 elastic 으로 바꾸면 업데이트 전 UI로 돌아올 수 ...

roundcube
centos

webalizer 설치하기

2. Open-Infra WEB&WAS기술정보

패키지 설치하기 $> yum install -y gd-devel png-devel webalizer 설치하기 $> tar xvzf webalizer-2.23-05.tgz $> ./configure --prefix=/usr/local/webalizer --with-language=korean $> make; make install $> cd /usr/local/webalizer/etc $> cp -a webalizer.conf.sample weba...

centos
webalizer

웹로그 분석 Awstats 설치하기

2. Open-Infra WEB&WAS기술정보

Awstats설치하기 다운로드 URL - https://awstats.sourceforge.io/ 압축풀기&툴 이동 $> tar -zxvf awstats-7.3.tar.gz $> mv awstats-7.3 /usr/local/awstats/ awstats 설정 $> cd usr/local/awstats/ $> mkdir etc; mkdir logs $> cp wwwroot/cgi-bin/awstats.model.conf ./etc/test.kr...

apache
awstat
centos
webalizer

Centos5에서 dovecot 설치하기

2. Open-Infra SMTP 노트

Dovecot 설치 (centos 5.x버전) Dovecot 패키지 설치 $> yum install -y dovecot Dovecot 설정 $> vi /etc/dovecot.conf#protocols = imap imaps pop3 pop3s 에서 사용할 서비스만 기재 Ef) protocols = imap pop3 listen = * 추가 서비스 활성화 후 포트 리슨 확인 [root@localhost /]# chkconfig dovecot...

centos
centos5
pop3
imap
dovecot

centos6에서 dovecot 설치하기

2. Open-Infra SMTP 노트

활성화 서비스 설정 $> vi /etc/dovecot/dovecot.conf #protocols = imap pop3 lmtp 에서 주석 해제 후 사용할 서비스만 기재 Ef) protocols = imap pop3 #listen = *, :: 에서 listen = * 으로 변경 각 계정 메일 데이터 저장소 수동으로 설정 $> vi /etc/dovecot/conf.d/10-mail.conf mail_location = mbox:~/mail:INB...

centos
centos6
dovecot
pop3
imap