[bookmark] 獨木舟 , Kayak , 波浪圖

TKS│Taiwan Kayak School│台灣獨木舟海洋學校

東引 http://www.windguru.cz/int/index.php?sc=141101&switchlang=1
基隆嶼 http://www.windguru.cz/int/index.php?sc=233381
彭佳嶼 http://www.windguru.cz/int/index.php?sc=225553
蘇澳三仙 http://www.windguru.cz/int/index.php?sc=223966
東澳烏石鼻 http://www.windguru.cz/int/index.php?sc=92543

福隆 http://www.windguru.cz/int/index.php?sc=68403

燭台嶼 http://www.windguru.cz/int/index.php?sc=67216

宜蘭 – 烏石港北堤 http://www.windguru.cz/int/index.php?sc=167598

amazon aws ami LAMP / NGINX / PHP / memcache steps

// —–

sudo apt-get install nginx php5-fpm php5-mysql
cd /etc/init.d/
sudo service apache2 stop
sudo update-rc.d -f apache2 remove


Install Memcached
sudo apt-get install memcached libmemcached-dev php5-memcached php5-memcache

// ====================

Getting a new virtual machine up and running from the default AMI is easy.  Here’s my cookbook:
Install basic services

    yum install mysql mysql-server mysql-devel
    yum install httpd httpd-devel
    yum install php php-devel php-mysql php-gd php-dom php-pear php-json
    yum install svn

Configure those services to start at boot

    chkconfig –level 345 httpd on
    chkconfig –level 345 mysqld on
    chkconfig –list

Install APC

I couldn’t find a package, and this bug report explains why we have to use the beta.

    yum install gcc pcre-devel
    pecl install apc-beta
    echo extension=apc.so > /etc/php.d/apc.ini

Install memcached

    yum install libevent libevent-devel
    curl -O http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
    cd memcached-1.4.5
    make ; make install
    /usr/local/bin/memcached -u nobody -d -m 30 -l -p 11211

// ----
[[email protected] log]# cat /etc/fstab 
LABEL=/     /           ext4    defaults,noatime  1   1
tmpfs       /dev/shm    tmpfs   defaults        0   0
devpts      /dev/pts    devpts  gid=5,mode=620  0   0
sysfs       /sys        sysfs   defaults        0   0
proc        /proc       proc    defaults        0   0
[[email protected] log]# cat /etc/mtab 
/dev/xvda1 / ext4 rw,noatime 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0