dmidecode # dmidecode -V 3.0 # dmidecode -h Usage: dmidecode [OPTIONS] Options are: -d, –dev-mem FILE Read memory from device FILE (default: /dev/mem) -h, –help Display this help text and exit -q, –quiet Less verbose output -s, –string KEYWORD Only display the value of the given DMI string -t, –type TYPE Only display the entries […]
[Linux] TIMEZONE 변경하기
시스템에서 사용 가능한 TIMEZONE 리스트 확인 timedatectl list-timezones 서울 설정 timedatectl set-timezone Asia/Seoul
[Fluentd] Fluentd 설치
Fluentd 설치하기 Linux 시스템에 설치하는 것을 기준으로 진행. 패키지 설치 or 소스 컴파일 설치 모두 가능하지만 소스 컴파일 방식으로 설치 진행. 의존성 zlib-devel openssl ruby 설치 System User Profile export LD_LIBRARY_PATH=/app/fluentd/ssl/1.1.1-pre6/lib:$LD_LIBRARY_PATH export PATH=/app/fluentd/ssl/1.1.1-pre6/bin:$PATH export RUBY_HOME=/app/fluentd/ruby/2.4.4 export PATH=$RUBY_HOME/bin:$PATH Install openssl from source openssl archive 다운로드 wget https://www.openssl.org/source/openssl-1.1.1-pre6.tar.gz archive 압축해제 tar -xvzf openssl-1.1.1-pre6.tar.gz -C /app/fluentd/ssl 설치 경로로 […]
[Fluentd] Fluentd 소개
Fluentd 소개 with Fluentd 내부 언어 Cruby 로 작성. 루비는 객체 지향 인터프리터 언어 https://www.ruby-lang.org/ko/about/ Cruby vs. Jruby The default Ruby, the one people think of as "just Ruby," is CRuby. JRuby is a Ruby interpreter written in Java. It’s written and maintained by a different team. It focuses hard on performance – especially for […]
[Regex] 전/후방 탐색
정규표현식 전방탐색과 후방탐색 정규표현식을 사용하여 문자열을 검색할 때, 특정 문자열의 위치 조건을 더해 정밀한 탐색이 가능하다. 흔히 쓰는 pcre 정규식과 vim 에서 쓰는 방식이 약간 다르다. 예제 apache 로그 0.0.0.0 – – [03/Jun/2019:03:05:45 +0900] “POST /xmlrpc.php HTTP/1.1” 200 418 0.0.0.0 – – [03/Jun/2019:03:51:56 +0900] “GET / HTTP/1.0” 400 362 0.0.0.0 – – [03/Jun/2019:03:52:07 +0900] “GET […]
[Linux] rsyslog timestamp format
vi /etc/rsyslog.conf #Use default timestamp format #$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat $ActionFileDefaultTemplate RSYSLOG_FileFormat service rsyslog restart https://rsyslog-5-8-6-doc.neocities.org/rsyslog_conf_templates.html https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/3/html/Installation_and_Configuration_Guide/Starting_rsyslog_Server.html
[Linux] php 설치
php 설치 의존 라이브러리 libxml2-devel libwebp-devel libjpeg-devel libpng-devel libXpm-devel libicu-devel 설치 1. Configuration ./configure –prefix=/apps/php/7.1.8 \ –with-config-file-path=/apps/php \ –with-config-file-scan-dir=/apps/php/conf.d \ –with-apxs2=/apps/httpd/bin/apxs –with-mysqli \ –with-pdo-mysql –enable-calendar \ –enable-sockets –enable-sysvsem \ –enable-sysvshm –enable-zip –with-zlib \ –with-curl=/apps/share/curl –with-gd \ –enable-mbstring –with-openssl=/apps/share/openssl \ –with-openssl-dir=/apps/share/openssl \ –with-jpeg-dir=/apps/php/img_format_dir/jpeg \ –with-png-dir=/apps/php/img_format_dir/png \ –with-xpm-dir=/apps/php/img_format_dir/xpm \ –with-webp-dir=/apps/php/img_format_dir/webp \ –enable-pcntl \ –enable-intl 2. Build make […]
[Linux] httpd 설치
Apache Httpd 설치 의존 패키지 버전 PROGRAM VERSION apr 1.6.2 apr-util 1.5.3 curl 7.30.0 pcre 8.00 openssl 1.0.2m httpd 2.4.27 apr 설치 1. Configuration ./configure –prefix=/apps/share/apr/1.6.2 2. Build make 3. Install make install apr-util 설치 1. Configuration ./configure –prefix=/apps/share/apr-util/1.5.3 \ –with-apr=/apps/share/apr 2. Build make 3. Install make install curl 설치 1. Configuration ./configure –prefix=/apps/share/curl/7.30.0 2. […]
[MySQL] mysql 설치
사전 준비 mysql 시스템 유저 생성 mysql:x:3306:1000::/home/mysql:/bin/bash 디렉토리 생성 및 권한 부여 엔진 경로 mkdir /apps/mysql chown mysql /apps/mysql 데이터파일 경로 mkdir /data/mysql chown mysql /data/mysql 로그 경로 mkdir /data/mysql chown mysql /logs/mysql my.cnf 파일 생성 및 권한 부여 touch /etc/my.cnf chwon mysql /etc/my.cnf mysql 설정 vi /etc/my.cnf [mysqld] user = mysql port = 3306 […]