LoginSignup
1
1

More than 5 years have passed since last update.

CentOS 6.3最小構成環境を構築する

Last updated at Posted at 2012-12-26

CentOS 6.3(Final)を最小構成でインストールする手順書。

1.パーティションの設定

Partition
/boot : 128MB  # 100MB + α
/     :  16GB  # あまり大きくしない
swap  :   4GB  # メモリ x 2
/home : 128GB  # 使い方に応じて
/var  : 512GB  # 可能な限り大きく

2.ユーザの設定

Bash
$ sudo useradd hoge
$ sudo passwd hoge

3.SELinuxの無効化

/etc/selinux/config
SELINUX=disabled

4.ネットワークの設定

/etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
DNS1=xxx.xxx.xxx.xxx
DNS2=xxx.xxx.xxx.xxx

5.パッケージの追加

Bash
$ sudo yum update
$ sudo yum install man
$ sudo yum install zip unzip
$ sudo yum install vim emacs
$ sudo yum install subversion git-core
$ sudo yum install ssh-client screen

# for tgt
$ sudo yum install gcc gcc-c++ gdb make
$ sudo yum install scsi-target-utils iscsi-initiator-utils

# for LAMP
$ sudo yum install mysql-server httpd php php-mysql
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1