CentOS 썸네일형 리스트형 sed -i 명령어로 파일 내 구문 치환 및 저장 sed -i 's/SELINUX\=enforcing/SELINUX\=permissive/g' /etc/selinux/config rouete del (샘플) [root@devpack-nroot-postgresql ~]# route -nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface192.168.0.0 0.0.0.0 255.255.254.0 U 0 0 0 eth1169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth10.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1 [root@devpack-nroot-postgresql ~]# route del -net 169.254.0.0 netmask 255.255.0.0 [root@devpack-nroot-postgresql ~]# route -nKernel IP routing .. ed # 오류./pg_conf_change.sh: line 139: ed: command not found./pg_conf_change.sh: line 165: ed: command not found # 조치 $ sudo su - $ yum install ed maven 설치 (CentOS 6.7) $ su - $ cd /opt$ wget http://www.eu.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.zip$ unzip apache-maven-3.3.3-bin.zip$ mv apache-maven-3.3.3 maven$ ln -s /opt/maven/bin/mvn /usr/bin/mvn$ cd /etc/profile.d/$ vi maven.sh #!/bin/bash MAVEN_HOME=/var/maven PATH=$MAVEN_HOME/bin:$PATH export PATH MAVEN_HOME export CLASSPATH=.$ chmod +x maven.sh$ source maven.sh$ cd ~$ mvn -ver.. nslookup 설치하기 yum install bind-utils CPU Core 수 확인 # Command $ grep "physical id" /proc/cpuinfo | sort -u | wc -l or $ su - $ which dmidecode/usr/sbin/dmidecode # Shell Script $ ps -ef | grep -v "grep" | grep "java" | awk '{print $2}' | while read PID; do echo "$PID" && cat /proc/$PID/status |egrep "VmRSS" ; done VMware CentOS 에서 resolv.conf 초기화 문제 출처 : http://ysoftman.blogspot.kr/2011/09/linux-vmware-etcresolvconf.html Linux vmware 사용시 /etc/resolv.conf 초기화 문제리눅스에서 DNS 설정을 바꾸려고 아래 파일을 수정한다./etc/resolv.conf그리고 아래와 같이 서비스를 재시작 하거나 리부팅한다./sbin/service network restart 하지만 vmware 상에서는 /etc/resolv.conf 수동설정이 안된다.DHCP 로 ip 를 자동으로 할당 받을때 /sbin/dhclient-script 에 의해서 resolv.conf 파일이 새로 생성되기 때문이다.(vi /var/log/boot.log 를 보면 dhclient-script 가 /etc/reso.. Daum yum repository 스누피블로그 (http://snoopybox.co.kr/1703) /etc/yum.repos.d/Daum.repo [base] name=CentOS-$releasever - Base baseurl=http://ftp.daum.net/centos/$releasever/os/$basearch/ gpgcheck=0 [updates] name=CentOS-$releasever - Updates baseurl=http://ftp.daum.net/centos/$releasever/updates/$basearch/ gpgcheck=0 리눅스 Static Routing 추가 리눅스 라우팅 정보 추가는 초보자가 대표적으로 실수하는 경우이다.route add 로 추가해주면 reboot 등 재기동 이후 적용이 되지않는다.이를 방지하기위해 실제 서버에는 static 하게 정보를 관리해줘야 한다. 리눅스에서 static routing 설정 /etc/sysconfig/network-scripts/routing-eth1 이전 1 2 다음