출처 : http://www.readysystem.co.kr/new/?doc=bbs/gnuboard.php&bo_table=data01_2&page=7&wr_id=94&PHPSESSID=b28a3ee886e0ff240b5f997ad844a632



▣ Shell : 쉽게 표현하면 도스의 command.com이 하는 역할처럼 login 이후부터 사용자가 입력하는 명령어를 기계어로 변역하여 커널에 전달하는 역할을 하는 명령해석기를 말합니다.


 - csh : 버클리 캘리포니아 대학에서 개발된 프로그래머들에게 적합한 shell입니다.
대화형 사용법에서는 Bourne shell과 대부분 호환되지만 전혀 다른 프로그래밍 인터페이스를 가지고 있고, 히스토리 대체라는 복잡한 기능으로 대신하고 있지만 명령행 편집 기능은 제공 하지 않습니다.


 - ksh : 일반적으로 유닉스에서 가장 많이 사용되고 있는 shell이며 Bourne shell에 처음으로 현대적 인 shell 기능(C shell로부터 차용한 것이다.)을 도입한 shell 입니다. Bourne shell과 호환 되고, 명령행 편집 기능을 제공합니다.

 - bash : Bourne again shell은 최초로 개발된 쉘인 Bourne shell의 변종이라 할 수 있습니다.리눅스에서 가장 많이 사용되는 쉘이며, POSIX 호환이며 Borune shell과 호환되는 쉘로서 GNU 프로젝트에 의해 만들어지고 배포되고 있습니다. 명령행 편집 기능을 제공합니다.

* 참고 - 사용하는 시스템에서 사용가능한 shell의 종류를 알아보려면 /etc/shells라는 파일을 보시면 됩니다. 이 파일에는 서버에서 지원되는 shell의 종류가 들어있습니다.

▣ locale
  - 어떤 프로그램의 메시지가 여러가지 언어로 주어져 있는 경우 이중에 어떤 언어의 것을 출력할 것인가를 사용자가 결정할 수 있게 해주는 수단.

▣ 현재 설정 되어 있는 언어 값 확인.

(file>root)/etc# locale
LANG=ko
LC_CTYPE="ko"
LC_NUMERIC="ko"
LC_TIME="ko"
LC_COLLATE="ko"
LC_MONETARY="ko"
LC_MESSAGES="ko"
LC_ALL=
(file>root)/etc#

▣ 사용 가능한 언어 확인.
(file>solo)/etc/rc2.d% locale -a
POSIX
common
en_US.UTF-8
C
iso_8859_1
ko
ko_KR.EUC
ko.UTF-8
korean
(file>solo)/etc/rc2.d%

▣ 현재 설정 된 언어 변경. C (영어) ----> ko ( 한글)

(file>root)/# locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
(file>root)/#

(file>root)/# setenv LANG ko
(file>root)/# locale
LANG=ko
LC_CTYPE="ko"
LC_NUMERIC="ko"
LC_TIME="ko"
LC_COLLATE="ko"
LC_MONETARY="ko"
LC_MESSAGES="ko"
LC_ALL=
(file>root)/#

 ######### locale 설정이 영어일 경우 ###########

(file>root)/# setenv LANG C
(file>root)/# sdf
sdf: Command not found
(file>root)/#

 ######### locale 설정이 한글일 경우 ###########

(file>root)/# sdfsda
sdfsda: 명령어가 없음
(file>root)/#

▣ shell 따른 설정 방법

 - bash

(file>root)/# bash
bash-2.03# locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
bash-2.03# LANG=ko
bash-2.03# export LANG
bash-2.03# locale
LANG=ko
LC_CTYPE="ko"
LC_NUMERIC="ko"
LC_TIME="ko"
LC_COLLATE="ko"
LC_MONETARY="ko"
LC_MESSAGES="ko"
LC_ALL=
bash-2.03#

 - kcs ( korn )

# locale
LANG=ko
LC_CTYPE="ko"
LC_NUMERIC="ko"
LC_TIME="ko"
LC_COLLATE="ko"
LC_MONETARY="ko"
LC_MESSAGES="ko"
LC_ALL=
# LANG=C
# export LANG
# sdf
ksh: sdf:  not found
# locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
#

 - csh

(file>root)/# locale
LANG=ko
LC_CTYPE="ko"
LC_NUMERIC="ko"
LC_TIME="ko"
LC_COLLATE="ko"
LC_MONETARY="ko"
LC_MESSAGES="ko"
LC_ALL=
(file>root)/# setenv LANG C
(file>root)/# locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
(file>root)/#

▣ 언어설정....파일

(file>root)/#
(file>root)/# cd /etc
(file>root)/etc# cd default
(file>root)/etc/default# vi init
# @(#)init.dfl 1.5 99/05/26
#
# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not.  To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables.
#
TZ=ROK
CMASK=022
LANG=ko ----> 영구적인 설정. ( C )

 - 터미널 상태에서 언어 변경을 하면 현재 상태에서만 적용이 되고 터미널 종료를 하거나 시스템 재부팅이 있을 경우 언어 설정 값은 현재 /etc/default/init 에 설정 되어 있는
언어로 설정이 되거나 shell 설정 값에 따라 언어 값이 변경이 됩니다.



▣  Solaris 2.6에서 부팅을 하고 CDE 로그인.......

Solaris 2.6에서 부팅을 하고 CDE 로그인 화면에서 한글을 선택하면 한글이
모두 깨져서 나옵니다. 한글 비스무리한 것 모두 해 봤는데, 모두 깨지네요.
깨진 한글 로그인 화면 무시하고 그냥 로그인을 하면 글짜가 몽땅 다
깨져 나옵니다.
왜 그럴까요? 아시분이 있으시면 알려주세요.

OS : solaris 2.6
Application : oracle, netscape web server
 
solaris
Site Admin

--------------------------------------------------------------------------------
 
일단 로그인 하셔서 다음 명령어를 확인하세요.

$ locale

LANG=ko
LC_CTYPE="ko"
LC_NUMERIC="ko"
LC_TIME="ko"
LC_COLLATE="ko"
LC_MONETARY="ko"
LC_MESSAGES="ko"
LC_ALL=

