OS/LINUX71 awk에 bash 변수 값 넘겨주기. $ VAR=10$ awk -v value=$VAR '$3 >= value' file 2012. 5. 7. NFS 서버 설치하고 문제 발생시 대처방법 1. port 확인# rpcinfo -p ip address 2. selinux 확인nfs 설정에 문제가 되는지 잘은 모르겠으나 보안에 특별한 문제가 없다면 사용하지 않는다. 3. nfs 설정후 확인# showmount -e ip address# exportfs -va 4. 5. mount# mount ip address:/share /share 2012. 5. 3. CentOS 6.2에서 NIC Bonding 만들기 1. 먼저 /etc/sysconfig/network-scripts 밑에 ifcfg-bond0 파일을 만들고 아래의 내용을 입력한다.# vim /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BOOTPROTO=none ONBOOT=yes IPADDR=192.168.10.1 (자신의 IP 주소를 입력한다.) NETWORK=192.168.10.0 NETMASK=255.255.255.0 GATEWAY=192.168.10.1 USERCTL=no TYPE=bond BONDING_OPTS="mode=1 miimon=100 use_carrier=0 primary=eth0" (이부분을 넣어준다) 2. 기존의 eth0,eth1,...의 내용을 아래와 같이 바꿔준다.# v.. 2012. 4. 30. /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share".#012 Assuming default behaviour ('no_subtree_check').#012 NOTE: this default has changed since nfs-utils version 1.0.x NIS Server Error Just add the option subtree_check to /etc/exports like this:/storage 172.16.20.1/24(rw,sync,no_root_squash,subtree_check) 2012. 4. 10. ssh에서 X window 가능하게 하기 우분투 기준으로 작성한다.$ sudo vim /etc/ssh/ssh_configForwardX11 yes이렇게 해주면 ssh로 접속할 때마다 매번 -X를 붙이지 않아도 된다. 2012. 4. 4. Ubuntu 환경 설정 System-wide environment variablesEnvironment variable settings that affect the system as a whole (rather then just a particular user) should not be placed in any of the many system-level scripts that get executed when the system or the desktop session are loaded, but into/etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but.. 2012. 3. 29. 이전 1 2 3 4 5 6 ··· 12 다음