반응형 Linux88 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. Ubuntu Firewall setting By UFW The basic firewall in Ubuntu is UFW. So here’s how to use the basic UFW.. UFW enable/disable sudo ufw enable sudo ufw disable Displays a warning that the firewall will be blocked on activation. Allow and block UFW Port base, Service base: sudo ufw allow / sudo ufw allow 80 sudo ufw allow 80/tcp sudo ufw allow http sudo ufw deny http IP base: sudo ufw allow from sudo ufw allow from 192.168.0.1 su.. 2020. 11. 4. 이전 1 ··· 11 12 13 14 15 다음 반응형