전체 글 썸네일형 리스트형 NGINX와 PHP 환경에서 파일 업로드 크기를 늘리는 방법 NGINX와 PHP(PHP-FPM) 환경에서 파일 업로드 크기를 늘리는 방법NGINX 설정 변경NGINX에서 클라이언트가 업로드하는 파일 크기를 제한하는 것은 client_max_body_size 디렉티브를 사용합니다. 원하는 파일 크기로 설정해야 합니다. 기본값은 1MB입니다.vim /etc/nginx/nginx.confhttp { ... client_max_body_size 100M; ...}이 설정은 NGINX의 설정 파일에 위치하며 업로드한 파일의 최대 크기를 100MB로 제한합니다. NGINX 재시작변경된 NGINX 설정이 적용되려면 NGINX 서비스를 다시 시작해야 합니다.sudo systemctl restart nginxPHP-FPM 설정 변경기본 설정(Default Valu.. 더보기 우분투에서 Docker 컨테이너 내에서 systemd를 실행하는 방법 우분투에서 Docker 컨테이너 내에서 systemd를 실행하는 방법 Docker 컨테이너 내에서 systemd를 실행하는 것은 기본적으로 권장되지 않지만 가능합니다. systemd를 사용하려면 컨테이너가 호스트의 init 프로세스로 설정되어야 합니다. Dockerfile 작성 vim Dockerfile FROM ubuntu:22.04 # systemd를 사용할 수 있도록 환경 변수 설정 ENV container docker # 패키지 설치 및 설정 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ systemd \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /va.. 더보기 [url] 우분투 서버 문서(Ubuntu Server documentation) 우분투 서버 문서(Ubuntu Server documentation)Ubuntu Server documentation : https://ubuntu.com/server/docs 더보기 우분투에서 cron 작업에 대한 로그를 별도의 파일로 분리하는 방법 우분투에서 cron 작업에 대한 로그를 별도의 파일로 분리하는 방법1. rsyslog 설정 변경cron 로그를 별도의 파일로 보내도록 rsyslog를 구성해야 합니다.sudo vim /etc/rsyslog.d/50-default.confdefault rsyslog(50-default.conf)더보기---cat /etc/rsyslog.d/50-default.conf# Default rules for rsyslog.## For more information see rsyslog.conf(5) and /etc/rsyslog.conf## First some standard log files. Log by facility.#auth,authpriv.* .. 더보기 Jenkins와 Slack을 연동하여 알림을 받는 방법 Jenkins와 Slack을 연동하여 알림을 받는 방법Slack 설정Slack 워크스페이스에서 채널을 생성합니다.Slack 앱 관리 페이지로 이동하여 "Jenkins CI" 앱을 검색하고 추가합니다.Jenkins 설정젠킨스 플러그인 설치Dashboard > Jenkins 관리 > PluginsGlobal Slack Notifier PluginSlack Notification Plugin슬랙 크리덴셜 생성Dashboard > Jenkins 관리 > CredentialsDashboard > Jenkins 관리 > Credentials > System > Global credentials (unrestricted)Kind : Secret testScope : Global (Jenkins, nodes, item.. 더보기 우분투에 Gradle을 설치하는 방법 우분투에 Gradle을 설치하는 방법 테스트 환경 운영체제 정보 $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" JAVA 호환성(gradle compatibility) Gradle 8.5의 바이너리(zip 파일) 다운로드 sudo wget ht.. 더보기 우분투에서 ethtool을 사용하여 랜 카드의 속도 및 전송 모드를 설정하는 방법 우분투에서 ethtool을 사용하여 랜 카드의 속도 및 전송 모드를 설정하는 방법ethtool 설치sudo apt-get updatesudo apt-get -y install ethtool네트워크 인터페이스 확인설정할 랜 카드의 네트워크 인터페이스를 확인합니다. 일반적으로 ifconfig 또는 ip addr 명령을 사용하여 확인할 수 있습니다.ifconfig enp0s8$ ifconfig enp0s8enp0s8: flags=4163 mtu 1500 inet 192.168.56.71 netmask 255.255.255.0 broadcast 192.168.56.255 inet6 fe80::a00:27ff:fe2a:e26b prefixlen 64 scopeid 0x20 .. 더보기 우분투에서 PXE 네트워크 부팅 서버를 구성하는 방법 우분투에서 PXE 네트워크 부팅 서버를 구성하는 방법1. TFTP 설치 및 설정sudo apt-get updatesudo apt-get install -y tftpd-hpaTFTP 서비스 상태 확인sudo systemctl status tftpd-hpaTFTP 서비스 비활성화sudo systemctl disable tftpd-hpaTFTP 서비스 중지sudo systemctl stop tftpd-hpa2. TFTP 설정 파일sudo vim /etc/default/tftpd-hpa# /etc/default/tftpd-hpaTFTP_USERNAME="tftp"TFTP_DIRECTORY="/var/lib/tftpboot"TFTP_ADDRESS=":69"TFTP_OPTIONS="--secure --create".. 더보기 이전 1 ··· 56 57 58 59 60 61 62 ··· 305 다음