開発環境(サーバ)の設定順番:FedoraCore編
FedoraCore 6で試しました。
IPv6の設定を変更すると、次の起動でカーネルパニックを起こしてしまった...
- インストール(開発ツールと、telnetだけ入れておく)
- yum update
- firewallを確認
- /etc/rc.d/init.d/iptables status
- firewallをとめる(開発用だから)
- /etc/rc.d/init.d/iptables stop
- 自動起動しない
- chkconfig iptables off
- 起動時について
- SElinuxについて確認
- getenforce
- 起動時について
- yum ntp
- date(現在時刻の確認)
- ntpdate ntp1.sakura.ad.jp(現在時間を設定)
- chkconfig ntpd on(起動時の設定)
- chkconfig --list ntpd
- ちなみに、VMWareでは時刻のずれがどうしても出てしまうらしいです(解決方法はある)
- グループ、ユーザの追加
- groupadd hatena
- useradd -g hatena d4-1977
- passwd d4-1977
- ftp
- yum install nmap
- yum install vsftpd
- vi /etc/vsftpd/vsftpd.conf
- vi /etc/vsftpd/chroot_list
- apahce
- /usr/local/httpd/bin/apachectl start
- MySQL
- PostgreSQL
- wget /usr/local/src/ http://www.ring.gr.jp/pub/misc/db/postgresql/source/v8.2.3/postgresql-8.2.3.tar.gz
- groupadd postgres
- useradd -g postgres postgres
- passwd postgres
- yum -y install readline-devel ncurses-devel zlib-devel
- PHP
- wget /usr/local/src/ http://jp.php.net/get/php-5.2.1.tar.gz/from/jp2.php.net/mirror
- yum -y install flex
- yum -y libxml2-devel
- yum -y install libjpeg-devel
- yum -y install libpng-devel
- mkdir /usr/local/php-5.2.1
- ./configure --prefix=/usr/local/php-5.2.1 --enable-mbstring --with-apxs2=/usr/local/httpd/bin/apxs --with-pgsql=/usr/local/pgsql --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-jpeg-dir --with-oepnssl
- Perl
- Ruby
- wget /usr/local/src/ ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz