Linux/RedHat, CentOS, ubuntu
-
[ CentOS 7 ] cronolog 유틸을 이용한 Access Log 날짜별 적재Linux/RedHat, CentOS, ubuntu 2019. 4. 22. 13:11
Homepage : https://github.com/fordmason/cronolog 아파치 로그(httpd)를 cronolog를 이용하여 날짜별로 관리해주는 유틸이다. 웹 서비스를 체계적으로 분석하기 위해서는 우선 로그를 잘 적재할 필요가 있다. # yum install cronolog 설치가 않된다면 " yum install epel-release " # Extra Packages for Enterprise Linux 저장소 설치 # find / -name cronolog [ 프로그램 설치 확인 ] /usr/sbin/cronolog # vi /etc/httpd/conf/httpd.conf CustomLog "|/usr/sbin/cronolog /var/log/httpd/%Y/%m/%Y-%m-%d-a..
-
[ CentOS 7 ] iptables service installLinux/RedHat, CentOS, ubuntu 2019. 4. 19. 21:20
Docs : https://tecadmin.net/install-and-use-iptables-on-centos-rhel-7 Step 1. STOP And Disable Firewalld # systemctl stop firewalld # systemctl disable firewalld # systemctl is-enabled firewalld disabled Step 2. Install Iptables Service # yum install iptables-services # systemctl enable iptables # systemctl start iptables # systemctl is-enabled iptables enabled # systemctl status iptables
-
Linux tar backupLinux/RedHat, CentOS, ubuntu 2019. 4. 4. 20:58
option - c : create ( 새로운 파일을 생성 ) - v : verbose ( 처리중인 파일을 자세히 보여준다 ) - f : file ( 파일 저장) - z : gzip (gzip으로 압축하거나 푼다) Sample 1) # tar cvfz /backup/backup_etc.tar.gz /etc ( File Name ) (Target DIR) Sample 2) # tar cvfz /backup/tar_conf_backup.tzr.gz test1.conf test2.conf ( File Name ) (files)
-
[ CentOS 7 ] Loop Back Adapter ConfigurationLinux/RedHat, CentOS, ubuntu 2019. 4. 3. 21:49
1. LoopBack Interface 생성 # cat /etc/sysconfig/network-scripts/ifcfg-lo:0 DEVICE=lo:0 IPADDR=192.168.1.10 → VIP NETMASK=255.255.255.255 ONBOOT=yes 2. /etc/sysctl.conf에 아래와 같이 내용 추가 net.ipv4.conf.all.arp_ignore = 1 net.ipv4.conf.all.arp_announce = 2 net.ipv4.conf.lo.arp_ignore = 1 net.ipv4.conf.lo.arp_announce = 2 3. 서비스 재시작 # systemctl restart network # ifconfig
-
Centos influxDB 설치Linux/RedHat, CentOS, ubuntu 2018. 12. 30. 17:14
Download Link : https://portal.influxdata.com/downloadsInstall Guide : http://docs.influxdata.com/influxdb/v1.7/introduction/installation 설치환경 : CentOS release 6.8 1. repo 등록 [root@test ~]# cat /etc/yum.repos.d/influxdb.repo [influxdb]name = InfluxDB Repository - RHEL \$releaseverbaseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stableenabled = 1gpgcheck = 1gpgkey = https://rep..