본문 바로가기

OS

(36)
[Unix/Linux] 특정 포트를 열고닫기 sudo iptables -A INPUT -p udp --dport 1234 -j ACCEPT sudo iptables -A INPUT -p udp --dport 1234 -j DROP 1) unix 나 다른버전의 linux 인경우 root 계정으로 로그인한 후 sudo 를 뺀 나머지를 입력하면된다.2) tcp로 열고 싶은경우 udp -> tcp 로 바꾸어 주면 된다.
[Solaris] pkgadd 및 pkgrm 명령으로 패키지 추가, 삭제하기 출처 : http://docs.sun.com/app/docs/doc/806-2594/6jbq5bp4v?l=ko&a=viewpkgadd 및 pkgrm 명령으로 패키지 추가, 삭제하기pkgadd 명령으로 패키지 추가하기설치 또는 갱신된 시스템에 로그인한 뒤 다음 명령을 입력하여 수퍼유저가 되십시오. # su시스템에 부착되어 있는 CD-ROM 드라이브에 시스템에 추가할 소프트웨어가 포함되어 있는 CD를 삽입하십시오.볼륨 관리자가 자동으로 CD를 마운트합니다.추가할 소프트웨어의 CD 상의 디렉토리 경로를 입력하십시오.시스템에 하나 이상의 패키지를 추가하십시오. # /usr/sbin/pkgadd -d device_name pkgid코드의 의미는 다음과 같습니다.device_name 설치된 시스템에 추가할 소프트웨..
[Solaris] .profile #ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */# The profile that all logins get before using their own .profile.trap "" 2 3 export LOGNAME PATHif [ "$TERM" = "" ] then if /bin/i386 then TERM=sun-color else TERM=sun fi export TERM fi# Login and -su shells get /etc/profile services. # -rsh is given its environment in its .profile.alias ll="ls -alF" alias ls="ls -F" set -o vi tty -s && stt..
[Linux] IP세팅 출처 : http://blog.empas.com/holyjohn/18932298Run Level Process 0 시스템의 Shutdown,halt. 1 1인 관리자 모드(Single 모드). 2 멀티유저 로컬 프로세서 데몬.NFS 3 멀티유저 리모트 프로세서 데몬 (일반적인 상태). 4 싱글유저 스테이트 (root만 접속가능) 단 root 화일 시스템만 보임. 5 X 로그인 6 리부팅(reboot). 종료방법 #init 0 #telinit 0 #shutdown -i0 -g0 -y (일반적인종료) #shutdown -h 종료후 halt 상태로 #shutdown -r 리부팅. #init s 싱글상태로 전환 #reboot (리부팅) NetWork Configuration #ifconfig -a -인터페이스 ..
[솔라리스9] PC용 솔라리스9 개발 환경설정 PC용 쏠라리스 개발 환경 만들기.ftp://ftp.sunfreeware.com/pub/freeware/intel/9/gcc-xxx-xxx-intel-local.gzmake-xxx-xxx-intel-local.gzperl-xxx-xxx-intel-local.gzautomake-xxx-xxx-intel-local.gzautoconf-xxx-xxx-intel-local.gzglib-xxx.xxx-intel-local.gzgzip -d *.gzpkgadd -d -----------------------vi .profile# # Copyright (c) 2001 by Sun Microsystems, Inc. # All rights reserved. # # ident "@(#)local.profile 1.10 0..
[linux] Fedora Core 4의 vsftp 설정하기 (standalone) [출처] Fedora Core 4의 vsftp 설정하기 (standalone)|작성자 별종제쿠참고 :http://vsftpd.beasts.org링크 만들기 :ln -s /etc/vsftpd/vsftpd.conf /etc/vsftpdstandard 로 실행 :chkconfig --del vsftpd-xinetd (xinet으로 실행되지 않도록)chkconfig vsftpd on (standalone으로 실행되도록)vi /etc/xinetd.d/vsftpd-xinetd (파일생성)service ftp { disable = yes socket_type = stream wait = no user = root server = /usr/sbin/vsftpd server_args = /etc/vsftpd/vsftpd..
[linux] sshd connection closed되는 경우 제목 : sshd connection closed되는 경우 작성자 : 좋은진호(truefeel) 작성일 : 2006.4.13(목) 리눅스에서 ssh 접속 후 아무 작업을 하지 않고 그대로 두면 Connection reset by peer 메시지와 함께 접속이 끊기는 경우가 발생한다. Read from remote host xxx.xxx.xxx.xxx: Connection reset by peer Connection to xxx.xxx.xxx.xxx closed. ping -i 600 localhost 와 같이 실행시켜둘 수도 있겠다. 아~ 그러나 이거 또한 짜증이 아닌가. 터미널 여러개 띄우고 일하다 보면 깜빡할 수도 있는데, 저걸 여러 창에 실행시켜 두는게 얼마나 귀찮은가. /etc/ssh/sshd_c..
[linux] ssh에 root접속 허용 ssh에 root 접속을 허용한다./etc/ssh/vi sshd_confgPermitRootLogin no# yes -> no 로 바꿔준다./etc/init.d/sshd restartStopping sshd: [ OK ]Starting sshd: [ OK ]--------------