[UNIX] UNIX cli 작업간 편하게 쓰기 위한 것
·
리눅스
stty erase ^?stty columns 100TERM=vt100export TERMTMOUT=0export TMOUT
[Centos6] mysql 및 apache connection 관련 설정
·
리눅스
- mysql 접속후 * Connection 관련 환경변수 값 확인 show variables like '%max_connection%'; show variables like '%wait_timeout%'; show global variables like '%wait_timeout%'; * 현재 Connection 관련된 상태들 보기 show status like '%connect%'; * Connection 관련 변수 설정(즉시 적용됨) set global max_connections=4000; set global wait_timeout=300; - Apache netstat -nap | grep :80 | grep ESTABLISHED | wc -l netstat -n|grep -F :80|egrep..
[리눅스] NTP 맞추기
·
리눅스
yum install -y ntp rdate vi /etc/ntp.conf server 0~3 부분들을 주석처리 마저 하고 server time.bora.net 추가 * 서비스 시작후 재부팅해도 유지하게끔 service ntpd start chkconfig --level 2345 ntpd on rdate -s time.bora.net
[리눅스] Mysql 설치(최종본)
·
리눅스
* 의존성 패키지 설치 yum -y install zlib curlyum -y install gcc g++ cpp gcc-c++yum -y install openssl openssl-develyum -y install ncurses-develyum -y install bzip2-develyum -y install libtermcap-devl libc-client-develyum -y install bisonyum -y install perlyum -y install make cmake groupadd mysqluseradd -M -c "MySQL" -d /usr/local/mysql -g mysql -s /bin/nologin mysql * 압축 푸는 것은 소스에 불과함 컴파일을 해서 새로운 디렉토리를 ..
google authenticator 를 사용하여 Linux ssh 에 OTP 적용하기
·
리눅스
설치source 로 설치Package 로 설치설정google authenticator 설정pam 설정ssh 서비스 설정SSH Client 설정SecureCRT SSH client사용TroubleShootingFailed to update secret file "/home/lesstif/.google_authenticator"로그인이 안 될 경우Ref google authenticator 는 Time-Based One-Time Password algorithm (TOTP) 를 구현한 프로젝트이다.Unix 용 PAM(Pluggable authentication module) 라이브러리와 유틸리티, 모바일 app 으로 나뉘어져 있으며 인증이 필요한 서비스(Ex: ssh 서버)에 적용하여 two factor 인..
Mrtg 설치 / gd configure 에러
·
리눅스
설치는 https://www.linux.co.kr/mrtg/index.htm 참조 gd configure 에러 뜰시 위와 같은 에러 뜰 시에 yum -y install gd-devel 으로 설치해주고 한다. 잘되면 위와 같이 뜬다. MRTG Crontab 설정
APM 설치 및 연동 Config
·
리눅스
CentOS 6.4 64bit 설치순서는 Mysql -> Apache -> PHP 순서 yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel libtool libtool-libs openldap ope..
리눅스 Apache 소스 코드 설치
·
리눅스
1 컴파일 설치 준비yum -y gccyum -y gcc-c++yum -y wget (초기 설차라서 wget 없을 경우)2 최신버전 다운로드http://httpd.apache.org/download.cgi 접속Stable Release - Lasted Version 아래의 버전 확인(예: 2.4.9) 후 클릭Source: 오른쪽의 bz2 파일 링크(예: httpd-2.4.9.tar.bz2) 클릭하여 다운로드3 다운로드cd /usr/local/src wget http://ftp.neowiz.com/apache/httpd/httpd-2.4.25.tar.bz2 wget http://ftp.neowiz.com/apache/apr/apr-1.5.2.tar.bz2 wget http://ftp.neowiz.com/a..
제 1701회 리눅스 1급 2차 문제 및 답
·
리눅스
문제 파일은 바로 아래에 있습니다.
Linux /proc 디렉터리의 주요 정보 파일 및 디렉터리
·
리눅스
/proc 디렉터리의 주요 정보 파일 및 디렉터리리눅스 마스터 1급 2차 시험 자료 acpi : 전원 관련 정보를 담고 있는 디렉터리 bus : pci와 같은 bus 정보를 담고 있는 디렉터리 cmdline : 부팅 시에 실행되는 커널 관련 옵션에 대한 정보를 담고 있다. cpuinfo : CPU에 관한 정보를 담고 있다. devices : 현재 커널에 설정된 디바이스 드라이버의 리스트 정보를 담고 있다. dma : 시스템에서 사용 중인 DMA 정보를 담고 있다. filesystems : 커널에 설정된 파일 시스템의 리스트 정보를 담고 있다. interrupts : 시스템에서 사용 중인 인터럽트 정보를 담고 있다 iomem : 메모리 번지별로 할당된 리스트 정보를 담고 있다. ioports : 시스템에서..