본문 바로가기

반응형

centos

[명령어] chkconfig 명령어 chkconfig 명령어 chkconfig [런레벨 조정] * 서비스 runlevel 보기 chkconfig --list chkconfig --list 데몬명 * 서비스 등록하기 chkconfig --add 데몬명 * 서비스 삭제하기 chkconfig --del 데몬명 * 서비스 runlevel 조정하기 chkconfig --level 실행레벨 데몬명 [on|off|rest] $ chkconfig chkconfig version 1.3.30.1 - Copyright (C) 1997-2000 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License. usage: chkconfig --list [name] .. 더보기
CentOS 6에서 SELinux을 해제하는 방법 CentOS 6에서 SELinux을 해제하는 방법 ls -lZ /usr/sbin/named $ ls -lZ /usr/sbin/named -rwxr-xr-x root root system_u:object_r:named_exec_t /usr/sbin/named chcon -R -u system_u -t named_exec_t /usr/local/nbind/sbin/named $ chcon -R -u system_u -t named_exec_t /usr/local/nbind/sbin/named setsebool -P named_write_mastet_zoned on $ setsebool -P named_write_mastet_zoned on egrep -i 'avc|ntfs-3g' /var/log/messag.. 더보기
[리눅스] at 명령어 at 명령어 at 명령어는 Linux나 Unix 계열 운영체제에서 일회성으로 실행할 작업을 지정한 시간에 예약할 때 사용하는 명령어입니다. 이 명령어를 사용하면 시스템 부하나 리소스를 낭비하지 않고 작업을 예약할 수 있습니다. at 명령어를 사용하는 방법 1. at 명령어 설치 확인 at 명령어가 설치되어 있는지 확인합니다. which at 만약 설치되어 있지 않다면, 우분투에서는 다음과 같은 명령어로 설치할 수 있습니다. sudo apt-get install -y at 2. 작업 예약 at 명령어로 예약할 작업을 입력합니다. 다음은 10분 후에 ls 명령어를 실행하는 예제입니다. at now + 10 minutes $ at now + 10 minutes at> ls > /home/user/list.tx.. 더보기
[리눅스] telnet server 설치하는 방법 telnet server 설치하는 방법 Telnet 서버 패키지 설치 sudo yum install -y telnet-server Telnet 설정 disable = yes 부분을 no로 바꿔주고 vi /etc/xinetd.d/telnet service telnet { disable = yes flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID } 슈퍼 데몬 재시작... /etc/rc.d/init.d/xinetd restart 슈퍼데몬의 시작과 종료 : /etc/rc.d/init.d/inet 스크립트 파일에 의해서 제어 A. 슈퍼데몬 시작 : /etc/rc... 더보기
e2label 명령어 e2label 명령어 e2label 명령어는 ext2, ext3, ext4 파일 시스템에서 사용되며, 파일 시스템에 레이블을 설정하거나 레이블을 확인하는 데 사용됩니다. 이 명령어를 사용하여 파일 시스템에 대한 식별 가능한 레이블을 설정하고 관리할 수 있습니다. e2label 명령어의 주요 사용법은 다음과 같습니다. 1. 파일 시스템에 레이블 설정 e2label /dev/[device] [label] [device]는 레이블을 설정할 파일 시스템의 장치 이름이며, [label]은 설정할 레이블의 이름입니다. 2. 파일 시스템의 레이블 확인 e2label /dev/[device] [device]는 레이블을 확인할 파일 시스템의 장치 이름입니다. 3. 파일 시스템의 레이블 제거 e2label /dev/[de.. 더보기
ncurses libraries 오류 ncurses libraries 오류 $ make menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. *** make[1]: *** [scripts/k.. 더보기
wait 명령어 wait 명령어 wait 명령어는 쉘 스크립트에서 사용할 수 있는 내장 명령어 중 하나입니다. 이 명령어는 지정된 모든 작업이 완료될 때까지 대기합니다. 그리고 모든 작업이 완료된 후에는 wait 명령어가 종료됩니다. wait 명령어는 지정된 시간 동안 명령어의 실행을 일시 중지하는 명령어입니다. wait 명령어는 다음과 같은 경우에 유용합니다. 지정된 시간 후에 명령어를 실행해야 하는 경우 명령어의 실행 결과를 확인하기 위해 잠시 기다리는 경우 명령어의 실행을 제어하기 위해 잠시 기다리는 경우 wait 명령어 설치 wait 명령어는 대부분의 Linux 배포판에 기본적으로 설치되어 있습니다. 만약 설치되어 있지 않은 경우 아래와 같이 설치할 수 있습니다. CentOS yum install procps U.. 더보기
kickstart ks.cfg 파일 kickstart ks.cfg 파일 vim /tftpboot/kickstart/ks_centos6.4_64.cfg #platform=x86, AMD64, 또는 Intel EM64T #version=DEVEL # Firewall configuration firewall --disabled # Install OS instead of upgrade install # Use NFS installation media nfs --server=192.168.56.10 --dir=/mnt/centos6.4_64 # Root password rootpw --iscrypted $1$w2yXi5Wl$IYYKevcmZWvW7S71bhvVH. # System authorization information auth --usesh.. 더보기

728x90
반응형