Mac(VirtualBox)にcentosを動かす
○インストールまで
1.仮想マシンの作成
2.ネットワークからアダプター2の割当をホストオンリーアダプタで有効化
3.電源を入れ、〜.isoを読み込ませてインストール
○ ネットワーク設定
1.設定ファイル修正
/etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes
/etc/sysconfig/network-scripts/ifcfg-eth1
ONBOOT=yes
BOOTPROTP=static
IPADDR=xxx.xxx.xxx.xxx.
NETMASK=255.255.255.0
2.ネットワーク再起動
3.pingを適当に打って疎通を確認
4.yum update -y
カーネルを更新しない場合は/etc/yum.confにexclude=kernel*と記述する
○ セキュリティ設定
1.selinux
/etc/selinux/config
SELINUX=disabled
2.iptables(開発環境なので止めちゃいます・削除でもいいけど)
chkconfig --level 2345 iptables off
3.reboot
○ リポジトリ登録
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
vi /etc/yum.repos.d/epel.repo(他の追加したリポジトリも)
enabled=0
yum install -y mysql-community-client mysql-community-server mysql-community-devel
yum install -y --enablerepo=epel,remi-php55 php-fpm php-devel php-pdo php-mysqlnd php-mbstring php-mcrypt
yum install -y --enablerepo=nginx nginx