在ec2開始安裝wp後,起初跑起來都很順,但似乎資料量或是同時開啟流量大的時候,就發生當機現象,導致出現”資料庫無法連結”等字眼,起初我以為是Amazon的問題,但心想,都開這麼大間的廟,怎麼可能會出這樣的問題,也曾經想過是否我的資料庫密碼已經被改過,所以導致無法連結,後來進入phpmyadmin發現一個問題-Innodb 型態設置 Continue reading
ubuntu安裝zip壓縮實例
1.首先在putty登入後,並到root權限下安裝zip軟體:
apt-get install zip
2.接下來進入你要的目錄,例如:
cd /var/www/html/
3.解壓縮或是壓縮分別為下(以檔案名:abc.zip為例)
解壓縮:
unzip abc.zip
若有同資料夾或檔名,他會問你是否覆蓋
壓縮:
zip -r compressed_abc.zip abc
compressed_abc.zip為存成的zip檔名,abc為資料夾名
遺失phpmyadmin password,重新設定密碼
Tested on
– Ubuntu Linux 7.10 Gutsy Gibbon and MySQL 5.0.45. (2007-10-21)
– Ubuntu Linux 6.06 Dapper Drake and MySQL 4.1.15.
Set / change / reset the MySQL root password on Ubuntu Linux. Enter the following lines in your terminal.
- Stop the MySQL Server.
sudo /etc/init.d/mysql stop
- Start the mysqld configuration.
sudo mysqld --skip-grant-tables &
- Login to MySQL as root.
mysql -u root mysql
- Replace YOURNEWPASSWORD with your new password!
UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
Note: This method is not regarded as the securest way of resetting the password. However it works.
ubuntu常用指令
Ubuntu常用命令與技巧
sudo apt-get install 軟體名 安裝軟體命令
sudo nautilus 打開文件(有root權限)
su root 切換到“root”
ls 列出當前目錄文件(不包括隱含文件)
ls -a 列出當前目錄文件(包括隱含文件) Continue reading
Amazon EC2之Linux架站LAMP環境佈署
Ubuntu 12.04LTS
LAMP (Linux, Apache2, Mysql, PHP)
Wordpress 3.8 Continue reading