본문 바로가기

728x90
반응형

centos

(177)
C264x200.fwebp.q85 CentOS 6에 Xen을 설치하는 방법 CentOS 6에 Xen을 설치하는 방법테스트 환경[root@was01 ~]$ cat /etc/redhat-releaseCentOS release 6.4 (Final)[root@was01 ~]$ getconf LONG_BIT64EPEL 리포지토리 설치sudo yum install epel-releaseXen 설치필요한 패키지 설치libvirt : 가상화 관리 도구virt-viewer : 가상 머신 그래픽 사용자 인터페이스libvirt-client : libvirt 클라이언트 라이브러리centos-release-xen : Xen 관련 패키지 저장소yum install -y libvirt virt-viewer libvirt-client centos-release-xen[root@was01 ~]$ yum in..
C264x200.fwebp.q85 CentOS 6에서 계정을 생성할 때 홈 디렉토리를 변경하는 방법 CentOS 6에서 계정을 생성할 때 홈 디렉토리를 변경하는 방법 1. /etc/default/useradd 파일을 편집합니다. vim /etc/default/useradd # useradd defaults file GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel 2. 파일을 열고 HOME 항목을 찾습니다. 이 항목은 새로운 사용자 계정이 생성될 때 사용자의 홈 디렉토리 경로를 지정합니다. 3. 기본적으로 HOME 항목은 /home로 설정되어 있습니다. 원하는 홈 디렉토리 경로로 변경합니다. 예를 들어, /var/customhomes로 변경하려면 다음과 같이 수정합니다. HOME=/var/customhomes 4. 파일을 저..
C264x200.fwebp.q85 [명령어] 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] ..
C264x200.fwebp.q85 CentOS 6에서 SELinux 설정 해제 CentOS 6에서 SELinux 설정 해제현재 named 실행 파일의 SELinux 컨텍스트 확인ls -lZ /usr/sbin/named-rwxr-xr-x root root system_u:object_r:named_exec_t /usr/sbin/named사용자 컴파일된 BIND(named) 바이너리에 컨텍스트 적용chcon -R -u system_u -t named_exec_t /usr/local/nbind/sbin/namedSELinux Boolean 값 조정 (존 파일 쓰기 허용)setsebool -P named_write_mastet_zoned onSELinux 로그 기반 정책 허용 예외 생성egrep -i 'avc|ntfs-3g' /var/log/messages | audi..
C264x200.fwebp.q85 [리눅스] 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..
C264x200.fwebp.q85 [리눅스] 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...
C264x200.fwebp.q85 e2label 명령어 e2label 명령어 e2label 명령어는 ext2, ext3, ext4 파일 시스템에서 사용되며, 파일 시스템에 레이블을 설정하거나 레이블을 확인하는 데 사용됩니다. 이 명령어를 사용하여 파일 시스템에 대한 식별 가능한 레이블을 설정하고 관리할 수 있습니다. e2label 명령어의 주요 사용법은 다음과 같습니다. 1. 파일 시스템에 레이블 설정 e2label /dev/[device] [label] [device]는 레이블을 설정할 파일 시스템의 장치 이름이며, [label]은 설정할 레이블의 이름입니다. 2. 파일 시스템의 레이블 확인 e2label /dev/[device] [device]는 레이블을 확인할 파일 시스템의 장치 이름입니다. 3. 파일 시스템의 레이블 제거 e2label /dev/[de..
C264x200.fwebp.q85 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..

728x90
반응형