조회 수 3090 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

centos7 설치가 막 완료된 상태에서 설명 입니다.

 

1. yum install -y net-tools

 

> 네트워크 활성화

 

2. yum update

 

> 업데이트

 

3. systemctl mask firewalld

   systemctl stop firewalld

 

> 2개의 명령어로 방화벽을 정지 합니다.

 

4. yum install -y iptables-services

 

> iptables 서비스 관련 패키지 설치 합니다.

 

5. systemctl enable iptables

 

> iptables 기본으로 사용 할 수 있게 설정

 

6. systemctl start iptables

 

> iptables 서비스 시작

 

7. iptables -nL

 

> 정상작동하는지 확인

 

8. vi /etc/ssh/sshd_config

 

> ssh 설정 페이지 오픈

 

9. Port 22 주석 해제 및 원하는 포트로 변경

 

10. PermitRootLogin no 로 활성화 해주면 root 아이디 접속 안되게 막음

 

11. Allowusers 아이디 아이디1 아이디2

 

> 아이디 아이디1 아이디2 로만 ssh 접속 가능하게 만듬

 

12. /etc/init.d/sshd restart

 

>sshd 재시작

 

13. vi /etc/sysconfig/iptables

 

> iptables 설정 페이지를 오픈 해서 22 로 되어 있는 포트를 원하는 포트로 변경합니다.

 

14. vi /etc/sysconfig/selinux

 

15. SELINUX=disabled

 

> 방화벽을 해제해 줍니다.

 

재시작을 해서 사용 합니다.

?

List of Articles
번호 제목 날짜 조회 수
4 1267 : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' 에러명 select count(*) as cnt from g4_point where mb_id = 'admin' and po_rel_table = '01_1' and po_rel_id = '1' and po_rel_action = '쓰기' 1267 : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (u... 2012.02.21 93026
3 (Owncloud) Error while trying to create admin user: An exception occured in driver: could not find driver 에러 해결 (Owncloud) Error while trying to create admin user: An exception occured in driver: could not find driver 에러 해결 php 확장 모듈에서 php_pdo_mysql.dll 추가 해 주면 됩니다. 테스트 환경 windows7 // auto... 2015.02.19 4098
2 #145 - Table './DB/xe_documents' is marked as crashed and should be repaired phpmyadmin 에서 #145 - Table './DB/xe_documents' is marked as crashed and should be repaired centos mysqld.log 에서 [ERROR] /usr/local/mysql/libexec/mysqld: Table './DB/xe_documents' is marked as crash... file 2014.06.22 16961
1 #1040 - Too many connections // XE cannot connect to DB. 이런 에러 나올때 #1040 - Too many connections XE cannot connect to DB. 이런 에러 나올때 mysql 에서 max_connection 제한때문에 일어나는 에러 현재 msyql max_connetion 확인 #mysqladmin -u root -p variables | grep max_conne... 2013.11.20 36209
Board Pagination Prev 1 2 3 4 Next
/ 4