-솔라리스10 IP 변경

$  chmod 777 /etc/inet/ipnodes
$ vi /etc/inet/ipnodes
$ chmod 444 /etc/inet/ipnodes
$ ifconfig bge0 xxx.xxx.xxx.xxx up

 

-리눅스 IP 변경

$ vi /etc/sysconfig/network-scripts/ifcfg-eth0
IP 편집
$ /etc/rc.d/init.d/network restart

-리눅스 기본 G/W 추가
$ route add default gw 121.254.172.1 dev eth0


- 리눅스 바로적용
$ ifconfig eth0 IP netmask 255.255.255.0


솔라리스 추가
솔라리스에서 DNS, IP 및 기타 Gateway 등 네트워크 설정 방법입니다.

 

* Solaris 에서 변경해야 될 파일들

  $ /etc/nodename              # if you need to change the name of the machine 
  $ /etc/hostname.interface    # eg. hostname.hme0 
  $ /etc/hosts                # Update to reflect new name 
  $ /etc/nsswitch.conf        # Update if your name resolution 
  $ /etc/resolv.conf   

  # Update if your name servers/domain changed (DNS only) 
  $ /etc/defaultdomain            # set you default domain 
  $ /etc/defaultrouter            # Set the default router's IP 
  $ /etc/inet/networks            # Set your network name 
  $ /etc/inet/netmasks            # Set your network number 
  $ /etc/n/etc/net/ticots/hosts    # For the streams-level loopback 
  $ /etc/ticlts/hosts              # For the streams-level loopback 
  $ /etc/net/ticotsord/hosts      # For the streams-level loopback

* LAN 사용할수 있도록
$ ifconfig DEVICE plumb

* Solaris 에서 IP 변경 작업

  $ /etc/hosts 파일을 수정함. 
  $ /etc/hostname.hme0 랜카드에 적용되는 호스명을 명시

  $ ifconfig hme0 [ip] netmask 0xffffff00 broadcast + up

  ex)
  --- 영구적인 변경
  $ vi /etc/hostname.hme0
  credilist

  $ vi /etc/hosts
  127.0.0.1      localhost
  211.192.191.178 credilist      loghost

  --- 임시변경시 (컴퓨터가 켜져있는 동안, 리부팅되면 정보가 사라짐)
  $ ifconfig -a
  lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
  hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 211.192.191.178 netmask ffffff00 broadcast 211.192.191.255

  $ ifconfig hme0 211.192.191.171 netmask 0xffffff00 broadcast + up

* Solaris 에서 GATEWAY 변경 작업

  $ netstat -rn
  $ route add default [gateway ip]
  $ vi /etc/defaultrouter
  [gateway ip]

  ex)
  --- 영구적인 변경
  $ vi /etc/defaultrouter
  211.192.191.177

  --- 임시적인 변경
$ route add default 211.192.191.177


* Solaris 에서 DNS 변경 작업

  ex)
  $ vi /etc/resolv.conf
  nameserver 168.126.63.1
  nameserver 168.126.63.2
  nameserver 211.169.248.153

  $ vi nsswitch.conf
  # hosts: 부분을 수정한다.
  # consult /etc "files" only if nis is down.
  hosts:      files dns

