1.安装为php 添加 curl支持 :
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
sudo /etc/init.d/apache2 restart
2. 安装php5-curl 时提示:404 Not Found [IP: 91.189.91.14 80]
apt-get update
3.批量安装软件
apt-get install xxxx -y (-y 默认选择是)
4.apache+php+mysql+wordpress (http://wenku.baidu.com/view/ba8a32a6284ac850ad024251.html)
5.mysql忘记密码
停止mysql,校验(/etc/init.d/mysql stop ; ps aux|grep mysql)
safe模式打开mysql( /usr/bin/mysqld_safe -–skip-grant-tables &)
无需密码登陆mysql(mysql -uroot)
选择数据库 use mysql
修改root密码:update user set password=password("marui") where user="root";
重启mysql: /etc/init.d/mysql restart