이 값이 ko로 설정되어 있는지 확인하시고, 그렇지 않다면

root로 로그인 후 /etc/default/init 파일에 LANG=ko 로 설정 합니다.
그리고 재부팅 ...

만약 locale 명령어 수행이 올바르게 설정되어 있다면,
로긴한 사용자의 홈디렉토리의 다음파일 로그를 찾아 확인해 보시기 바랍니다.

$HOME/.dt/startlog
$HOME/.dt/errorlog





[참고]
http://blog.naver.com/lemonaroma98?Redirect=Log&logNo=60022074975



Solaris 한글 환경설정

Posted 2008. 11. 28. 17:58


### 출처 : www.bigcom.co.kr ### 
 
 
시스템 사용시 한글 사용을 위해 점검해야할 사항 
---------------------------------------------- 
 
1. O/S를 한글버젼으로 설치했는지 확인한다. 
   한글 팩키지 설치 확인 
   # pkginfo | grep  Korean 
 
2. /etc/default/init : 
   시스템에서 사용되는 Language와 TIMEZONE을 아래와 같이 지정한다 
   (/etc/TIMEZONE과 hard link 되어 있으므로 둘중 하나만 수정) 
   TZ=ROK 
   LANG=ko ;한글과 영문을 사용하는 경우 
   LANG=C  ;영문만 사용하는 경우 
 
   cf) CDE 초기환경이 한글로 안뜰때 위의 사항 체크 
 
3. 계정(user) 환경설정 : .cshrc, .profile 정의. 
 
  - csh : .cshrc 화일에 아래와 같이 정의 
 
    setenv LANG ko 
    stty cs8 -istrip -parenb 
 
  - sh 또는 ksh :.profile 화일에 아래와 같이 정의 
 
    LANG=ko 
      export 
      stty cs8 -istrip -parenb 
 
4. 환경 설정 확인 
 
  % env | grep LANG 
  LANG=ko 
 
  % /bin/stty -a|grep cs8 
  -parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts 
                  
  % /bin/stty -a|grep istrip 
  -ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc  

Solaris messages log(inetd, netbios)

Posted 2008. 11. 25. 14:47


inetd[292]: netbios-ns/udp: server failing (looping), service terminated

inetd[292]: netbios-ns/udp: bind: Address already in use

등과 같은 로그를 남긴다면 아래를 참고하세요~!

netbios-ns 는 포트 137를 사용하는데 삼바가 run 중이라면 삼바의 named 가 사용하고 있을겁니다.
만약 삼바를 사용하시다면 위의 메세지를 그냥 무시하시고 사용하셔야 합니다. 밑의 내용을 따라하시면 삼바가 제대로 작동이 되지 않습니다.
inetd.conf 을 찾아서(대부분 /etc/inetd.con or /etc/inetd/inetd.conf) 내용안에 netbios-ns 항목을 #으로 막아 주세요.

또한 netbios-ssn 항목도 #로막아주세요.

Solaris9 SCSI HDD 추가하기

Posted 2008. 11. 13. 11:12



Solaris9  SCSI HDD 추가하기


현재 용량이 제일 큰 3번 디스크에 Solaris9 설치되어있으며 0,1,2번 디스크를 새로 붙여 인식시키는 방법을 알려드리겠습니다.


bash-2.05# format


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN4.2G cyl 3880 alt 2 hd 16 sec 135>
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0 <SUN4.2G cyl 3880 alt 2 hd 16 sec 135>
          /pci@1f,4000/scsi@3/sd@1,0
       2. c0t2d0 <SUN4.2G cyl 3880 alt 2 hd 16 sec 135>
          /pci@1f,4000/scsi@3/sd@2,0
       3. c0t3d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /pci@1f,4000/scsi@3/sd@3,0
Specify disk (enter its number): 0


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p

Current partition table (original):
Total disk cylinders available: 3880 + 2 (reserved cylinders)


Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)          0
  1       swap    wu       0 -  485      512.58MB    (486/0/0)  1049760
  2     backup    wm       0 - 3879        4.00GB    (3880/0/0) 8380800
  3 unassigned    wm       0               0         (0/0/0)          0
  4 unassigned    wm       0               0         (0/0/0)          0
  5 unassigned    wm       0               0         (0/0/0)          0
  6 unassigned    wm       0               0         (0/0/0)          0
  7 unassigned    wm       0               0         (0/0/0)          0


위에 보시면 1번 슬라이드에 swap이 있는데 이부분을 없애 버리도록 하겠습니다.


partition> 1
Part      Tag    Flag     Cylinders        Size            Blocks
  1       swap    wu       0 -  485      512.58MB    (486/0/0)  1049760


Enter partition id tag[swap]: unassigned
Enter partition permission flags[wu]: wm
Enter new starting cyl[0]: 0
Enter partition size[1049760b, 486c, 485e, 512.58mb, 0.50gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 3880 + 2 (reserved cylinders)


Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)          0
  1 unassigned    wm       0               0         (0/0/0)          0
  2     backup    wm       0 - 3879        4.00GB    (3880/0/0) 8380800
  3 unassigned    wm       0               0         (0/0/0)          0
  4 unassigned    wm       0               0         (0/0/0)          0
  5 unassigned    wm       0               0         (0/0/0)          0
  6 unassigned    wm       0               0         (0/0/0)          0
  7 unassigned    wm       0               0         (0/0/0)          0


partition> label
Ready to label disk, continue? yes


이렇게 하면 저장이 됩니다.


partition>quit


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> label
Ready to label disk, continue? yes


또 다시 한번 저장


format>quit

 


이젠 각각 인식 시킬 디스크들을 solaris에서 사용할 수 있도록 format을 하겠습니다.
여기서 newfs 는 윈도우에서 format과 같은 명령어입니다.


