runleve 중, 1=single-user모드는 별도의 로그인 과정 없이 root 계정으로 시스템을 사용할 수 있는 모드 이 모드로 부팅하면 root 패스워드를 변경할 수 있다. ※ 콘솔모드에서만 된다. <GRUB 메뉴가 나올경우> 1. 부팅해서 아래 커널선택 후 e키를 입력 2. Kernel 로 시작하는 줄에서 e키를 한번 더 입력 3. 끝부분에 "1" 또는 "single" 입력하고 Enter 누르면 2번의 화면으로 돌아오게 되는데 b키 입력 4. "passwd" 명령어 사용해서 패스워드 변경하고 reboot <선택메뉴만 나올경우> 1. Ctrl + X 를 누름 2. linux single 를 입력 후 엔터 3. 명령프롬프트가 나오면 passwd 를 누른뒤 암호를 변경
◎ /etc/passwd와 /etc/shadow 필드 설명 [/etc/passwd] root : x : 0 : 0 : root : /root : /bin/bash 필드 1 2 3 4 5 6 7 1 : 사용자명2 : 패스워드3 : 사용자 계정 uid4 : 사용자 계정 gid5 : 사용자 계정 이름6 : 사용자 계정 홈 디렉토리7 : 사용자 계정 로그인 쉘 [/etc/shadow] root : $1$9L2L0oTwd : 12751 : 0 : 99999 : 7 : : :필드 1 2 3 4 5 6 7 8 9 1 : 사용자명2 : 암호화된 패스워드3 : 암호 최종 변경일4 : 암호 변경 최소일수5 : 암호 변경 최대일수6 : 암호 변경 경고일 수7 : 암호 비활성화 기간8 : 계정 사용 종료일9 : 예약 필드
현재 랜카드 전송속도 구하기 sar -n DEV 2 3 2초간 총 3번 조사하고, 평균값 마지막 출력하기 참고 http://perso.wanadoo.fr/sebastien.godard/use_sar.html
두개, 세개의 아이피를 동시에 사용하려면 위와 같은 방식으로 계속 추가하면 되겠다. 추가한 아이피를 삭제할 경우엔 해당 이더넷을 다운시키면 된다. ifconfig eth0:0 down 으로 삭제할 수 있다.
# apache 1.3.x apache_1.3.x/src/include/httpd.h HARD_SERVER_LIMIT 256 # apache 2.0.x - prefork httpd-2.0.63/server/mpm/prefork/prefork.c DEFAULT_SERVER_LIMIT 256 - worker httpd-2.0.63/server/mpm/worker/worker.c DEFAULT_SERVER_LIMIT 16 DEFAULT_THREAD_LIMIT 64
selinux 끄는 3가지 방법 1. 수동으로 끄기 (일시적으로만 먹힘) system-config-securitylevel setenforce 0 2. 커널 명령행에 다음 옵션 추가. (grub.conf 등에) selinux=0 3. /etc/selinux/config 파일 수정 SELINUX=enforcing ==> SELINUX=disabled 수정
웹서버 사용에 있어 기대하는 가치은 무엇이었을까 성능(performance) & 안정성(stability) 확장성(scalability) & 덩치(footprint)간편함간편한 설치(installation) 간편한 설정(configuration)간편한 운영(operation)필요한 기능rewritehttp_proxy (간단한 부하분산 기능을 포함하면 더 좋겠다) virtual hostingLinux와 MacOS X에서 사용가능 간단한 웹서버 : lighttpd, cherokee, thttpd, nginx
시스템 하드웨어 정보 보기 파일 업로두 후 make만 수행하면 된다. 컴파일 후 실행파일은 lshw-B.02.15/src 안에 있다. ./lshw : 서버정보 전체보기 ./lshw -short : 서버정보 간략하게 보기 ./lshw –businfo : bus에 대한 자세한 정보 확인 ./lshw -html > system.html : html 페이지로 만들기 ./lshw -help : 옵션 보기 [##_1C|8517759422.gz|style="width: 90px; height: 30px; border: 2px outset #796; background-color: #efd; background-repeat: no-repeat; background-position: center center; background-image: url('/image/extension/unknown.gif')"|_##]
How To Configure Root Login for TelnetThis document (3485070)is provided subject to the disclaimerat the end of this document. EnvironmentSituationResoluti LogDocumentDocument ID:3485070Creation Date:10-05-2006Modified Date:03-16-2012Product:SUSE Linux Enterprise ServerDisclaimerThis Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "
mysql 루트 암호를 잊어 버렸을때 재설정 하기 ① mysql 데몬을 죽인다. ② 권한을 무시하도록하는 옵션을 줘서 mysql 데몬을 다시 실행 # safe_mysqld --skip-grant-tables & ③ mysql 서버에 접속 (암호 없이 접속이 가능) # mysql -u root ④ update 로 mysql 패스워드 변경 mysql> update user set password=password('새로운 비밀번호') where user='root';
# MySQL 종료 명령어 mysqladmin -uroot -p shutdown 다음mysqld_safe # MYSQL 재시작 명령어 mysql-dir/bin/mysqld_safe &
ifconfig | grep Bcast | sed -e 's/:/ /g' | awk '{print $3}'