[URL] stocks.exchange

 

https://stocks.exchange

'___사이트URL' 카테고리의 다른 글

[URL] Easy Bash PS1 Generator  (0) 2018.10.23
[URL] HeidiSQL  (0) 2018.08.13
[URL] stocks.exchange  (0) 2018.06.27
[URL] SSL Server Test  (0) 2017.05.26
[URL] Python PyCharm  (0) 2017.05.15
Hewlett Packard Enterprise 고객 지원 센터(일련 번호 조회)  (0) 2016.05.16

[리눅스] syslog(rsyslog)로 로그시스템 구성


리눅스 syslog(rsyslog)로 로그시스템 구성

 

# mkdir -p /apps/syslog

 

# vi /etc/rsyslog.d/rsyslog-server.conf
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

 

# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514

 

#$template RemoteHost,"/apps/syslog/%$year%/%hostname%/%hostname%-%$year%%$month%%$day%%$hour%.log"
$template RemoteHost,"/apps/syslog/%$year%/%fromhost-ip%/%fromhost-ip%-%$year%%$month%%$day%%$hour%00-%$year%%

$month%%$day%%$hour%59.log"
*.* ?RemoteHost

 

# systemctl restart rsyslog

 

 

참고URL :
https://www.fibrevillage.com/sysadmin/221-rsyslog-rules-examples-on-linux
https://www.rsyslog.com/doc/master/configuration/properties.html

 

[리눅스] CentOS 7에 오라클 자바 설치하기

CentOS 7에 오라클 자바 설치하기

 

웹 페이지(rpm 패키지 링크 복사)
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

자바 파일 다운로드
# wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u172-b11/a58eab1ec242421181065cdc37240b08/jdk-8u172-linux-x64.rpm

 

설치
# yum install jdk-8u172-linux-x64.rpm

 

버전 확인
# java -version
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)

 

환경변수 확인
# echo $JAVA_HOME

 

 

환경변수 설정
# vi /etc/profile
export JAVA_HOME= /usr/java/jdk1.8.0_172-amd64/
export PATH=$PATH:$JAVA_HOME

 

profile 적용
# source /etc/profile

 

환경변수 확인
# echo $JAVA_HOME   
 /usr/java/jdk1.8.0_172-amd64/

 

 

PHP 7.2 설치(업그레이드) [CentOS 7 / remi RPM repository]


PHP 7.2 설치(업그레이드) [CentOS 7 / remi RPM repository]

 

설치 환경(운영체제 버전)
# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

 

CentOS 7.5 운영체제 기본 PHP 버전
# yum info php | egrep 'Name|Version'
Name        : php
Version     : 5.4.16

 

EPEL  설치
# yum -y install epel-release

 

REMI 리포지터리 설치
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

 

remi-php72 리포지터리를 활성화
# yum-config-manager --enable remi-php72

 

php 7.2 설치
# yum install -y php

# php -v
PHP 7.2.6 (cli) (built: May 23 2018 09:50:51) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

'___APM' 카테고리의 다른 글

[apache] apache(http) ab  (0) 2018.11.09
PHP 7.2 설치(업그레이드) [CentOS 7 / remi RPM repository]  (0) 2018.06.19
[nginx] nginx upstream 옵션  (0) 2016.03.16
[HTTP] HTTP Status Code  (0) 2015.08.12
[MariaDB] MariaDB 소스 설치  (0) 2015.08.04
[APM] APM 설치_20150209  (0) 2015.02.09

[리눅스] CentOS 6 에 rsyslog7 설치하기

CentOS 6 rsyslog7 설치하기

 

1. rsyslog7 설치 시 에러 발생

# yum install rsyslog7

Loaded plugins: fastestmirror, security

Resolving Dependencies

--> Running transaction check

---> Package rsyslog7.x86_64 0:7.4.10-7.el6 will be installed

--> Processing Dependency: libestr.so.0()(64bit) for package: rsyslog7-7.4.10-7.el6.x86_64

--> Running transaction check

---> Package libestr.x86_64 0:0.1.9-2.el6 will be installed

--> Processing Conflict: rsyslog7-7.4.10-7.el6.x86_64 conflicts rsyslog

--> Finished Dependency Resolution

Error: rsyslog7 conflicts with rsyslog-5.8.10-10.el6_6.x86_64

 You could try using --skip-broken to work around the problem

 You could try running: rpm -Va --nofiles –nodigest

 

2. yum shell에서 rsyslog7 설치 및 rsyslog 삭제

# yum shell

Loaded plugins: fastestmirror, security

Setting up Yum Shell

> install rsyslog7

Setting up Install Process

Loading mirror speeds from cached hostfile

 * epel: mirror.premi.st

> remove rsyslog

Setting up Remove Process

> run

--> Running transaction check

---> Package rsyslog.x86_64 0:5.8.10-10.el6_6 will be erased

---> Package rsyslog7.x86_64 0:7.4.10-7.el6 will be installed

--> Processing Dependency: libestr.so.0()(64bit) for package: rsyslog7-7.4.10-7.el6.x86_64

--> Running transaction check

---> Package libestr.x86_64 0:0.1.9-2.el6 will be installed

--> Finished Dependency Resolution

Downloading Packages:

(1/2): libestr-0.1.9-2.el6.x86_64.rpm | 19 kB     00:00

(2/2): rsyslog7-7.4.10-7.el6.x86_64.rpm | 1.8 MB     00:02

--------------------------------------------------------------------------------------------------------------

Total 486 kB/s | 1.8 MB     00:03

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing : libestr-0.1.9-2.el6.x86_64

  Installing : rsyslog7-7.4.10-7.el6.x86_64

warning: /etc/rsyslog.conf created as /etc/rsyslog.conf.rpmnew

  Erasing    : rsyslog-5.8.10-10.el6_6.x86_64

  Verifying  : libestr-0.1.9-2.el6.x86_64

  Verifying  : rsyslog7-7.4.10-7.el6.x86_64

  Verifying  : rsyslog-5.8.10-10.el6_6.x86_64

 

Removed:

  rsyslog.x86_64 0:5.8.10-10.el6_6                                                                                                                             

 

Installed:

  rsyslog7.x86_64 0:7.4.10-7.el6                                                                                                                              

 

Dependency Installed:

  libestr.x86_64 0:0.1.9-2.el6                                                                                                                                

 

Finished Transaction

> quit

Leaving Shell

 

# rpm -qa | grep rsyslog

rsyslog7-7.4.10-7.el6.x86_64

 

# service rsyslog restart

시스템 로거 종료 중:                                       [실패]

시스템 로거 시작 중:                                       [  OK  ]

 

◀ PREV 1234567···131 NEXT ▶