Monthly Archives: June 2011

[筆記] 手動編譯MySQL

Download mysql source tar xvf mysql.tar yum -y install cmake Compile Follow guide here: http://forge.mysql.com/wiki/CMake mkdir bld cd bld cmake .. make sudo make install Set permissions of linux user and group Follow guide here http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html groupadd mysql useradd -r -g mysql … Continue reading

Posted in 筆記 | Tagged , , , | Comments Off on [筆記] 手動編譯MySQL

[筆記] 讓ec2的user-data script每次都會執行

修改 /etc/init.d/cloud-init-user-scripts 裡面的 /usr/bin/cloud-init-run-module once-per-instance user-scripts execute run-parts ${SCRIPT_DIR} >/dev/null && success || failure 為 /usr/bin/cloud-init-run-module always user-scripts execute run-parts ${SCRIPT_DIR} >/dev/null && success || failure 參考來源:https://forums.aws.amazon.com/thread.jspa?messageID=247082

Posted in 中文文章, 筆記 | Comments Off on [筆記] 讓ec2的user-data script每次都會執行