CentOS(7)
-
YumRepo Error: All mirror URLs are not using ftp
CentOS 6.7 yum repository error YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again 원인: CentOS 6.7 EOL 만료로 Fastmirror 사이트에서 CentOS 6가 제거 되..
2021.07.21 -
rc.local 활성화
문서 하단에 내용 요약 되어있음. 먼저, rc-local이 실행 중인지 확인 하자. $ systemctl status rc-local ● rc-local.service - /etc/rc.d/rc.local Compatibility Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset: disabled) Active: inactive (dead) rc-local이 활성화 되어있지 않아 시작해보려 했지만 오류가 발생했다. $ sudo systemctl start rc-local ● rc-local.service - /etc/rc.d/rc.local Compatibility Loaded: loaded (/usr/lib/s..
2021.07.08 -
CentOS 7.x minimal로 설치 후, ssh 접속 안될 때
추가 패키지 설치가 필요하다. # yum install -y openssh-server openssh-clients openssh-askpass
2021.06.15 -
[jenkins] jenkins 설치하기.
먼저, jenkins.repo를 yum repository에 추가한다.# wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo # rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key # yum upgrade -y jdk와 함께 설치해주면 끝.# yum install jenkins java-1.8.0-openjdk-devel -y # systemctl daemon-reload 서비스를 실행하고 상태를 확인해 준다.# systemctl start jenkins && systemctl status jenkins
2020.11.14 -
[Tomcat] centos에서 tomcat 서비스로 등록하기
Centos에 데몬들은 기본적으로 서비스로 등록되어 systemctl 명령어로 시작, 종료, 재시작을 할 수 있고, 서버를 재부팅 했을 때 profile 파일에 서비스 시작 스크립트를 작성하지 않아도 서비스가 시작되도록 설정할 수 있다. 1) 서비스를 구성하기 위한 경로로 간다. # cd /usr/lib/systemd/system 2) 원하는 이름으로 서비스 설정 파일을 생성한다. ./tomcat-my_service.service [Unit] Description=my_service tomcat After=network.target syslog.target [Service] Type=forking User=service Group=service UMask=0007 RestartSec=10 Restart=..
2020.11.14 -
[nfs] Setting Up an NFS Server and Client on CentOS
Server: 1. Install nfs-utils # yum -y install nfs-utils 2. Setting config file /etc/exports [Directory] [Client_IP](rw,sync,no_root_squash,no_subtree_check) /home 10.110.0.10(rw,sync,no_root_squash,no_subtree_check) 3. Apply the settings # exportfs -a Client: 1. Install nfs-utils # yum -y install nfs-utils 2. Create a directory to mount # mkdir -p /mnt/nfs/home 3. Mount # mount [Server_IP]:[Serv..
2020.08.27