풍수를 찾아서

블로그 이미지
여기저기 널려있는 풍수 정보를 한 곳으로 모으는 중입니다. 물론 나의 생활이 함께 묻어나는 자료들도 함께 공유할 수 있습니다.
by 백마탄왕자
  • Total hit
  • Today hit
  • Yesterday hit



'기술메모/unix'에 해당되는 글 5건

  1. 2009.05.07
    Solaris IP,hostname 변경 방법
  2. 2009.05.07
    Solaris TIPs
  3. 2009.04.29
    yum 을 이용하여 rpm package 다운로드만 하기.
  4. 2009.03.20
    Solaris Oracle Database 자동시작.
  5. 2009.03.16
    Remote IP & port alive check script - netcat

 

1. IP 및 hostname 변경과 관련된 파일들.  

/etc/hosts

/etc/inet/ipnodes or /etc/inet/hosts

/etc/nodename

/etc/hostname.vmxnet0 (/etc/hostname.eth0 or /etc/hostname.pcn0 etc.)

/etc/netmasks

 

2. 변경후 진행할 작업.

- 설정파일에 default gateway 추가 및 DNS 등록.

  default G/W

vi  /etc/defaultrouter

10.103.118.1

   DNS

vi /etc/resolv.conf

nameserver 168.126.63.1

nameserver 168.126.63.2

- default gateway 적용

route add default 10.103.118.1

AND

 
  1. CD mount on Solaris x86

 mount -F hsfs -r /dev/dsk/c0t0d0s2 /cdrom

 

  1. Package Install

pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWbash

pkgadd SUNWbash

 

  1. Man install

pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWdoc

pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWman

pkgadd SUNWdoc SUNWman

 

  1. Ucb ps install

pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg  SUNWscpu

pkgadd SUNWscpu

 

 

  1. Uninstall sendmail

# ps -ef | grep send

    root  1011     1   0   Mar 27 ?           0:04 /usr/lib/sendmail -bd -q15m

   smmsp  1013     1   0   Mar 27 ?           0:00 /usr/lib/sendmail -Ac -q15m

 

#pkginfo | grep mail

system      SUNWsndmr                    Sendmail (root)

system      SUNWsndmu                    Sendmail (/usr)

 

#pkgrm SUNWsndmr SUNWsndmu

 

 

  1. VMWare tools on Solaris text mode.

#mount -rF hsfs /dev/dsk/c0t0d0s0 /cdrom

#cp /cdrom/vmware-solaris-tools.tar.gz  /tmp

#gunzip vmware-solaris-tools.tar.gz

#tar xvf vmware-solaris-tools.tar

#cd vmware-tools-distrib/

#./vmware-install.pl

 

  1. Install ldd

#pkgadd -d /cdrom/Solaris_10/Product -s /var/spool/pkg SUNWtoo

#pkgadd SUNWtoo

 

  1. User Home directory change

usermod -d /u01 mmtxer

 

  1. Uninstall staroffice

echo action=nocheck > /tmp/admin

echo conflict=nocheck >> /tmp/admin

echo rdepend=nocheck >> /tmp/admin

pkginfo -x | cut  -f1 -d " " | grep staroffice> /tmp/ooo_packages

pkgrm -a /tmp/admin -n `cat /tmp/ooo_packages`

 

 

  1. Uninstall snmpd

 svcs -a | grep dmi

 svcadm disable svc:/application/management/dmi:default

 svcadm disable svc:/application/management/snmpdx:default

 svcs -a | grep snmp

 svcs -a | grep dmi

 ps -ef | egrep "mib|snm" | grep -v gerp

 pkgrm SUNWsacom

 

  1. IP and Network check

   $ ifconfig hme0 211.192.191.171 netmask 0xffffff00 broadcast + up

* Solaris 에서 GATEWAY 변경 작업

   $ netstat -rn

   $ route add default [gateway ip]

   $ vi /etc/defaultrouter

   [gateway ip]


AND

1. yum-downloadonly 설치.

  yum install yum-downloadonly

2. download only option으로 파일 다운로드하기.

  yum update compat-libgcc-296 -y --downloadonly --downloaddir=/tmp
AND

0. oracle 관리자의 .profile 혹은 .bash_profile 에 환경변수 설정이 되어 있는 지 확인.
export ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
ORACLE_HOME_LISTNER=$ORACLE_HOME/bin/lsnrctl
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH ORACLE_HOME_LISTNER

1. oratab 파일 (/var/opt/oracle/oratab) 열기 - 리눅스의 경우 (/etc/oratab)

# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# A colon, ':', is used as the field terminator.  A new line terminates
# the entry.  Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
#   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively.  The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
orcl:/u01/app/oracle/oracle/product/10.2.0/db_1:Y
cassis:/u01/app/oracle/oracle/product/10.2.0/db_1:N


2. 자동으로 뜨기 원하는 원하는 SID의 자동 시작 여부 필드가 Y가 되도록 변경하기.

3. dbstart 실행.
4. 
lsnrctl start실행. (ORACLE_HOME_LISTNER 이 정확하게 등록되어 있다면 dbstart시 이미 실행됨.)
5. sqlplus로 연력되는 것으로 정상 동작 확인.

      $ sqlplus /nolog
      SQL> CONNECT system@dev101ee
      Enter password: <Enter SYSTEM password>

AND

   

  1. Shell script 작성.

    /home/file/sh/chkalive.sh

     

    #!/bin/ksh

    lines=`exec 2>&1 7>&1; netcat -vtw 10 10.60.8.151 21001 | xargs ;exec 1>&7 7>&-`

    echo [`date +%Y%m%d.%H%M%S`]$lines >> /home/file/log/vpncheck.log

       

     

     

  2. Crontab 등록

    * * * * * /home/file/sh/chkalive.sh 2>&1 > /dev/null

       

    **netcat 있는 UNIX장비에서 사용할 !

AND

ARTICLE CATEGORY

분류 전체보기 (35)
풍수 (9)
말레이시아 (0)
여행 (8)
기술메모 (13)
vmware (3)
unix (5)
smartcard (1)
java (1)
모바일트렌드 (0)
부동산 (4)
건강 (0)
강아지훈련 (0)

RECENT ARTICLE

RECENT COMMENT

RECENT TRACKBACK

CALENDAR

«   2025/03   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

ARCHIVE