yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

rocky linux 9 - init_script.sh

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

#!/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

사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

업로드 중... (0%)

0개 첨부 됨 ( / )
 
번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 985
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 638
» rocky linux 9 - init_script.sh 김영훈 2023.12.08 399
244 자바스크립트 화살표 함수 김영훈 2023.10.06 366
243 sar bash 스크립트 [1] 김영훈 2023.09.05 425
242 ELK Stack 테스트 [1] 김영훈 2023.08.30 322
241 CentOS7 php 7.4 + composer 설치 김영훈 2023.08.18 526
240 iptables ip 포워딩 [1] 김영훈 2023.08.17 309
239 삼성 스마트태그 배터리 - CR2032 김영훈 2023.08.15 279
238 geoip2 python [1] 김영훈 2023.08.10 331
237 pyapns_client 동시에 여러 기기로 푸시 보내기 김영훈 2023.08.03 393
236 2학기 수강신청 김영훈 2023.08.01 297
235 let's encrypt 와일드카드 인증서 발급 (CentOS7) [2] 김영훈 2023.07.26 580
234 FCM 푸시보내기 - firebase_admin 김영훈 2023.07.20 300
233 FCM 푸시 보내기 - pyfcm 김영훈 2023.07.20 341
232 rockylinux kvm [1] 김영훈 2023.07.12 331
231 SAP_1. Identity & Federation Section 김영훈 2023.06.13 278
230 [Bard] node.js forever 사용법 알려줘 김영훈 2023.05.18 305
229 Sectigo PositiveSSL 신청 시 파일 - 20230512 기준 [1] file 김영훈 2023.05.12 333
228 데이터베이스 3주차 실습 김영훈 2023.03.19 341
227 python csv 파일 읽은 후 엑셀 파일로 저장 샘플 김영훈 2023.03.16 372
226 데이터베이스 2주차 - 실습 김영훈 2023.03.08 325
쓰기 태그
 첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지