본문 바로가기

🛠 DevOps & Tool/Linux4

Ansible - Failed to connect to the host via ssh(인프런 CI/CD 강의 에러) 전말 Jenkins를 이용한 CI/CD Pipeline 구축 강의 중 섹션 4 - Ansible에서 Kubernetes 제어하기 과정 중에 오류가 생겼고 이틀 내내 찾아서 고쳤다. 강의 커뮤니티에도 윈도우를 사용하는 대부분의 수강생들이 겪는 에러인 것 같은데, 해결 방법이 없고 구글링해도 정보가 너무 없어서 포스팅하고자 한다. 이하 내 호스트 IP는 가상으로 192.168.1.11로 표기하겠다. (or 스티커로 가리기) 먼저 진행한 과정은 hosts 파일에 아래와 같이 입력하고 [ansible-server] localhost [kubernetes] 192.168.1.11 ansible로 ping 모듈을 테스트하는 것이었다. # ansible -i /k8s/hosts kubernetes -m ping 첫 .. 2024. 3. 13.
[CentOS 7] 아파치 시작 에러, Job for httpd.service failed because the control process exited with error code. 에러 # service httpd start Redirecting to /bin/systemctl start httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. Apache와 Wildfly 연동 과정 중에 tomcat connector 세팅을 마치고 아파치 재시작을 하는 과정에서 에러가 났다. 더보기 2022.06.28 - [공부/Linux] - [CentOS 7] mod_jk를 이용한 Apache-Wildfly 연동 [CentOS 7] mod_jk를 이용한 Ap.. 2022. 6. 29.
[CentOS 7] mod_jk를 이용한 Apache-Wildfly 연동 JDK와 Apache, Wildfly 각각 설치 완료하여 구동 테스트까지 완료한 이후의 과정입니다. Web Server와 WAS를 연동하기 위한 방법 중의 하나인 mod_jk를 세팅해 보았다. 1. apxs(Apache Extension) 설치 $ yum install -y httpd-devel $ which apxs /usr/bin/apxs 2.tomcat-connector 설치 -설치 $ wget http://mirror.navercorp.com/apache/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.48-src.tar.gz -압축 해제 $ tar xvzpf tomcat-connectors-1.2.48-src.tar.gz -디렉토리 이동 $ cd tomc.. 2022. 6. 28.
[CentOS 7] configure: error: C compiler cannot create executables $ ./configure --with-apxs=/usr/bin/apxs Apache와 wildfly 연동 작업 중에 에러가 발생했다. 에러 configure: error: in `/usr/local/src/tomcat-connectors-1.2.48-src/native': configure: error: C compiler cannot create executables 해결 mod_jk를 설치하려면 gcc, gcc-c++, httpd-devel 3가지 패키지가 설치되어 있어야 한다. httpd-devel은 이미 설치했으므로 $ yum install gcc gcc-c++ gcc, gcc-c++를 설치해주고 다시 시도하면 컴파일이 정상적으로 된다. $ ./configure --with-apxs=/usr/bi.. 2022. 6. 27.