wyyoon의 등록된 링크

 wyyoon로 등록된 티스토리 포스트 수는 49건입니다.

리눅스 DNS 서버 구축 [내부링크]

DNS란 네트워크에서 도메인이나 호스트 이름을 숫자로 표기된 IP 주소로 해석해주는 TCP/IP 네트워크 서비스를 의미합니다. 1. bind 패키지 설치 # yum -y install bind bind-chroot bind-utils 2. named.conf 설정 # vi /etc/named.conf options { listen-on port 53 { any; }; // 53번 포트 외부 접근 허용 listen-on-v6 port 53 { none; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/v..

[CentOS7] SWAP 메모리 늘리기 [내부링크]

스왑은 물리적 RAM 메모리 양이 가득 찰 때 사용되는 디스크의 공간입니다. Linux 시스템에서 RAM이 부족하면 비활성 페이지가 RAM에서 스왑 공간으로 이동합니다. 스왑 공간은 전용 스왑 파티션 또는 스왑 파일의 형식을 취할 수 있습니다. 대부분의 경우 실행할 때 사용합니다. 가상 시스템의 스왑 파티션이 없으므로 스왑 파일만 생성할 수 있습니다. 스왑 파일 생성 스왑 공간으로 사용할 파일을 생성합니다. [root@localhost ~]# fallocate -l 1G /swapfile 시스템에서 fallocate 유틸리티를 사용할 수 없거나 fallocate 실패라는 오류 메시지가 표시되는 경우 작업이 지원되지 않습니다. 다음 명령을 사용하여 스왑 파일을 생성합니다. [root@localhost ~]..

오픈스택 클라우드 서버 구축(Stein)(13)-Block Storage(Cinder) 설정(Multi) [내부링크]

#Storage Node 설정 1) Configure Storage Node. 더보기 [root@storage ~]# yum -y install nfs-utils [root@storage ~]# vi /etc/idmapd.conf # 5번 줄 수정 Domain = srv.world [root@storage ~]# vi /etc/cinder/cinder.conf # add follows in the [DEFAULT] section enabled_backends = lvm,nfs # 마지막 줄 추가 [lvm] target_helper = lioadm target_protocol = iscsi # IP address of Storage Node target_ip_address = 10.0.0.50 volume..

오픈스택 클라우드 서버 구축(Stein)(12)-Block Storage(Cinder) 설정(NFS) [내부링크]

#Storage Node 설정 1) Configure Storage Node. 더보기 [root@storage ~]# yum -y install nfs-utils [root@storage ~]# vi /etc/idmapd.conf # line 5: uncomment and change to the own domain name Domain = srv.world [root@storage ~]# systemctl start rpcbind [root@storage ~]# systemctl enable rpcbind [root@storage ~]# vi /etc/cinder/cinder.conf # add follows in the [DEFAULT] section enabled_backends = nfs # ad..

오픈스택 클라우드 서버 구축(Stein)(11)-Block Storage(Cinder) 설정(LVM) [내부링크]

#Storage Node 설정 1) Create a volume group for Cinder on Storage Node. 더보기 [root@storage ~]# pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created [root@storage ~]# vgcreate -s 32M vg_volume01 /dev/sdb1 Volume group "vg_volume01" successfully created 2) Configure Cinder Volume on Storage Node. 더보기 [root@storage ~]# vi /etc/cinder/cinder.conf # add follows into [DEFAULT] section enab..

오픈스택 클라우드 서버 구축(Stein)(10)-Block Storage(Cinder) 구성 [내부링크]

#Controller Node 설정 1) Add a User or Endpoint for Cinder to Keystone on Control Node. 더보기 # add cinder user (set in service project) [root@Controller ~(keystone)]# openstack user create --domain default --project service --password servicepassword cinder +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | defau..

오픈스택 클라우드 서버 구축(Stein)(9)-LBaaS V2 설치 및 설정 [내부링크]

# Controller Node 설정 더보기 [root@Controller ~(keystone)]# yum --enablerepo=centos-openstack-stein,epel -y install openstack-neutron-lbaas net-tools [root@Controller ~(keystone)]# vi /etc/neutron/neutron.conf service_plugins = router,lbaasv2 [root@Controller ~(keystone)]# vi /etc/neutron/neutron_lbaas.conf # 마지막 줄에 추가 [service_providers] service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drive..

오픈스택 클라우드 서버 구축(Stein)(8)-Dashboard 설치 및 설정 [내부링크]

#Controller Node 설정 1) Install Horizon 더보기 [root@Controller ~(keystone)]# yum --enablerepo=centos-openstack-stein,epel -y install openstack-dashboard 2) Configure Horizon. 더보기 [root@Controller ~(keystone)]# vi /etc/openstack-dashboard/local_settings # 39번째 줄 Dashboard 접속 아이피 설정 ALLOWED_HOSTS = ['xxx.xxx.xxx.xxx/24', 'localhost'] # 65번째 줄 주석 해제 OPENSTACK_API_VERSIONS = { "identity": 3, "volume": ..

오픈스택 클라우드 서버 구축(Stein)(7)-네트워크 서비스(Neutron) Configure Networking(FLAT/VXLAN) [내부링크]

# Controller Node 설정 1) Change settings on Control Node. 더보기 [root@Controller ~(keystone)]# vi /etc/neutron/plugins/ml2/ml2_conf.ini # 마지막 줄 tenant_network_types 수정 [ml2] type_drivers = flat,vlan,gre,vxlan tenant_network_types = vxlan # 마지막 줄에 추가 [ml2_type_flat] flat_networks = physnet1 [ml2_type_vxlan] vni_ranges = 1:1000 [root@Controller ~(keystone)]# systemctl restart neutron-server # Network..

오픈스택 클라우드 서버 구축(Stein)(6)-네트워크 서비스(Neutron) 설치 및 설정 [내부링크]

#Controller Node 설정 1) Neutron 서비스 사용자 및 역할 추가 더보기 [root@Controller ~(keystone)]# openstack user create --domain default --project service --password servicepassword neutron +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | c5e87c9b460e4f16801b4102019c97e6 | | domain_id | default | | enab..

오픈스택 클라우드 서버 구축(Stein)(5)-컴퓨트 서비스(Nova) 설치 및 설정 [내부링크]

#Controller Node 설정 1) Add users and others for Nova in Keystone. 더보기 [root@Controller ~(keystone)]# openstack user create --domain default --project service --password servicepassword nova +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | c5e87c9b460e4f16801b4102019c97e6 | | domain_id | ..

오픈스택 클라우드 서버 구축(Stein)(4)-이미지 서비스(Glance) 설치 및 설정 [내부링크]

#Controller Node 설정 1) Add users and others for Glance in Keystone. 더보기 [root@Controller ~(keystone)]# openstack user create --domain default --project service --password servicepassword glance +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | c5e87c9b460e4f16801b4102019c97e6 | | domain_i..

오픈스택 클라우드 서버 구축(Stein)(3)-인증 서비스(Keystone) 설치 및 설정 [내부링크]

#Controller Node 설정 1) Add a User and Database on MariaDB for Keystone. 더보기 [root@Controller ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 9 Server version: 10.3.10-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current..

오픈스택 클라우드 서버 구축(Stein)(2)-오픈스택 기본 패키지 설정 [내부링크]

#Controller Node 설정 1) Add the repository of Openstack Stein. 더보기 [root@Controller ~]# yum -y install centos-release-openstack-stein [root@Controller ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-OpenStack-stein.repo 2) Install MariaDB server. 더보기 [root@Controller ~]# yum --enablerepo=centos-openstack-stein -y install mariadb-server [root@Controller ~]# vi /etc/my.cnf [mysqld] ..

오픈스택 클라우드 서버 구축(Stein)(1)-공통 기본 설정 [내부링크]

#Controller, Network, Compute Node 설정 1. Install Chrony and Configure NTP server 1) Install Chrony 더보기 [root@Controller]# yum -y install chrony [root@Controller]# vi /etc/chrony.conf #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst server time.bora.net iburst allow 10.0.0.0/24 [root@Controller]# sy..

Install Zabbix agent AIX server [내부링크]

1. agent download https://www.zabbix.com/download 2. 그룹 생성 mkgroup zabbix 3. 유저 생성 및 그룹 지정 mkuser pgrp='zabbix' groups='zabbix' zabbix 4. configuration directory 생성 mkdir /etc/zabbix 5. log directory 생성 mkdir /var/log/zabbix/ 6. log directory 권한 설정 chown -R zabbix:zabbix /var/log/zabbix/ 7. configuration directory 생성 mkdir -p /usr/local/etc/ 8. zabbix process file directory 생성 mkdir -p /var/run/..

SYN/DoS/DDoS Protection [내부링크]

Protection against DDoS /ip firewall address-list add list=ddos-attackers add list=ddos-target /ip firewall filter add action=return chain=detect-ddos dst-limit=32,32,src-and-dst-addresses/10s add action=add-dst-to-address-list address-list=ddos-target address-list-timeout=10m chain=detect-ddos add action=add-src-to-address-list address-list=ddos-attackers address-list-timeout=10m chain=detect-d..

sendmail 큐에 쌓인 메일 바로 발송하기 [내부링크]

sendmail 큐에 쌓인 메일 바로 발송하기 /usr/sbin/sendmail -oQ/var/spool/mqueue -oT1d -q -v

Mikrotik openvpn 설정 [내부링크]

/certificate add name="KR" country="KR" state="KR" locality="seoul" organization="조직명" unit="조직명" common-name="KR" key-size=4096 days-valid=3650 key-usage=crl-sign,key-cert-sign /certificate sign "KR" ca-crl-host=127.0.0.1 name="KR" /certificate add name="server" country="KR" state="KR" locality="seoul" organization="조직명" unit="조직명" common-name="server" key-size=4096 days-valid=3650 key-usage=di..

Alteon L4 DSR 구성 설정 [내부링크]

Alteon L4 DSR 구성 설정 내역 - DSR 구성을 하기위해서 nonat ena 및 submac "ena" 설정을 추가해야함 [L4 설정 내역] /c/sys/access snmp r http ena tnet ena /c/l3/if 1 ena ipver v4 addr 192.168.1.2 mask 255.255.255.0 broad 192.168.1.254 /c/l3/gw 1 ena ipver v4 addr 192.168.1.1 /c/l3/dns prima 168.126.63.1 secon 168.126.63.2 /c/sys/ntp on prisrv 203.248.240.140 tzone +9:00 /c/slb on /c/slb/adv direct ena submac "ena" /c/slb/real..

WebtoB License 적용 가이드 [내부링크]

WebtoB License 적용 : "license.dat" 파일 Action UNIX/Linux Windows 1. License 디렉토리로 이동 $WEBTOB_HOME/license $WEBTOB_HOME/license 2. 기존 License Backup cp license.dat license.dat.old copy license.dat license.dat.old 3. 신규 license 파일 적용 FTP를 이용하여 license 파일을 license 디렉토리로 upload FTP 또는 copy 기능을 이용하여 license 디렉토리로 upload 또는 copy 4. config 파일 compile WebtoB 설치 홈 디렉토리 /config 이동 아래의 명령어를 수행하여 compile # ws..

JEUS License 적용 가이드 [내부링크]

JEUS License 적용 : "license" 파일 Action UNIX/Linux Windows 1. License 디렉토리로 이동 $JEUS_HOME/license $JEUS_HOME\license 2. 기존 License Backup cp license license.old copy license license.old 3. 신규 License 파일 적용 FTP를 이용하여 license 파일을 license 디렉토리로 upload FTP 또는 copy 기능을 이용하여 license 디렉토리로 upload 또는 copy 4. License 적용 확인 (Demo License 경우 left days 및 DUE-DAY 표시) - 정식 License - 1.Prompt>jeusadmin -licensed..

Tibero user 패스워드 및 tablespace 변경 [내부링크]

Tibero user 패스워드 변경 alter user 사용자명 identified by 바꿀비밀번호; Tibero tablespace 변경 alter user 사용자명 default tablespace 바꿀테이블스페이스명;

Tibero 유저 생성 및 권한 부여 [내부링크]

Tibero user 및 tablespace 생성 create user smice identified by "password" default tablespace "tablespace_name"; Tibero user 권한 부여 grant connect, resource to 'user';

Tibero tbexport/tbimport 명령어 [내부링크]

Tibero tbexport tbexport port=8629 sid=TEST username=sys password='password' user='user' file=test.dat log=test_exp.log script=y Tibero tbimport tbimport port=8629 sid=TEST username=sys password='password' user='user' file=test.dat log=test_imp.log ignore=y

