Tag: ServersMan@VPS
# yum update
# more /etc/redhat-release CentOS release 5.6 (Final)
# adduser nakata
# passwd nakata
## Allow root to run any commands anywhere root ALL=(ALL) ALL nakata ALL=(ALL) ALL
nakata ALL=(ALL) NOPASSWD:ALL
# su nakata
$ cd /home/nakata $ mkdir .ssh $ chmod 700 .ssh $ vi .ssh/authorized_keys $ (公開鍵を貼り付け) $ chmod 600 .ssh/authorized_keys
$ sudo vi /etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no
$ sudo /etc/init.d/sshd restart
# yum install mysql-server
# /usr/bin/mysql_secure_installation
# /sbin/chkconfig mysqld on
基本
起動スクリプトにulimitを追加
start(){ # ulimit -s 192 touch "$errlogfile" chown mysql:mysql "$errlogfile" chmod 0640 "$errlogfile"
/etc/my.cnfを編集
default_storage_engine = InnoDB innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 1 innodb_buffer_pool_size = 4M innodb_log_buffer_size = 1M innodb_log_file_size = 128MB #slow_query_log = 1 #long_query_time = 0.1 query_cache_type = 1 query_cache_size = 1M key_buffer_size = 512K sort_buffer_size = 512K read_buffer_size = 128K max_allowed_packet = 16M max_connections = 64 thread_cache_size = 8 table_cache = 1024
yum install ruby
$ sudo sh jdk-6u26-linux-i586-rpm.bin
$ export JAVA_HOME=/usr/java/jdk1.6.0_26 $ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode)