yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

rocky linux 9 - init_script.sh

김영훈 2023.12.08 11:33 조회 수 : 665

#!/bin/bash
# 1. Disable SELinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0


# 2. Set timezone to Asia/Seoul
timedatectl set-timezone Asia/Seoul


# 3. Install language packs for language settings
dnf install -y langpacks-ko glibc-langpack-ko


# 4. Set language locale
localectl set-locale LANG=ko_KR.euckr


# 5. Install basic packages
dnf install -y net-tools wget


# 6. Stop and disable rpcbind.socket (port 111)
systemctl stop rpcbind.socket
systemctl disable rpcbind.socket


# 7. Add Docker CE repository
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo


# 8. Install and start Docker
dnf install -y docker-ce
systemctl start docker
systemctl enable docker


# 9. Install Docker Compose (Download the latest version from https://github.com/docker/compose/releases)
cd /usr/local/bin
wget https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-linux-x86_64 -O docker-compose
chmod 755 docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose


# 10. Disable firewalld
systemctl stop firewalld
systemctl disable firewalld


  • 추천 0

  • 비추천 0
이 게시물을
목록

댓글 0

번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 2150
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 1734
267 certbot renew 실패 - The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.',) 김영훈 2025.09.23 182
266 rockylinux rsyncd 설치 김영훈 2025.07.30 544
265 BPFDoor 악성코드 통합 점검 스크립트 (KISA 가이드 기반) 김영훈 2025.05.16 1332
264 error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] 김영훈 2025.05.08 19513
263 prometheus, grafana, node-exporter 임시 김영훈 2025.01.03 1015
262 MegaCli64 Hotspare 구성 김영훈 2024.11.11 1328
261 12월 기타큐슈 2박 3일 관련 김영훈 2024.11.08 1131
260 rockylinux8 php7.2 -> php7.4 업그레이드 : dnf module 기능 이용 김영훈 2024.10.14 1310
259 rockylinux8 apache-2.4.16, php-5.3.29 설치 file 김영훈 2024.10.11 1305
258 정보보안기사 오답노트 김영훈 2024.10.01 991
257 달력 이미지(chatgpt) file 김영훈 2024.09.05 1155
256 백업된 디스크 복구 김영훈 2024.06.13 1165
255 openai api를 이용한 챗봇 구현 샘플 김영훈 2024.06.11 2111
254 Dev-C++ 5.11 설치 매뉴얼 file 김영훈 2024.03.09 1484
253 오라클 클라우드 arm 환경에서 Palworld 서버 구축 [11] 김영훈 2024.01.29 2234
252 리눅스 공인 아이피 확인 - curl ipinfo.io 김영훈 2024.01.29 1129
251 Oracle 9i cx_Oracle 클라이언트 연결 방법 [1] 김영훈 2024.01.12 1468
250 error: rpmdb: BDB2034 unable to allocate memory for mutex; resize mutex region [1] 김영훈 2024.01.08 1433
249 마크다운 TIL 템플릿 김영훈 2024.01.03 858
248 Stable Diffusion 설치 - rockylinux9 [테스트 - 나 / 정리 -chatgpt] [1] 김영훈 2024.01.02 1498
쓰기 태그
 첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지