• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

설치에러

21.10.21 11:32 작성 조회수 119

0

다시 설치 했는데  설치가 재대로 안됬는지 cent2에 3306 이랑 cent1에 80 포트가 안보이는데 어떻게 해결해야되죠 ??

베이그란트 실행할때 init.sh 실행안하는것 같은데;;

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name

tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/systemd

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      659/sshd

tcp6       0      0 :::111                  :::*                    LISTEN      1/systemd

tcp6       0      0 :::22                   :::*                    LISTEN      659/sshd

udp        0      0 0.0.0.0:111             0.0.0.0:*                           1/systemd

udp        0      0 127.0.0.1:323           0.0.0.0:*                           636/chronyd

udp6       0      0 :::111                  :::*                                1/systemd

udp6       0      0 ::1:323                 :::*                                636/chronyd

 

답변 2

·

답변을 작성해보세요.

1

이루빠님 답변 드릴게요. :)이루빠님의 현재 환경을 정확히 파악하기 어려워 실행이 안되는 이유를 찾기 어려울 것 같습니다. ㅠㅠ
cent1, 2, 3의 OS가 설치 되어있는 상태라면 수동으로 설치를 진행해 주시는 것이 환경을 빨리 만들 수 있을 것 같습니다.
# cent1에 root로 접속
dnf -y install dnf-utils
dnf -y install nano vim git net-tools tar binutils psmisc wget sysstat dialog epel-release
dnf -y install stress 
dnf -y install nginx
이후에 init.sh 를 수동으로 실행해주세요. 
스크립트가 있는 위치에서 ./init.sh 를 실행하시면 됩니다.


# cent2에 root로 접속
---------------- 이 아래부터 복사해서 -----------
cat << EOF >| /etc/yum.repos.d/MariaDB.repo
#MariaDB 10.4 CentOS repository list
#http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos8-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
---------------- 이 위까지 복사해 터미널에 붙여넣기 해주세요. ----------

dnf -y install dnf-utils
dnf -y install nano vim git net-tools tar binutils psmisc wget sysstat dialog epel-release
dnf -y install boost-program-options stress
dnf -y install mariadb-server --disablerepo=AppStream
dnf -y install mariadb-client --disablerepo=AppStream
dnf -y install mariadb-backup --disablerepo=AppStream 
init.sh 를 수동으로 실행 해주세요.


# cent3에 root로 접속
mkdir /nfs              
dnf -y install dnf-utils
dnf -y install nano vim git net-tools tar binutils psmisc wget sysstat dialog epel-release
dnf -y install stress
init.sh 를 수동으로 실행 해주세요.
이루빠님의 프로필

이루빠

질문자

2021.11.02

hosts에 각 서버를 등록합니다.

fstab에 nfs정보를 등록합니다.

root유저의 환경설정을 합니다.

ssh 설정을 등록합니다.

서버 접속 메세지를 설정합니다.

selinux를 무효화합니다.

처리항목에 없는 서버입니다. 호스트를 확인해주세요.

서버를 재시작합니다.

Connection to 127.0.0.1 closed by remote host.

Connection to 127.0.0.1 closed.

똑같내요 ... 

안녕하세요!:)
이루빠님 고생하십니다 ㅠ

지난번 답변 드린대로 수동설치를 하셨으면 프로그램의 동작과 프로세스 상태를 확인 해 보시면 될 것 같습니다. 
init.sh도 실행이 된 것 같습니다.

## cent1에 root유저로 접속해서 다음을 실행 해주세요. 

# 서버 부팅시 자동으로 nginx를 실행하도록 설정
systemctl enable nginx

# nginx프로세스 시작
systemctl start nginx

# nginx 프로세스 상태확인
systemctl status nginx 


## cent2에 root유저로 접속해서 다음을 실행 해 주세요.

# mariadb가 서버 부팅시 자동으로 시작하도록 설정
systemctl enable mariadb

# mariadb 프로세스 시작
systemctl start mariadb

# mariadb 프로세스 상태를 확인
systemctl status mariadb

0

안녕하세요:)

이루빠님! 답변 참고 부탁드립니다!

설치 중에 무언가 동작이 제대로 안되어 소유자와 실행권한이 안맞는 것 같습니다.
스크린샷에서처럼 root 유저로 접속하신 후 다음 커맨드로 owner와 permission을 수정해보세요. 
chown root:root /root/.ssh -R
chmod 755 /root/.ssh/config
chmod 600 /root/.ssh/id_rsa
chmod 644 /root/.ssh/authorized_keys

 

 

이루빠님의 프로필

이루빠

질문자

2021.10.21

변경했는데 똑같내요;;/