bash-2.05# newfs /dev/dsk/c0t0d0s2
newfs: /dev/rdsk/c0t0d0s2 last mounted as /a
newfs: construct a new file system /dev/rdsk/c0t0d0s2: (y/n)? y
/dev/rdsk/c0t0d0s2:     8380800 sectors in 3880 cylinders of 16 tracks, 135 sectors
        4092.2MB in 85 cyl groups (46 c/g, 48.52MB/g, 6080 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 99536, 199040, 298544, 398048, 497552, 597056, 696560, 796064, 895568,
 7453616, 7553120, 7652624, 7752128, 7851632, 7948832, 8048336, 8147840,
 8247344, 8346848,

bash-2.05# newfs /dev/dsk/c0t1d0s2
newfs: /dev/rdsk/c0t1d0s2 last mounted as /oracle
newfs: construct a new file system /dev/rdsk/c0t1d0s2: (y/n)? y
/dev/rdsk/c0t1d0s2:     8380800 sectors in 3880 cylinders of 16 tracks, 135 sectors
        4092.2MB in 85 cyl groups (46 c/g, 48.52MB/g, 6080 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 99536, 199040, 298544, 398048, 497552, 597056, 696560, 796064, 895568,
 7453616, 7553120, 7652624, 7752128, 7851632, 7948832, 8048336, 8147840,
 8247344, 8346848,

bash-2.05# newfs /dev/dsk/c0t2d0s2
newfs: /dev/rdsk/c0t2d0s2 last mounted as /user4
newfs: construct a new file system /dev/rdsk/c0t2d0s2: (y/n)? y
/dev/rdsk/c0t2d0s2:     8380800 sectors in 3880 cylinders of 16 tracks, 135 sectors
        4092.2MB in 85 cyl groups (46 c/g, 48.52MB/g, 6080 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 99536, 199040, 298544, 398048, 497552, 597056, 696560, 796064, 895568,
 7453616, 7553120, 7652624, 7752128, 7851632, 7948832, 8048336, 8147840,
 8247344, 8346848,
bash-2.05#



이젠 mount 시킬 디렉토리를  / 에 만들겠습니다.


bash-2.05# mkdir new1
bash-2.05# mkdir new2
bash-2.05# mkdir new3
bash-2.05# ls
TT_DB       etc         lost+found  new3        sbin        xfn
bin         export      mnt         nsmail      tmp
cdrom       home        net         opt         usr
dev         kernel      new1        platform    var
devices     lib         new2        proc        vol



그리고 mount를 하도록 하겠습니다.


bash-2.05# mount /dev/dsk/c0t0d0s2 /new1
bash-2.05# mount /dev/dsk/c0t1d0s2 /new2
bash-2.05# mount /dev/dsk/c0t2d0s2 /new3



mount 확인 방법은 df -h 혹은 -k 명령어 입니다.

bash-2.05# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t3d0s0      3.7G   2.0G   1.7G    54%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                   1.3G    96K   1.3G     1%    /var/run
swap                   1.3G   320K   1.3G     1%    /tmp
/dev/dsk/c0t3d0s7       12G   364M    11G     4%    /export/home
/dev/dsk/c0t0d0s2      3.9G     9K   3.9G     1%    /new1
/dev/dsk/c0t1d0s2      3.9G     9K   3.9G     1%    /new2
/dev/dsk/c0t2d0s2      3.9G     9K   3.9G     1%    /new3
bash-2.05#


정상적으로 마운트 되어 있는걸 확인 할 수 있습니다.

 



마지막으로 Server가 재부팅이 되더라도 계속  mount가 되도록 설정을 하겠습니다.


bash-2.05# vi /etc/vfstab
"/etc/vfstab" 9 lines, 319 characters
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t3d0s1       -       -       swap    -       no      -
/dev/dsk/c0t3d0s0       /dev/rdsk/c0t3d0s0      /       ufs     1       no -
/dev/dsk/c0t3d0s7       /dev/rdsk/c0t3d0s7      /export/home    ufs     2 yes     -
swap    -       /tmp    tmpfs   -       yes     -


이렇게 되어있는걸 밑의 내용 처럼 추가 수정하시면 됩니다.



#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t3d0s1       -       -       swap    -       no      -
/dev/dsk/c0t3d0s0       /dev/rdsk/c0t3d0s0      /       ufs     1       no      -
/dev/dsk/c0t3d0s7       /dev/rdsk/c0t3d0s7      /export/home    ufs     2       yes -
/dev/dsk/c0t1d0s2       /dev/rdsk/c0t1d0s2      /new1   ufs     3       yes     -
/dev/dsk/c0t2d0s2       /dev/rdsk/c0t2d0s2      /new2   ufs     4       yes     -
/dev/dsk/c0t3d0s2       /dev/rdsk/c0t3d0s2      /new3   ufs     5       yes     -
swap    -       /tmp    tmpfs   -       yes     -



그리고 마지막으로 mount 명령어를 한번 입력하세요.


bash-2.05# mount
/ on /dev/dsk/c0t3d0s0 read/write/setuid/intr/largefiles/xattr/onerror=panic/dev=800018 on Wed Nov 12 18:33:58 2008
/proc on /proc read/write/setuid/dev=3bc0000 on Wed Nov 12 18:33:57 2008
/etc/mnttab on mnttab read/write/setuid/dev=3c80000 on Wed Nov 12 18:33:57 2008
/dev/fd on fd read/write/setuid/dev=3cc0000 on Wed Nov 12 18:33:59 2008
/var/run on swap read/write/setuid/xattr/dev=1 on Wed Nov 12 18:34:01 2008
/tmp on swap read/write/setuid/xattr/dev=2 on Wed Nov 12 18:34:04 2008
/export/home on /dev/dsk/c0t3d0s7 read/write/setuid/intr/largefiles/xattr/onerror=panic/dev=80001f on Wed Nov 12 18:34:04 2008
/new1 on /dev/dsk/c0t0d0s2 read/write/setuid/intr/largefiles/xattr/onerror=panic/dev=800002 on Thu Nov 13 10:57:17 2008
/new2 on /dev/dsk/c0t1d0s2 read/write/setuid/intr/largefiles/xattr/onerror=panic/dev=80000a on Thu Nov 13 10:57:58 2008
/new3 on /dev/dsk/c0t2d0s2 read/write/setuid/intr/largefiles/xattr/onerror=panic/dev=800012 on Thu Nov 13 10:58:04 2008
bash-2.05#



이제 끝이 났습니다. 의문점은 댓글을 적어주시면 됩니다.


현재 제가 직접 설치한것을 토대로 글을 작성합니다. (2008.11.13)


환경 : Solaris 8 SPARC


1. 필요한  APM 및 라이브러리  다운

 

http://sunfreeware.com  에서 접속하여 오른쪽에 있는 해당 사항들을 클릭하여  아래에 적힌 목록
들을 다운

apache-2.2.9-sol8-sparc-local.gz
mysql-5.0.67-sol8-sparc-local.gz
ncurses-5.6-sol8-sparc-local.gz
php-5.2.6-sol8-sparc-local.gz
expat-2.0.1-sol8-sparc-local.gz
openldap-2.4.11-sol8-sparc-local.gz
sasl-2.1.21-sol8-sparc-local.gz
gcc-3.4.6-sol26-sparc-local.gz
libgcc-3.4.6-sol26-sparc-local.gz
libiconv-1.11-sol26-sparc-local.gz
libintl-3.4.0-sol26-sparc-local.gz
libxml2-2.6.31-sol26-sparc-local.gz
openssl-0.9.8i-sol26-sparc-local.gz
zlib-1.2.3-sol26-sparc-local.gz
libidn-1.10-sol8-sparc-local.gz
libpng-1.2.33-sol8-sparc-local.gz
curl-7.19.1-sol8-sparc-local.gz
fontconfig-2.4.2-sol8-sparc-local.gz
freetype-2.3.1-sol8-sparc-local.gz
gd-2.0.35-sol8-sparc-local.gz
jpeg-6b-sol8-sparc-local.gz
xpm-3.4k-sol8-sparc-local.gz


새로 Server를 설치하였다면 위의 목록들을 모두 받아놓는게 정신건강상 좋습니다.


꼭~ 필요한거에요.


아~ 혹시 위에 버젼보다 높은 버젼이 나왔다면 그걸 받아서 설치하셔도 됩니다.


위의 파일들은 모두 패키지 형식이기 때문에 gzip으로 압축만 풀고 간단한 명령어가 치면 자동으로

설치 됩니다.


예) #  gzip -d gcc-3.4.6-sol26-sparc-local.gz


이렇게 모두 압축을 풀어주세요

압축을 풀게 되면 gcc-3.4.6-sol26-sparc-local 이렇게만 남습니다.


그다음 패키지를 풀면됩니다.


예) # pkgadd -d gcc-3.4.6-sol26-sparc-local

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:  all

이렇게 모두 파일이름만 바꾸고 설치 하시면 됩니다.

 


2. PATH 설정


밑의 내용을 /etc/profile 에서 넣어주시면 됩니다.


# vi /etc/profile
# for Apache located at /usr/local/apache2
if [ -d /usr/local/apache2 ]
then
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apache2/lib; export LD_LIBRARY_PATH
  PATH=$PATH:/usr/local/apache2/bin; export PATH;
fi
# for MySQL located at /usr/local/mysql
if [ -d /usr/local/mysql/lib/mysql ]
then
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mysql/lib/mysql; export LD_LIBRARY_PATH
  PATH=$PATH:/usr/local/mysql/bin; export PATH;
fi



밑의 내용을 PATH  에 대해 적용 방법등을 적어놓았습니다.


현재 자신의 PATH 값을 보려면 아래와 같이 하면 됩니다.

# echo $PATH

 
그리고 PATH에 새로운 값을 추가하려면 아래와 같이 하면 됩니다.

 
# PATH=$PATH:/usr/local/bin:/usr/ccs/bin
# export PATH

 
위에서 /usr/local/bin 과 /usr/ccs/bin 디렉토리를 추가했습니다. 이제 /usr/local/bin에 있는 명령어를 아무곳에서나 경로명 없이 실행할 수 있습니다.

 
하지만 위의 방법은 로그아웃하기 전까지만 유효합니다. 다시 로그인하면 또 위와 같이 PATH를 설
정해줘야합니다.

그래서 이걸 자동적으로 적용되는 방법이 있는데 그건 사용자의 profile에 위의 내용들을 추가하는 겁니다.

 
# vi $HOME/.profile
PATH=$PATH:/usr/local/bin:/usr/ccs/bin
export PATH

만약 csh을 사용한다면 아래와 같이 하세요.
 
# vi $HOME/.login
setenv PATH $PATH:/usr/local/bin:/usr/ccs/bin


 

3. APM  설정


1) Apache


