• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

수동으로해도 3306 안뜨내요;;;

22.01.13 10:24 작성 조회수 126

0

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

./init.sh: line 17: /etc/hosts: Permission denied

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

./init.sh: line 20: /etc/fstab: Permission denied

[vagrant@localhost SHELL]$ sudo su -

Last login: Thu Jan 13 01:13:02 UTC 2022 on pts/0

[root@localhost ~]# /vagrant/SHELL/init.sh

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

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

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

ssh 설정을 등록합니다.

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

selinux를 무효화합니다.

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

서버를 재시작합니다.

Connection to 127.0.0.1 closed by remote

답변 2

·

답변을 작성해보세요.

0

이루빠님의 프로필

이루빠

질문자

2022.01.19

[vagrant@localhost ~]$ sudo netstat -nltup

Active Internet connections (only servers)

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

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

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

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

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

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

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

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

cent1 번 수동으로 설치후 root로 init.sh 실행시키면 자동 재시작된후 다시 접석후 보면 80 포트가 안떠저 있습니다. 

0

안녕하세요 이루빠님 :)

3306이 안뜬다고  하시는걸보니 cent2 번 작업을 하고 계신 것 같네요.
이전에 수동으로 작업해보시라는 답변을 드리면서 3대의 서버에서 각각 수동으로 서버를 설정하는 명령어를 보내드렸었는데
이번에 다시 보내주신 실행 로그를 보면 root 유저로 init.sh 실행을 하시고 다른 작업은 안하셔서 mysql 설치가 안된 것 같습니다.
다시 수동작업 명령을 보내드릴테니 보시고 천천히 실행해보세요.

 

 

# 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 를 수동으로 실행 해주세요.