1 / 5

rc script, 특정 port 로 telnet

rc script, 특정 port 로 telnet. RC script. 1. Rc script. 1). Rc script 란 ?. Rc script 란 ?. - run control script process 를 start 하고 stop 시키는 run level 과 밀접한 관계가 있는 rc 제공 .  /sbin directory 에 존재 . rc0,rc5,rc6 은 하드링크 되어 있음 .  /etc directory 의 rc script 와 symbolic link.

harper
Download Presentation

rc script, 특정 port 로 telnet

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. rc script, 특정 port로 telnet

  2. RC script 1. Rc script 1). Rc script란? Rc script란? - run control script process를 start하고 stop 시키는 run level과 밀접한 관계가 있는 rc 제공.  /sbin directory에 존재. rc0,rc5,rc6은 하드링크 되어 있음.  /etc directory의 rc script와 symbolic link.  /etc/rc#는 /etc/rc#.d 아래에 해당하는 file 존재.  /etc/init.d는 start or kill 시키는 실질적인 run control 파일 존재.  /etc/rc#.d directory와 hard link 되어 있음. script 실행 순서 # init 2 -> /etc/inittab -> /sbin/rc2 -> /etc/rc2.d/S* or K*                                      /etc/init.d와 hard link

  3. RC script 1. Rc script 2). Rc 작성 Rc script 생성 예제 • 시작 file 추가에 대한 예는 /etc/init.d/README file의 설명을 참조한다. • 기존 sequence number와 충돌하지 않도록 /etc/rc*d directory에 있는 • 시작 file에 원하는 sequence number를선택한다. 또 시작하는 service가 성공적으로 시작되기 위해 필요한 service가 먼저 나오도록 순서를 지정. • 3. 시작 file을 /etc/init.d directory에 넣고 시작할 서비스의 실행 level에 따라 필요한 /etc/rc*.d directory에 link를 생성. • # cd /etc/rc3.d • 5. # ln /etc/init.d/myfs S22myfs

  4. File backup 1. File backup 1). File backup 하는 방법 File backup File backup #telnet 23/tcp telnet2 233/tcp 주석으로 막아 놓으면 변경 이전 상태를 알 수 있으므로 습관을 들이는 것이 좋다. # cp system system.old 확장자를 .old 혹은 .bak file로 만들어 놓으면 engineer 사이에서 통용되는 방법이므로 변경 이전의 원본 file을 쉽게 알아볼 수 있는 장점이 있다. 특히 /etc directory에 있는 file을 수정할 경우에는 반드시 backup file을 복사해 놓고 작업하는 습관을 들여야 한다. UNIX는 windows와 달리 휴지통 기능이 없으므로 backup은 지나칠 정도로 하는 것이 좋다.

  5. 특정 port로 telnet 1. 특정 port로 telnet 1). telnet port 변경 방법 telnet port 변경 # vi /etc/servicestelnet2 233/tcp ; 추가해줌# vi /etc/inetd.conf#telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd ;주석으로막아놓고, telnet2 stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd ;이line추가 # ps –ef | grep inetd # kill -9 [inetd의 PID] # /etc/init.d/inetsvc start # telnet . 233

More Related