* 설정 변경 후 reboot , 시스템에 관한 내용이 변경된경우
  reboot


  1. Commented by all kinds of jerseys at 2010.08.14 17:13

    솔라리스, 솔라리스 IP변경

  2. Commented by cheap jerseys at 2013.04.23 17:54

    [url=http://www.wholesalecheapjerseysgo.us]Cheap Jerseys[/url]
    [url=http://www.wholesalecheapjerseysgo.us]Cheap Jerseys from china[/url]
    [url=http://www.wholesalecheapjerseysgo.us]Cheap Jerseys wholesale[/url]
    [url=http://www.wholesalecheapjerseysgo.us]Cheap china Jerseys[/url]
    [url=http://www.wholesalecheapjerseysgo.us]Cheap Jerseys free shipping[/url]
    [url=http://www.wholesalecheapjerseysgo.us]Cheap nfl Jerseys[/url]
    [url=http://www.wholesalecheapjerseysgo.us]china Jerseys[/url]
    [url=http://www.wholesalecheapjerseysgo.us]china wholesale cheap Jerseys[/url]
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-c-1995.html]Cheap Nike NFL Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-nike-nfl-game-c-1995_1155.html]Cheap Nike NFL Game Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-nike-nfl-elite-c-1995_1190.html]Cheap Nike NFL Elite Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-nike-nfl-limited-c-1995_2269.html]Cheap Nike NFL Limited Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-nfl-tshirt-c-1995_1546.html]Cheap NFL T-shirt[/url],
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-kids-nike-nfl-jerseys-c-1995_1188.html]Cheap Kids Nike NFL Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-nike-kids-limited-jerseys-c-1995_2433.html]Cheap Nike Kids Limited Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/cheap-nike-nfl-jerseys-2013-nfl-super-bowl-c-1995_2600.html]2013 Cheap NFL Super Bowl Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-c-2489.html]Cheap 2012 Knitting Wool Hat[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-women-knitting-wool-hats-c-2489_2495.html]Cheap Women Knitting Wool Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-brand-knitting-wool-hats-c-2489_2490.html]Cheap Brand Knitting Wool Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-mlb-knitting-wool-hats-c-2489_2491.html]Cheap MLB Knitting Wool Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-mlb-winter-hats-c-2489_2615.html]Cheap MLB Winter Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-nba-knitting-wool-hats-c-2489_2492.html]Cheap NBA Knitting Wool Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-nba-winter-hats-c-2489_2618.html]Cheap NBA Winter Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-nfl-knitting-wool-hats-c-2489_2493.html]Cheap NFL Knitting Wool Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-nfl-winter-hats-c-2489_2616.html]Cheap NFL Winter Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-nhl-knitting-wool-hats-c-2489_2494.html]Cheap NHL Knitting Wool Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/2012-knitting-wool-hat-nhl-winter-hats-c-2489_2617.html]Cheap NHL Winter Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nba-jerseys-c-1287.html]Cheap NBA Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nba-jerseys-nba-hats-c-1287_2187.html]Cheap NBA Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nba-jerseys-nba-tshirt-c-1287_2135.html]Cheap NBA T-shirt[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nba-jerseys-nba-shorts-c-1287_1295.html]Cheap NBA Shorts[/url],
    [url=http://www.wholesalecheapjerseysgo.us/mlb-jerseys-c-20.html]Cheap MLB Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/mlb-jerseys-mlb-fitted-hats-c-20_2625.html]Cheap MLB Fitted Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/mlb-jerseys-mlb-hats-c-20_2184.html]Cheap MLB Hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/mlb-jerseys-mlb-tshirt-c-20_2317.html]Cheap MLB T-shirt[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nfl-jerseys-c-1996.html]Cheap NFL Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nhl-jerseys-c-1077.html]Cheap NHLJerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nhl-jerseys-nhl-hats-c-1077_2191.html]Cheap NHL hats[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nhl-jerseys-nhl-tshirt-c-1077_2257.html]Cheap NHL T-Shirt[/url],
    [url=http://www.wholesalecheapjerseysgo.us/nhl-jerseys-nhl-kids-jerseys-c-1077_2015.html]Cheap NHL Kids Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/soccer-jerseys-c-1152.html]Cheap Soccer Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/ncaa-jerseys-c-2096.html]Cheap NCAA Jerseys[/url],
    [url=http://www.wholesalecheapjerseysgo.us/iphone-sports-case-c-2538.html]Cheap Iphone Sports Case[/url],
    [url=http://www.wholesalecheapjerseysgo.us/customed-jerseys-c-1580.html]Cheap Customed Jerseys[/url],


※ 포트변경시 vi /etc/services 에서 해당서비스 포트를 변경시켜 준다.


*SSH관련 수정사항

$ vi /etc/ssh/sshd_conf
내용수정

포트 변경 :  Port 22
root 접근 제한 : PermitRootLogin no


접속유지 시간
LoginGraceTime 30m
ClientAliveInterval 600
ClientAliveCountMax 3


변경후
$ /etc/init.d/sshd restart 로 데몬을 다시 올려 준다.

 

*FTP 관련 수정사항

$vi /etc/vsftpd.ftpus
$vi /etc/vsftpd/vsftpd.conf

//anonymous 접속 불가능 하도록
anonymous_enable=NO 수정

//ascii 모드 전성
ascii_upload_enable=YES  주석제거
ascii_download_enable=YES 주석제거

//디렉토리 접근권한
chroot_list_enable=YES     # 주석제거
/etc/vsftpd.chroot_list       # 파일에 홈디렉토리에만 접근허용할 ID 추가
또는 chroot_list_file=/etc/vsftpd/chroot_list

포트 변경시
listen_port=21 추가


※ 솔라리스10 은
$ svcadm restart 서비스 데몬
$ svcadm enable 서비스 데몬
$ svcadm disable 서비스 데몬

로 제어


//EUC-KR 사용할수 있도록 설정
/etc/profile 에 EUC-KR 설정
export LANG=ko_KR.EUC-KR
export LC_ALL=ko_KR.EUC-KR

$ source /etc/profile


iptables 추가
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 포트 -j ACCEPT
/etc/init.d/iptables restart


솔라리스(SOLARIS) APM 설치

Linux & Solaris 2009. 8. 1. 21:08 posted by JP™


※ 솔라리스 설치후 기본적인 설정

- 기본 셸을 bash로 변경
$ vi /etc/passwd
아래 라인 수정
root:x:0:1:Super-User:/:/bin/bash

 

- /etc/profile 환경설정
$ vi /etc/profile
아래 라인 수정 및 추가
alias ll="ls -alF"
LANG=ko.UTF-8; export LANG
stty -istrip -parenb cs8
 
PS1="[\h] \W\\$ "; export PS1
EDITOR=vi; export EDITOR
CC=gcc; export CC
CPP="gcc -E"; export CPP
PATH=/usr/local/bin:/usr/sfw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ccs/bin; export PATH
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/ucblib:/usr/ccs/lib:/usr/sfw/lib:/usr/local/xml/lib; export LD_LIBRARY_PATH

$ sync
$ sync
$ reboot (리부팅)

 

-- gcc 헤더파일 수정하기(컴파일이 제대로 이루어 지지 않을경우)

$ vi /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/mkheaders.conf

SHELL=/bin/sh
SYSTEM_HEADER_DIR="/usr/include"
OTHER_FIXINCLUDES_DIRS=""
FIXPROTO_DEFINES=""
STMP_FIXPROTO=""
STMP_FIXINC="stmp-fixinc"

$ /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/mkheaders



설치가 되지 않는 패키지가 있다면 www.sunfreeware.com  에서 다운로드 후 추가 해 주어야 한다.
솔라리스는 리눅스와 다르게 기본적으로 설치되어 있지 않은 페키지들이 많이 있다.
대표적으로 make, top, gcc, c++ 등 필수 패키지가 실행되지 않으면 설치를 해 줘야 한다.

$ pkgadd -d 패키지 명



-- APM 컴파일 설치

www.apache.org
www.php.net
www.mysql.com

위 사이트를 통해 각 소스를 다운로드 받는다.

$ tar xvf http_*
$ tar xvf php_*
$ tar xvf mysql_*

$ gnuzip http_*
$ gnuzip php_*
$ gnuzip mysql_*



-- mysql 컴파일
$ tar xvf http_*
$ tar xvf php_*
$ tar xvf mysql_*
$ ./configure --prefix=/usr/local/mysql --enable-shared

$ groupadd mysql
$ useradd -g mysql mysql
$ chown -R mysql /usr/local/mysql
$ chgrp -R mysql /usr/local/mysql
 

-- apache 컴파일
$ cd ../http_*
$ ./configure --prefix=/usr/local/httpd --enable-so  --enable-rewrite --with-mpm=prefork

※ apr 관련 에러 발생시  --with-included-apr 옵션 추가

$ make
$ make install

-- php 컴파일


※ 필수
OpenSSL 설치
www.sunfreeware.com  에서 openssl 다운로드후 pkgadd -d 를 통해 설치
※ 소스컴파일시 일부 연동이 안됨(curl / php 컴파일시).


※ 필수(사용시)
Curl 설치

다운로드 : http://curl.haxx.se/download.html

$ ./configure --disable-ipv6 --with-ssl=/usr/local/ssl
$ make
$ make install

※ 필수
www.sunfreeware.com  에서 설치될 페키지(freetype, jpeg, libpng, xml2, zlib, ttf 등) 을설치해준다.

 

※ 필요시 추가
0.4 JPEGSRC 설치

다운로드 : http://graphics.cs.uni-sb.de/NMM/Download/external/jpegsrc.v6b.tar.gz


$ ./configure --enable-shared --enable-static
$ make
$ make test
$ make install
$ make install-lib
$ make install-headers


※ 필요시 추가
freetype, libiconv, libpng, xml, tiff 설치
$ ./configure
$ make
$ make install

 


$ ./configure --prefix=/usr/local/php \
--with-config-file-path=/usr/local/conf \    #php.ini 위치 지정
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/httpd/bin/apxs \
--enable-sysvshm=yes \
--enable-sysvsem=yes \
--enable-debug=no \
--enable-ftp \
--enable-mbstring \
--enable-sockets \
--enable-exif \
--enable-wddx \
--enable-bcmath \
--enable-calendar \
--enable-soap \
--with-openssl=/usr/local/ssl \
--with-iconv \
--with-libxml-dir \
--with-curl=/usr/local \
--with-zlib-dir \
--with-png-dir \
--with-jpeg-dir \
--with-ttf \
--with-freetype-dir \
--with-gd \
--enable-gd-native-ttf


$ make
$ make install
$ cp php.ini-dist /usr/local/httpd/conf/php.ini

 


$ vi /usr/local/apache/conf/httpd.conf

LoadModule php5_module libexec/libphp5.so <--- 있는지 확인

내용추가
DirectoryIndex index.html index.htm index.php index.phtml
AddType application/x-httpd-php .php .html .htm .phtml .php3 .php4
AddType application/x-httpd-php-source .phps


$ /usr/local/httpd/bin/apachectl start


# apache 홈 디렉토리 변경시, 403에러 대처법
httpd.conf 파일을 열어서


<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

Deny from all (삭제 : 기본설정임)
Allow from all (추가)


  1. Commented by outlet timberland at 2012.12.25 16:10

    FlightAndRoom's mission is to offer the best low prices on airline tickets, hotel reservations, car rentals, holiday packages and cruises. Through our partnerships with leading travel companies, http://www.timberlandbaratas.com Timberland shops, we can get you low prices that can't be found anywhere else, http://www.timberlandbaratas.com timberland niños.How does it work, http://www.timberlandbaratas.com Timberland Online? Our partners allow us access to their unsold inventory - empty seats on flights, empty hotel rooms, and unrented cars - at big savings. Our system compares prices from over 455 airlines worldwide, 200 hotel companies (representing approximately 39, http://www.timberlandbaratas.com barato timberland,000 properties), http://www.timberlandbaratas.com timberland españa, and 44 car rental companies (representing approximately 17,275 properties), http://www.timberlandbaratas.com timberland.Related articles:


    http://www.networkpark.com/122 Un détenu de 24 ans a été retrouvé grièvement blessé à la gorge dans sa cellule de la maison

    http://luuvish.org/183 Le gendarme boursier américain