なんとかして1台のサーバですべての用事を済まそう計画…
- minimum install
- date –set=’****/**/** **:**:**’
- vi /etc/sysconfig/network-scripts/ifcfg-eth0
- vi /etc/selinux/config
- vi /etc/sysconfig/iptables
- vi /etc/resolv.conf
nameserver 192.168.1.1
- vi /etc/yum.conf (Proxy check only)
- yum install ntp openssh-clients wget rsync mlocate
- vi /etc/ntp.conf
server 192.168.1.1 iburst
- /etc/init.d/ntpd start
- chkconfig ntpd on
- chkconfig ntpdate on
- ssh-keygen -t rsa
- cd /root/.ssh/
- mv id_rsa.pub id_rsa.pub.192.168.1.2
- scp id_rsa.pub.192.168.1.2 root@192.168.1.1:/root/.ssh/
- (on 192.168.1.1)
cat id_rsa.pub.192.168.1.2 >> authorized_keys - vi /etc/wgetrc (Proxy check only)
- vi /etc/profile
HISTSIZE=5000
- cd /root
- wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
- rpm -ivh mysql-community-release-el6-5.noarch.rpm
- vi /etc/yum.repos.d/mysql-community.repo
- wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
- rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
- vi /etc/yum.repos.d/rpmforge.repo
- cd /etc/pki/rpm-gpg/
- wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
- cd /root/
- vi /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux (EPEL) baseurl=http://ftp.riken.jp/Linux/fedora/epel/6/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
- wget http://mirror.sysadminguide.net/centalt/repository/centos/6/x86_64/centalt-release-6-1.noarch.rpm
- rpm -ivh centalt-release-6-1.noarch.rpm
- vi /etc/yum.repos.d/centalt.repo
[CentALT] name=CentALT Packages for Enterprise Linux 6 - $basearch baseurl=http://mirror.sysadminguide.net/centalt/repository/centos/6/$basearch/ enabled=0 gpgcheck=0
- yum install –enablerepo=mysql-community,rpmforge,epel,CentALT httpd php mysql transmission kernel-devel unzip gcc ccid pcsc-lite pcsc-lite-devel pcsc-lite-libs perl-Gtk2
- yum update –enablerepo=mysql-community,rpmforge,epel,CentALT
- cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.original
- vi /etc/httpd/conf/httpd.conf
Timeout 20 ServerName 192.168.0.2:80 <Directory /> AllowOverride All </Directory> AddDefaultCharset off
- /etc/init.d/httpd start
- chkconfig httpd on
- cp /etc/my.cnf /etc/my.cnf.original
- vi /etc/my.cnf
sql_mode=NO_ENGINE_SUBSTITUTION # for Replication log-bin=mysql-bin server-id = 168001002 max_connections = 1000 #log = /var/log/mysql/query.log
- /etc/init.d/mysqld start
- chkconfig mysqld on
- mysql -u root -p
- > grant all privileges on *.* to username identified by ‘password’ with grant option;
- > quit