[Linux] find 명령어로 오래된 파일 삭제하기 [내부링크]

* 일정기간 지난 파일 삭제 명령 - 1일 지난 파일 삭제 예 find [디렉토리] -ctime +0 -exec rm -f {} \; * 일정기간 지난 파일 삭제 명령 - 7일 지난 파일 삭제 예 find [디렉토리] -ctime +7 -exec rm -f {} \; * 수정한지 3일 이내 ( -mtime -3 ) 의 파일만 ( 백업할 때 유용 ) find . -mtime -3 -type f -ls * 수정한지 30분 이내 ( -mmin -30 ) 의 파일만 find . -mmin -30 -type -f -ls * 특정용량 이상되는 파일 찾기 - 10MB 이상 되는 파일 찾기 예 find [디렉토리] -size +1000k -exec ls -al {} \; * 생산된지 30일 이상 된 파일만 삭제 fin..

리눅스 네트워크 속도 제한 [내부링크]

* 소스 코드 cat /etc/init.d/shaping #!/bin/bash # # tc uses the following units when passed as a parameter. # kbps: Kilobytes per second # mbps: Megabytes per second # kbit: Kilobits per second # mbit: Megabits per second # bps: Bytes per second # Amounts of data can be specified in: # kb or k: Kilobytes # mb or m: Megabytes # mbit: Megabits # kbit: Kilobits # To get the byte figure from bits, divid..

Alteon L4 image 업로드/다운로드 [내부링크]

1. Image를 이용한 Upgrade – UTP나 원격에서 업그레이드 1) TFTP Server를 구축하여 놓는다. 2) 이미지 파일을 준비한다. 3) L4 Switch에 로긴한다. 현재 이미지 상태를 확인 > /boot/cur 4) /boot/ptimage 명령어로 이미지를 PC에 받아 놓는다.(기존 이미지 백업) 5) /boot/gtimage 명령어를 실행하여 이미지를 L4에 업로드한다. 6) TFTP Server의 IP주소, 그리고 이미지 파일명을 입력한다. 7) 전송이 끝날때까지 기다렸다고, 전송이 다 되었다는 메세지가 나오면 리부팅할거냐고 하는데, yes한다. 2. 이미지를 PC에 백업 받기 >> Boot Options# ptimg Enter name of Switch software imag..

Alteon L4 패스워드 초기화 [내부링크]

Enter password: forgetMe! 위와 같이 대소문자 잘 구별하여 입력합니다. >>>>>>>>>>>>>>>>> PASSWORD FIX-UP MODE

Alteon L4 공장 초기화 [내부링크]

>> Main# boot ------------------------------------------------------------ [Boot Options Menu] image - Select software image to use on next boot conf - Select config block to use on next boot gtimg - Download new software image via TFTP ptimg - Upload selected software image via TFTP reset - Reset switch [WARNING: Restarts Spanning Tree] cur - Display current boot options >> Boot Options# conf C..

Alteon L4 패스워드 초기화 [내부링크]

Lost Password Recovery Procedure step by step: 1. Power-off and on the device (Note that you should not use the reset commands /boot/reset or /boot/shutdown). The serial console menu display, 2. Enter maintenance mode by typing the command maint, 3. From maintenance mode, type the command admpw. --> 기본패스워드 admin

톰캣 날짜별로 로그(catalina.out) 생성 [내부링크]

톰캣 날짜별 로그 1. vi /톰캣경로/bin/catalina.sh 2. 3군대 수정 shift #touch "$CATALINA_OUT" &1 "&" | /usr/sbin/rotatelogs "$CATALINA_OUT"-%Y%m%d 86400 540 &

Tomcat 속도 개선 [내부링크]

수정한 항목은 총 3개이다. 1. catalina.properties 파일 수정 tomcat.util.scan.StandardJarScanFilter.jarsToSkip= *.jar 2. Context.xml 파일 수정 WEB-INF/web.xml ${catalina.base}/conf/web.xml 3. logging.properties 파일 수정 아래 2개 항목을 추가 org.apache.jasper.servlet.TldScanner.level = FINE org.apache.catalina.startup.ContextConfig.level = FINE

Tomcat session clustering 설정 [내부링크]

