본문 바로가기
반응형

Linux86

Graylog 2.x How to install on Centos7 with Syslog input centos7, graylog, HTTPS, install, log, nbsp, syslog], yum https://www.youtube.com/watch?v=9j_X2VJQfCQ 1. Java 8 JDK Install yum install java-1.8.0-openjdk-headless.x86_64 2. MongoDB Install make file for mongodb repo #vi /etc/yum.repos.d/mongodb-org-3.2.repo mongodb-org-3.2.repo [mongodb-org-3.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_.. 2020. 11. 18.
How to Use Multi-Factor in SSH on Ubuntu/CentOS https://www.youtube.com/watch?v=MExM0EIe80k 1. Install Google OTP CentOS #yum install google-authenticator Ubuntu #apt-get install libpam-google-authenticator 패키지 설치 관련해서 에러가 나타난다면, Ubuntu는 atp-get update, CentOS는 yum install epel-release 를 진행한후 다시 시도해보자. 2. Activate Google OTP CentOS/Ubuntu 모두 동일하게 설정한다. VI 편집기를 이용해서 /etc/pam.d/sshd에 pam_google_authenticator.so 를 추가하도록 한다. # vi /etc/pam.d/sshd .. 2020. 11. 18.
Installing VMware Tools for Ubuntu/CentOS virtual machine If you have Ubuntu/CentOS installed on ESXi or Virtual Box, it is a good idea to install VMware Tools for administration. You can also install it in the way provided by the official website. See link below. https://kb.vmware.com/s/article/1022525 If you want to install it easier, use the command below. sudo apt-get install open-vm-tools-desktop after success install, enable full control vm at ho.. 2020. 11. 16.
.Net/core - make service for auto-start when boot on Ubuntu youtu.be/1akt--pYvfs 오늘은 Ubuntu 서버에 실행한 .Net/Core Application을 서비스로 등록해 상태를 관리하거나 서버 재시작시 자동으로 실행이 가능하도록 만들어 보자. 1. Prepare make Service 서비스를 만들기 전에 체크해야 하는 부분이 3가지가 있다. 1. Check to path of dotnet command 2. Check to path about application of dotnet 3. Test to running for user permission .Net/Core를 실행할 때 필수로 필요한 요소가 위 3가지 이다. 먼저 dotnet command가 설치된 위치를 확인하자. 기본적으로 패키지 설치를 진행했다면, Ubuntu기준으로 /usr/.. 2020. 11. 12.
NGINX - File Upload, Error 413 Request Entity Too Large NGINX의 기본 Request 사이즈는 2 MB로 되어 있다. 따라서 NGINX를 이용해서 파일 업로드를 할 경우 사전에 Request 사이즈를 늘려 놓아야 한다. 설정하는 방법은 간단하다. nginx의 환경 설정 파일의 http 설정에 넣어주면 된다. sudo nano /etc/nginx/nginx.conf nginx.conf에 client_max_body_size 4000M;를 추가하자. http { client_max_body_size 4000M; 그후 서비스 적용을 위해 Reload를 진행하자. sudo service nginx reload 참고 http://nginx.org/en/docs/http/ngx_http_core_module.html Module ngx_http_core_module .. 2020. 11. 12.
MariaDB/Mysql - Install and Remote connection by New User youtu.be/5mBVFSh83Ak 오늘 간단히 MariaDB를 Ubuntu에 설치하고, 원격으로 접근하는 방법을 정리해 보았다. 1. Install MariaDB 가장 먼저 진행할 부분은 MariaDB를 설치하는 것이다. 설치 방법은 apt 명령을 이용하면 서비스 등록까지 간편하게 등록되어 설치를 마무리 할 수 있다. $sudo apt update $sudo apt install mariadb-server 이후 진행해야 하는 부분은 기본 보안 설정이다. MariaDB가 설치된 상황에서는 root 패스워드가 없다. root 패스워드를 설정하고, 기본적으로 권고하는 보안 설정등을 진행하는데 도움을 주는 mysql_secure_installation 를 실행하자. 2. Start default mariad.. 2020. 11. 6.
MariaDB - Specified key was too long Specified key was too long; max key length is 767 bytes 이는 InnoDB 엔진에 관련된 내용이다. MariaDB, MySQL은 하나의 Row이 가질 수 있는 최대 Index 길이의 제한이 있고 이 제한이 767 Bytes 까지이다. 이 제한을 풀기 위해서는 set global innodb_large_prefix = ON; 이후 생성하고자 하는 테이블 옵션에 ROW_FORMAT=DYNAMIC 옵션을 추가하여 해결이 가능하다. set global innodb_large_prefix = ON; 위 옵션이 정상적으로 실행되었다면 테이블을 만들때 엔진 옵션으로 DYNAMIC을 추가하면 정상적으로 테이블 생성이 가능하다. ENGINE=INNODB ROW_FORMAT=DY.. 2020. 11. 6.
ElasticSearch Size Management – Shards, logstash Elasticsearch’s default capacity management concept is automatic capacity growth with the addition of nodes. If the capacity is insufficient, a new node is automatically added to the entire capacity of the added node. Check out the URL below for more details. https://www.elastic.co/videos/big-data-search-and-analytics 동영상 · 느긋이 누워 즐기세요 | Elastic Videos www.elastic.co If you want to manage capaci.. 2020. 11. 5.
PART 1 INSTALL ELASTICSEARCH 6 CLUSTER FOR CENTRALIZED SYSLOG https://www.youtube.com/watch?v=ScLFL7UI644 Here we will configure Elasticsearch as a cluster and configure the ability to collect logs centrally via syslog. Step.1 check to ip address for connect to ssh sudo apt-get install ssh Step.2 Install java and apply evn sudo apt-get install software-properties-common sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install o.. 2020. 11. 4.
반응형