밑의 내용처럼  httpd.conf 파일을 수정해 주세요~!


# vi /usr/local/apache2/conf/httpd.conf
User nobody
Group nobody
daemon 으로 되어 있는걸 nobody로 수정


DefaultType text/plain
<IfModule mime_module>  이부분에

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
위 두 내용을 추가.

LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module        modules/libphp5.so   
이부분 추가.


ServerName  192.168.1.69:80
IP 대신 도메인을 사용할 수 있음. test를 위해서는 일단 ip로 해도 괜찮아요.


Include conf/extra/httpd-mpm.conf
Include conf/extra/httpd-multilang-errordoc.conf
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-languages.conf
Include conf/extra/httpd-userdir.conf
Include conf/extra/httpd-info.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-manual.conf
Include conf/extra/httpd-dav.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf
위의 사항들을 사용하고 싶다면 # 주석을 없애면 됩니다.


# /usr/local/apache2/bin/apachectl start


혹시 에러가 생기다면 필요한 라이브러리를 설치하지 않아 생겼을 테니 꼭 라이브러리를 설치하시길 바랍니다.


부팅시 자동으로 Apache를 구동할 수 있도록 스크립을 작성하겠습니다.
위의 사항들을 제대로 구성하셨으면 /etc/init.d/apache  라는 파일이 만들어져 있을껍니다.
이건 그냥 무시하시고 저는 간단하게 하기 위해 짧게 할 예정이라 한줄 밖에 안됩니다.
          
#vi /etc/init.d/apache2

#!/sbin/sh
#
# apache starting script
#

/usr/local/apache2/bin/apachectl start

더 이상 없습니다.


# chown root:sys /etc/init.d/apache2
소유자와 그룹을 root : sys로 변경

# chmod 744 /etc/init.d/apache2
파일 권한은 744로

# ln /etc/init.d/apache2 /etc/rc2.d/S99apache  
# ln /etc/init.d/apache2 /etc/rc1.d/K16apache
# ln /etc/init.d/apache2 /etc/rcS.d/K16apache
여기에 링크를 걸어주시면 부팅시 자동으로 Apache 데몬이 작동이 됩니다.



2) PHP

cp /usr/local/php/doc/php/php.ini-recommended /usr/local/php/lib/php.ini
/usr/local/php/doc/php/php.ini-recommended를 /usr/local/php/lib/php.ini 복사합니다.


테스트를 위해 아래 내용을 새로 작성

# vi /usr/local/apache2/htdocs/index.php
<?
  phpinfo()
?>

확인방법은 http://192.168.1.69/index.php  (이건 저의 셋팅에 따라 만든거에요)
제대로 되었다면 밑의 그림이 나올껍니다. 아~ 그리고 이 테스트는 APM 모두 설치 셋팅한다음 테스트를 하시길 바랍니다.





3) MySQL


# useradd -d /export/home/mysql -g staff -m -u 102 -s /bin/false mysql
MySQL을 사용할 계정을 추가


# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
# vi /etc/my.cnf
/usr/local/mysql/share/mysql 에 my-huge.cnf, my-large.cnf, my-medium.cnf, my-small.cnf 의 예제 설정 파일이 있다. 이를 /etc/my.cnf 으로 이름을 바꿔 복사하면 된다.


skip-networking
#log-bin
리플리케이션을 사용하지 않는다면 [log-bin]을 찾아 주석처리하고 외부에서 접속이 없다면 [skip-networking]의 주석을 푼다.


# /usr/local/mysql/bin/mysql_install_db
기본 MySQL DB를 생성


# chown -R mysql:staff /usr/local/mysql/var
기본 MySQL DB가 생성되는  /usr/local/mysql/var 의 디렉토리 및 파일들의 소유자를 mysql  그룹은 staff로 변경


# /usr/local/mysql/share/mysql/mysql.server start
MySQL 서버를 시작
종료는 /usr/local/mysql/share/mysql/mysql.server stop


# /usr/local/mysql/bin/mysqladmin -u root password 'PASSWORD'
MySQL의 root 패스워드를 변경
기본값은 없기 때문에 보안을 위해서 반드시 수정


# /usr/local/mysql/bin/mysqladmin -u root -h test -p password 'NEW-PASSWORD'
Enter password: PASSWORD
위처럼 하시면 새로운 패스워드로 변경이 됩니다. 위에서  test는 host 이름입니다.



부팅시 자동으로 Mysql를 구동할 수 있도록 스크립을 작성하겠습니다.

# vi /etc/init.d/mysql

#!/sbin/sh
#
# mysql starting script
#
 
/usr/local/mysql/bin/mysqld_safe &


# chown root:sys /etc/init.d/mysql
소유자와 그룹을 root : sys로 변경

# chmod 744 /etc/init.d/mysql
파일 권한은 744로

# ln /etc/init.d/mysql /etc/rc2.d/S99mysql  

이렇게 하면 mysql도 부팅시 자동으로 데몬이 올라오게 됩니다.



Solaris APM Setting

Posted 2008. 11. 7. 12:59
출처 :  http://wride.tistory.com/13


- Solaris 9에서 세팅 -

[MySQL 설치]

1. MySQL 4.0.16 설치(configure -> make -> make install 순서)
[root@www /usr/local/src/mysql-4.0.16]./configure --prefix=/usr/local/mysql \
--localstatedir=/var/lib/mysql \ -> MySQL데이터들이 쌓이는곳
--with-charset=euc_kr

make -> make install 후 몇가지 작업들 수행


[APACHE 설치]
2. Apache 1.3.37 설치(configure -> make -> make install 순서)
[root@www /usr/local/src/apache_1.3.37]./configure --prefix=/usr/local/apache \
--enable-module=so -> php를 DSO방식으로 설치하기 위한 옵션

make -> make install
후 /etc/rc.d/rc.local 파일에 다음줄 추가
/usr/local/apache/bin/apachectl start
이러면 자동으로 아파치가 실행된다.

apache에서 한번 configure 작업만 하고 PHP를 설치하고 다시 apache로 와서 설치를 마무리 하는
과정은 static으로 설치하는 방식이다.
여기서는 dynamic방식으로 설치하는것이므로 아파치를 완전히 설치한 다음 PHP를 설치한다.
해당하는 옵션이 바로 --enable-module=so 라는 옵션이다.
이것이 Apache 2.X일때는 --enable-so라는 옵션으로 주면 된다.


[PHP 설치]

3. PHP 4.4.5 설치(configure -> make -> make install 순서)
[root@www /usr/local/src/php-4.4.5]./configure --prefix=/usr/local/php \
--with-apxs=/usr/local/apache/bin/apxs \ Apache와의 연동을 위해
--with-mysql=/usr/local/mysql \ mysql의 위치 지정
--with-zlib \
--enable-track-vars \
--with-mod-charset \
--with-language=korean \
--with-charset=euc_kr \
--disable-debug

make -> make install
php.ini파일을 만들기 위해 다음과 같은 작업을 한다.
cp /usr/local/src/php-4.3.4/php.ini-dist /etc/php.ini


[APACHE + PHP 환경설정]

4. httpd.conf파일 수정
----------------------------------------------------------------------------------------
LoadModule php4_module modules/libphp4.so 부분을 찾아 아래에 다음을 추가하자.

AddType application/x-httpd-php .php .html .php3 .php4 .inc .htm .phtml .ph
AddType application/x-tttpd-source .phps
----------------------------------------------------------------------------------------
- 기타 ServerName, DocumentRoot, DirectoryIndex 등 변경

5. php.ini파일 수정.
----------------------------------------------------------------------------------------
4.4.5에서의 보안설정 부분만
----------------------------------------------------------------------------------------


[MySQL 관련]

6. 기존의 데이터 복구
재 설치 작업 이전에 html파일과 MySQL내의 모든 자료를 백업받아두었다고 가정하고 하는 얘기이다.
(제로보드의 관리자 모드에서의 백업이 아니라 mysqldump로 백업 받아야 아래의 내용이 맞아들어간다)