server.xml 파일에 아래와 같이 설정 * iptables 방화벽 설정 -A INPUT -p tcp -m state --state NEW -m tcp --dport 4000:4100 -j ACCEPT

netdata nginx 모니터링 추가 [내부링크]

nginx 모니터링은 stub_status 모듈을 통해 이뤄지는데 nginx 설치 때 해당 모듈이 설치되어 있어야 한다. 모듈이 설치되어 있다면 nginx.conf에 아래 설정을 추가해주면된다. location /stub_status { stub_status; # Security: Only allow access from the IP below. allow 127.0.0.1; # Deny anyone else deny all; } nginx 재시작 후 curl http://localhost/stub_status 명령어를 실행하여 아래와 같은 결과가 나오면 정상이다. Active connections: 1 server accepts handled requests 4 4 3 Reading: 0 Writing..

리눅스 서버 모니터링 Netdata [내부링크]

#netdata 모니터링 설치 - Centos / Redhat / Fedora netdata 설치 yum -y install zlib-devel gcc make git autoconf autogen automake pkgconfig libuuid-devel -데비안 / 우분투 netdata 설치 apt-get -y install zlib1g-dev gcc make autoconf autogen automake pkg-config uuid-dev git #Netdata 다운로드 git clone https://github.com/netdata/netdata.git #Netdata 설치 #디렉토리 지정하고 싶을때는 --install [경로] 옵션 사용하여 설치 ./netdata-installer.sh --i..

Cloudflare 설정시 nginx real ip 남기기 [내부링크]

Cloudflare Proxy를 사용할 경우 일반 사용자는 IP가 변환되어 웹 서버로 들어오게된다. Real ip로 접속하도록하기 위해서 nginx.conf 파일에 아래와 같이 설정해주면 real ip로 접속이 된다. [cloudflare_realip.conf cloudflare IP 등록] vi cloudflare_realip.conf set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 104.16.0.0/12; set_real_ip_from 108.162.192.0/18; set_real_ip_from 131.0.72.0/22; set_real_..

linux interface rx packets dropped 조치 [내부링크]

root@localhost:~# ifconfig em1 Link encap:Ethernet HWaddr 1c:98:ec:21:90:a4 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::1e98:ecff:fe21:90a4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:467978585 errors:0 dropped:9408 overruns:0 frame:0 TX packets:392979533 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes..

Redis cluster 구성 [내부링크]

#클러스터 구성 redis-cli -p 6379 cluster meet 192.168.10.2 6379 redis-cli -p 6379 cluster meet 192.168.10.2 6380 redis-cli -p 6379 cluster meet 192.168.10.2 6381 redis-cli -p 6379 cluster meet 192.168.10.3 6379 redis-cli -p 6379 cluster meet 192.168.10.3 6380 redis-cli -p 6379 cluster meet 192.168.10.3 6381 #클러스터 노드 확인 redis-cli -c -p 6379 cluster nodes #Mater -> Slave 변경 redis-cli -p 6379 cluster rep..

리눅스 input/output error [내부링크]

# reboot bash: /sbin/reboot: Input/output error # shutdown -r now bash: /sbin/shutdown: Input/output error 위와 같이 오류발생시 아래 명령어로 재부팅시킴. > sync && echo 1 > /proc/sys/kernel/sysrq && echo b > /proc/sysrq-trigger

Redis 설치 [내부링크]

OS : CentOS7 Redis Version : 4.0.11 #필수 라이브러리 설치 yum -y install tcl wget ruby ruby-devel ruby-irb rubygems # Redis download wget http://download.redis.io/releases/redis-4.0.11.tar.gz #압축 해제 tar xvfz redis-4.0.11.tar.gz cd redis-4.0.11 # Redis 설치 cd deps && make hiredis lua jemalloc linenoise cd .. && make make test cd src && make install cd /usr/local/src/redis-4.0.11/utils #install server.sh 파일..

haproxy log 설정 [내부링크]

- haproxy log 설정 vi /etc/rsyslog.d/haproxy.conf # Provides UDP syslog reception $ModLoad imudp $UDPServerRun 514 $template Haproxy, "%msg%\n" #rsyslog 에는 rsyslog 가 메세지를 수신한 시각 및 데몬 이름같은 추가적인 정보가 prepend 되므로, message 만 출력하는 템플릿 지정 # 이를 haproxy-info.log 에만 적용한다. # 모든 haproxy 를 남기려면 다음을 주석해재, 단 access log 가 기록되므로, 양이 많다. local0.* /var/log/haproxy/haproxy.log # local0.=info 는 haproxy 에서 에러로 처리된 이벤트들..

MariaDB Replication(복제) 삭제 [내부링크]

########## Replication 삭제 ########## - slave 장비에서 아래와 같이 설정 MariaDB [(none)]> stop slave; MariaDB [(none)]> reset slave all; - slave 삭제 확인 SHOW SLAVE STATUS\G;

Haproxy 설치 [내부링크]

OS : CeontOS7 Haproxy version : 1.8.13 # 필수 라이브러리 설치 yum -y install gcc openssl-devel #압축 해제 tar xvfz haproxy-1.8.13.tar.gz cd haproxy-1.8.13 make TARGET=linux2628 USE_OPENSSL=1 # 여기서 TARGET 옵션은 리눅스 종류에 맞춰 지정합니다. - linux22 for Linux 2.2 - linux24 for Linux 2.4 and above (default) - linux24efor Linux 2.4 with support for a working epoll (> 0.21) - linux26 for Linux 2.6 and above - linux2628 for L..

MariaDB Replication(복제) 설정 [내부링크]

OS : CeontOS7 Mariadb version : 10.2.13 ############### Master 설정 ############### 1. /etc/my.cnf.d/replication.cnf 또는 my.cnf 파일에 다음과 같이 설정 [mysqld] server-id = 1 log_bin = /var/log/mysql/mariadb-bin log_bin_index = /var/log/mysql/mariadb-bin.index expire_logs_days = 10 max_binlog_size = 100M * 여기서 /var/log/mysql/은 소유자가 mysql이어야 합니다. 2. Mariadb 재시작 service mariadb restart 3. MariaDB에 접속하여 Replica..

Mariadb 설치 [내부링크]

OS : CeontOS7 Mariadb version : 10.2.13 *mariadb 10.3 의 경우, cmake 버전이 3.3.24로 진행해야함 # 필수 라이브러리 설치 yum -y install gcc gcc-c++ libtermcap-devel gdbm-devel zlib* libxml* freetype* libpng* libjpeg* iconv flex gmp ncurses-devel libaio gnutls-devel # cmake 에러 발생시 wget https://cmake.org/files/v3.3/cmake-3.3.2.tar.Z cd cmake-3.3.2 ./bootstrap make make install cmake -version tar xvfz mariadb-10.2.13.tar..

Tomcat 및 java 설치 [내부링크]

OS : CentOS7 Tomcat version : 8.5.45 Java vserion : 1.8 #tomcat 파일 다운로드(bin 파일-설치할 필요없고 압축 해제 후 바로 사용가능) wget http://apache.tt.co.kr/tomcat/tomcat-8/v8.5.45/bin/apache-tomcat-8.5.45.tar.gz #압축 해제 및 폴더명 변경 tar xvfz apache-tomcat-8.5.45.tar.gz mv apache-tomcat-8.5.45 /usr/local/tomcat #재부팅시 자동 실행 파일 추가 vi /usr/lib/systemd/system/tomcat.service ---------------------------------------------------- [..

Nginx 소스 컴파일 설치 [내부링크]

OS : CentOS7 Nginx version : nginx-1.16.1 #필수 라이브러리 설치 yum -y install gcc* make libtool-ltdl-devel openssl-devel pcre-devel ncurses-devel libxml2-devel bzip2-devel curl-devel gdbm-devel libjpeg-devel libpng-devel freetype-devel krb5-devel flex icu libicu libicu-devel gd gd-devel wget gzip libxslt-devel cmake ncurses ncurses-devel bison gnutls-devel # Nginx user 생성 useradd --shell /sbin/nologin n..

CentOS7 rc.local 자동 실행 등록 [내부링크]

vi /usr/lib/systemd/system/rc-local.service # 맨 아래에 다음 내용 추가 후 :wq로 저장하고 나오기 [Install] WantedBy=multi-user.target # 재부팅시 실행되도록 설정 systemctl enable rc-local.service # rc.local 실행 권한 추가 chmod +x /etc/rc.d/rc.local # 설정 내역확인 systemctl list-unit-files |grep rc.local rc-local.service enabled