Google Code Prettify - 輕量級的語法上色工具

星期一, 8月 03, 2015

Ubuntu LAMP

1.安裝apache及php
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5

2.安裝 MySQL
sudo apt-get install mysql-server
輸入mysql root 的密碼

3.調整 MySQL 設定檔
sudo vi /etc/mysql/my.cnf

把下列項目的記憶體用量調高的以提增加運行的效能。
key_buffer = 16K
max_allowed_packet = 1M
thread_stack = 64K
table_cache = 4
sort_buffer = 64K
net_buffer_length = 2K

sudo apt-get install php5-mysql
sudo /etc/init.d/apache2 restar