mysql로 접속한 다음 mysql 데이터베이스 내의 모든테이블들을 삭제한다.
다음 mysql을 빠져나온다음 프롬프트 상태에서 다음과 같이 명령을 내린다.
[root @www....] mysql mysql < mysql_db_bak_20080103.sql
(물론 백업받은 파일 이름은 각자 상황에 따라 다를 것이다)
처음에 mysql을 설치하면 아무 비밀번호도, 사용자도 지정되어 있지 않지만 위의 작업을 마치면 기존의
사용자들과 root의 비밀번호가 예전처럼 지정되게 된다.
다음으로 이 변경된 사용자와 비밀번호 등이 제대로 동작하기 위해 mysql을 restart하라.

/etc/rc.d/init.d/mysqld restart

다음으로 사용자별로 백업받은 mysql자료들을 복구한다.

mysql -uroot -pXXXXX yanemone < yanemone_db_bak_20080103.sql
mysql -uroot -pXXXXX sijiclub < sijiclub_db_bak_20080103.sql

이렇게 DB복구가 끝났으면 html파일을 복구한다.
이것은 기존에 tar로 묶어 두었던 파일을 그대로 풀어주면 된다.


[CGI 사용환경 설정]
---------------------------------------------------------------------------------------------
(1) /etc/apache/httpd.conf 파일 수정

# vi httpd.conf
342 번째줄 :  ServerName www.test.com            <--- 신청한 도메인 이름을 기입한다.
383 번째줄 :  Options FollowSymLinks MultiViews        <--- Indexes을 삭제한다.


// CGI를 쓰기 위해서는 아래와 같이 CGI를 쓸 수 있도록 해주어야 한다.
 <Directory "/var/apache/cgi-bin">
         AllowOverride None
                Options None
                Order allow,deny
                Allow from all
 </Directory>

    -> 아래 라인에 추가한다.
 <Directory "/*">
         AllowOverride None
         Options ExecCGI
         Order allow,deny
         Allow from all
 </Directory>

805 번째줄 :  # To use CGI scripts:
                    #
                    AddHandler cgi-script .cgi          <--- 주석(#)를 제거한다.
----------------------------------------------------------------------------------------



출처 : http://blog.naver.com/win2107/100000908486

 

(기본)
메일 기본 디렉토리 : /etc/mail
메일 데몬 위치 : /usr/lib/sendmail

메일 환경파일 : /etc/mail/sendmail.cf

 

1. 기본으로 돌아가고 있는 sendmail 데몬을 죽입니다.
#/etc/init.d/sendmail stop
혹은
# ps -ef | grep sendmail
 ...
 ...
# kill -9 [sendmail PID]

 

2. 소스를 적당한 위치로 옮기고 아래와 같이 압축을 풉니다.
# gzip -cd sendmail.8.11.6.tar.gz | tar xvf -

or

# gzcat sendmail.8.11.6.tar.gz | tar xvf -
# cd sendmail-8.11.6

# ./Build

 

3. 정상적으로 Compile 이 되었다면, 현재디렉토리 밑에 "obj.SunOS.5.7.sun4" 라는 디렉토리가 생긴다.

그 다음에 아래 디렉토리로 이동하여

# cd ./cf/cf

 

아래와 같이 "generic-solaris2.mc"를 vi명령어로 열고
아래 라인을 마지막 줄에 추가하고 저장하고 나옵니다.

 

# vi generic-solaris2.mc (Relay를 위한 매크로 추가)
...
FEATURE(access_db,`dbm -o /etc/mail/access')dnl   <-- 이 라인을 추가합니다.
...
:wq!

 

4. m4명령어를 이용하여, sendmail.cf 를 만듭니다.

# /usr/ccs/bin/m4  ../m4/cf.m4  generic-solaris2.mc  >  sendmail.cf

 

5. 기존에 있던 sendmail.cf 등 기존파일을 백업해둡니다.
  가. sendmail 데몬 백업
       # cp /usr/lib/sendmail /usr/lib/sendmail.org
       # cp -r /etc/mail /etc/mail.org
  
6. source가 풀려있는 제일 상위 디렉토리로 이동한후 아래와 같이 데몬 등을 복사합니다.

# pwd
/sendmail-8.11.6     (소스가 풀려있는 디렉토리)

 

 가. sendmail 데몬 복사
    # cp ./obj.SunOS.5.7.sun/sendmail/sendmail /usr/lib/sendmail
    # chmod 555 /usr/lib/sendmail
    # chmod u+s /usr/lib/sendmail

 

 나. sendmail.cf 복사
    # cp ./cf/cf/sendmail.cf /etc/mail/sendmail.cf

 

7. 환경설정.(예, 도메인이 mail.solaris8.pe.kr 이라 가정하고, IP는 203.230.242.200이라 가정)

# vi /etc/mail/local-host-names    
mail
solaris8.pe.kr
mail.solaris8.pe.kr
:wq!

 

# vi /etc/mail/access
203.230.243  RELAY
solaris8.pe.kr RELAY
:wq!

 

# makemap dbm /etc/mail/access < /etc/mail/access  
(--> access파일 수정후 항상 위 명령을 실행해야 적용이 됩니다.)

 

8. sendmail 데몬 시작

# /usr/lib/sendmail -bd -q15m

9. 테스트
  가.버전확인
       # telnet localhost 25
        Trying 127.0.0.1...
        Connected to localhost.
        Escape character is '^]'.
        220 mail.solaris8.pe.kr ESMTP Sendmail 8.11.6+Sun/8.11.6; Mon, 21 Apr 2003 12:23:23 +0900 (KST)

   나. 메일 전송확인
      # mailx -v win2107@naver.com

       Subject : test mail
       내용적으시고, " control+D " 키 누르시면 전송됩니다.

 

----------------------------------------------------------------------------------------

[예제]

아래내용은 실제 Solaris7에서 Sendmail.8.12.9를 설치하면서 캡쳐한 내용입니다. 참고하세요

스크립트를 2003년 6월 14일 토요일 오전 09시 55분 16초에 시작


ns:/ #
ns:/ #
ns:/ #cd sendmail-8.12.9/


ns:/sendmail-8.12.9#>ls
./              INSTALL         PGPKEYS         contrib/        include/        libsmutil/      praliases/      test/
../             KNOWNBUGS       README          devtools/       libmilter/      mail.local/     rmail/          vacation/
Build*          LICENSE         RELEASE_NOTES   doc/            libsm/          mailstats/      sendmail/
FAQ             Makefile        cf/             editmap/        libsmdb/        makemap/        smrsh/
ns:/sendmail-8.12.9#>
ns:/sendmail-8.12.9#>
ns:/sendmail-8.12.9#>
ns:/sendmail-8.12.9#>./Build
Making all in:
/sendmail-8.12.9/libsm
Configuration: pfx=, os=SunOS, rel=5.7, rbase=5, rroot=5.7, arch=sun4, sfx=, variant=optimized
Using M4=/usr/local/bin/m4
Creating /sendmail-8.12.9/obj.SunOS.5.7.sun4/libsm using /sendmail-8.12.9/devtools/OS/SunOS.5.7
Making dependencies in /sendmail-8.12.9/obj.SunOS.5.7.sun4/libsm
if [ -r /usr/include/sysexits.h ]; \
then \
        ln -s /usr/include/sysexits.h; \
fi
rm -f sm_os.h
ln -f -s ../../include/sm/os/sm_os_sunos.h sm_os.h
gcc -M -I. -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20700  assert.c debug.c errstring.c exc.c heap.c match.c rpool.c strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c vsprintf.c vsscanf.c wbuf.c wsetup.c string.c stringf.c xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c signal.c clock.c config.c shm.c mbdb.c strexit.c cf.c ldap.c niprop.c mpeix.c   t-event.c t-exc.c t-rpool.c t-string.c t-smstdio.c t-match.c t-strio.c t-heap.c t-fopen.c t-strl.c t-strrevcmp.c t-types.c t-path.c t-float.c t-scanf.c t-shm.c t-cf.c b-strcmp.c >> Makefile
Making in /sendmail-8.12.9/obj.SunOS.5.7.sun4/libsm
gcc -O -I. -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20700   -c  assert.c

.....

.....

....
8.12.9/obj.SunOS.5.7.sun4/libsmutil/libsmutil.a /sendmail-8.12.9/obj.SunOS.5.7.sun4/libsm/libsm.a  -lresolv -lsocket -lnsl
groff -Tascii -man vacation.1 > vacation.0 || cp vacation.0.dist vacation.0

 

ns:/sendmail-8.12.9#>ls
./                   LICENSE              contrib/             libsm/               obj.SunOS.5.7.sun4/  vacation/
../                  Makefile             devtools/            libsmdb/             praliases/
Build*               PGPKEYS              doc/                 libsmutil/           rmail/
FAQ                  README               editmap/             mail.local/          sendmail/
INSTALL              RELEASE_NOTES        include/             mailstats/           smrsh/
KNOWNBUGS            cf/                  libmilter/           makemap/             test/
ns:/sendmail-8.12.9#>


ns:/sendmail-8.12.9#>cd obj.SunOS.5.7.sun4


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4#>ls
./           editmap/     libsmdb/     mail.local/  makemap/     rmail/       smrsh/
../          libsm/       libsmutil/   mailstats/   praliases/   sendmail/    vacation/
ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4#>


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4#>cd ..


ns:/sendmail-8.12.9#>cd cf/cf


ns:/sendmail-8.12.9/cf/cf#>ls
./                       cs-solaris2.mc           generic-linux.cf         generic-sunos4.1.cf      s2k-osf1.mc
../                      cs-sunos4.1.mc           generic-linux.mc         generic-sunos4.1.mc      s2k-ultrix4.mc
Build*                   cs-ultrix4.mc            generic-mpeix.cf         generic-ultrix4.cf       submit.cf
Makefile                 cyrusproto.mc            generic-mpeix.mc         generic-ultrix4.mc       submit.mc
README                   generic-bsd4.4.cf        generic-nextstep3.3.cf   huginn.cs.mc             tcpproto.mc
chez.cs.mc               generic-bsd4.4.mc        generic-nextstep3.3.mc   knecht.mc                ucbarpa.mc
clientproto.mc           generic-hpux10.cf        generic-osf1.cf          mail.cs.mc               ucbvax.mc
cs-hpux10.mc             generic-hpux10.mc        generic-osf1.mc          mail.eecs.mc             uucpproto.mc
cs-hpux9.mc              generic-hpux9.cf         generic-solaris.cf       mailspool.cs.mc          vangogh.cs.mc
cs-osf1.mc               generic-hpux9.mc         generic-solaris.mc       python.cs.mc
ns:/sendmail-8.12.9/cf/cf#>


ns:/sendmail-8.12.9/cf/cf#>vi generic-solaris.mc
divert(-1)
#
# Copyright (c) 1998, 1999, 2001 Sendmail, Inc. and its suppliers.
#       All rights reserved.
# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
# Copyright (c) 1988, 1993
#       The Regents of the University of California.  All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

#
#  This is a generic configuration file for SunOS 5.x (a.k.a. Solaris 2.x
#  and Solaris 7 through the present version).
#
#  It has support for local and SMTP mail only.  If you want to
#  customize it, copy it to a name appropriate for your environment
#  and do the modifications there.
#
divert(0)dnl
VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro Exp $')
OSTYPE(solaris2)dnl
DOMAIN(generic)dnl
# 아래부분 추가
FEATURE(access_db,`dbm -o -T /etc/mail/access')dnl
#
MAILER(local)dnl
MAILER(smtp)dnl
...
:wq!

ns:/sendmail-8.12.9/cf/cf#>


ns:/sendmail-8.12.9/cf/cf#>/usr/local/bin/m4 ../m4/cf.m4 generic-solaris.mc > sendmail.cf
*** WARNING: missing -T<TMPF> in argument of FEATURE(`access_db', dbm -o /etc/mail/access)


ns:/sendmail-8.12.9/cf/cf#>
ns:/sendmail-8.12.9/cf/cf#>
ns:/sendmail-8.12.9/cf/cf#>
ns:/sendmail-8.12.9/cf/cf#>ls -ld sendmail.cf
-rw-r--r--   1 root     sys        53554  6월 17일  11:48 sendmail.cf


ns:/sendmail-8.12.9/cf/cf#>
ns:/sendmail-8.12.9/cf/cf#>cp sendmail.cf /etc/mail/sendmail.cf


ns:/sendmail-8.12.9/cf/cf#>cd ../..


ns:/sendmail-8.12.9#>
ns:/sendmail-8.12.9#>cd obj.SunOS.5.7.sun4/


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4#>ls
./           editmap/     libsmdb/     mail.local/  makemap/     rmail/       smrsh/
../          libsm/       libsmutil/   mailstats/   praliases/   sendmail/    vacation/


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4#>cd sendmail


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4/sendmail#>ls -ld sendmail
-rwxr-xr-x   1 root     other     628948  6월 14일  10:00 sendmail*


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4/sendmail#>
ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4/sendmail#>cp sendmail /usr/lib/sendmail


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4/sendmail#>
ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4/sendmail#>
ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4/sendmail#>ls -la /usr/lib/sendmail
-r-sr-xr-x   1 root     bin       628948  6월 14일  12:07 /usr/lib/sendmail*


ns:/sendmail-8.12.9/obj.SunOS.5.7.sun4/sendmail#>cd ../..


ns:/sendmail-8.12.9#>/usr/lib/sendmail -bd -q15m      

                               (물론 다 환경설정되었다는 가정하에 메일데몬을 시작한다)

                               (환경설정은 위쪽 설명 참고하세요~~)


ns:/sendmail-8.12.9#>cd /etc/mail
ns:/etc/mail#>
ns:/etc/mail#>ls -la
총 7300
drwxr-xr-x   2 root     mail        1024  6월 14일  12:08 ./
drwxr-xr-x  43 root     sys         4096  6월 17일  08:54 ../
-rw-r--r--   1 root     sys           35  4월  1일  10:38 access
-rw-r--r--   1 root     sys        40960 2001년  9월 25일 access.db
-rw-r--r--   1 root     sys            0  6월 16일  12:04 access.dir
-rw-r--r--   1 root     sys         1024  6월 16일  12:04 access.pag
-rw-r--r--   1 root     sys         1217 2002년  5월  8일 aliases
-rw-r--r--   1 root     sys            0 2001년  9월 25일 aliases.db
-rw-r--r--   1 root     sys            0 2001년  9월 25일 aliases.dir
-rw-r--r--   1 root     sys         1201 2001년  9월 25일 aliases.org
-rw-r--r--   1 root     sys         1024  4월  1일  10:40 aliases.pag
-rw-r--r--   1 root     bin         5266  1월  7일  23:59 helpfile
-rw-r--r--   1 root     bin           70  4월  1일  10:39 local-host-names
-r--r--r--   1 bin      bin        33412 2001년  9월 25일 main.cf
-rwxr-xr-x   1 root     sys        34782  4월  1일  11:17 main.cf.new*
-rwx------   1 root     sys          831 2001년  9월 25일 makemap_script*
-rw-r--r--   1 root     sys           23  4월  1일  10:39 relay-domains
-r-sr-xr-x   1 root     other     734508  6월 14일  11:57 sendmail.8.11.6.daemon*
-r-sr-xr-x   1 root     other     623968  6월 14일  11:59 sendmail.8.12.1.daemon*
-r-sr-xr-x   1 root     other     744696  6월 14일  11:56 sendmail.8.12.8.daemon*
-r-sr-xr-x   1 root     other     729936  6월 14일  12:01 sendmail.8.9.3*
-r--r--r--   1 root     sys        53554  6월 17일  11:48 sendmail.cf
-r--r--r--   1 root     other      34109  6월 14일  11:57 sendmail.cf.8.12.8
-rw-r--r--   1 root     other      53554  6월 17일  11:57 sendmail.cf.8.12.9
-r--r--r--   1 root     sys        34109  4월  1일  11:17 sendmail.cf.old
-r--r--r--   1 root     sys        34128 2001년  9월 25일 sendmail.cf.pre107684
-r--r--r--   1 root     other      34109  4월  1일  11:17 sendmail.cf.pre107684-08
lrwxrwxrwx   1 root     other          8  4월  1일  11:17 sendmail.hf -> helpfile
-rw-r--r--   1 root     sys           33  6월 17일  11:49 sendmail.pid
-r-sr-xr-x   1 root     sys       389476  3월 28일  10:59 sendmail_893_deamon*
-r--r--r--   1 bin      bin        34108 2001년  9월 25일 subsidiary.cf
-rwxr-xr-x   1 root     sys        35483  4월  1일  11:17 subsidiary.cf.new*
-rw-r--r--   1 root     bin            5 2001년  9월 25일 trusted-users
ns:/etc/mail#>cd


ns:/#>telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 xxx.co.kr ESMTP Sendmail 8.12.9/8.12.9; Tue, 17 Jun 2003 12:05:15 +0900 (KST)
quit
221 2.0.0 xxx.co.kr closing connection
Connection closed by foreign host.


ns:/#>

ns:/etc/mail#>
스크립트가 2003년 6월 14일 토요일 오후 01시 01분 30초에 완료

 

이상입니다....^^꽤 되었네요~ 이작업 했던게..요즘은 다 까먹었네여~ 열심히...

 

'OS 운영체제 및 보안 > Solaris' 카테고리의 다른 글

Solaris 한글 환경설정  (0) 2008.11.28
Solaris messages log(inetd, netbios)  (0) 2008.11.25
Solaris9 SCSI HDD 추가하기  (0) 2008.11.13
Solaris8 에서 APM 및 라이브러리 설치  (0) 2008.11.07
Solaris APM Setting  (0) 2008.11.07
Solaris 시스템 부하 측정 및 판단 참고 기준  (0) 2008.10.24
Solaris root passwoord 변경  (0) 2008.10.24
fsck 명령어  (0) 2008.10.24
DNS 셋팅  (0) 2008.10.24
Solaris 10 설치  (0) 2008.10.24
« PREV : 1 : 2 : 3 : 4 : 5 : NEXT »