deb http://mirrors.163.com/debian/ wheezy main non-free contrib
deb http://mirrors.163.com/debian/ wheezy-updates main non-free contrib
deb http://mirrors.163.com/debian/ wheezy-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ wheezy main non-free contrib
deb-src http://mirrors.163.com/debian/ wheezy-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ wheezy-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ wheezy/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ wheezy/updates main non-free contrib
5. XShell登录debian,安装配置AMP,方便开发,不可用于生产环境。
apache2:apt-get install apache2
mysql:apt-get install mysql-server
php:apt-get install php5 php5-mysql
编辑/etc/mysql/my.cnf,注释掉 bind-address127.0.0.1
登录mysql:mysql –u name –p
grantall on *.* to 'root'@'%' identified by 'root的密码'
6. 安装和配置git。
apt-get install git
git config --global user.name "yong hu ming"
git config --global user.email "dian@you.com"
7. 配置github,请参考文章:http://blog.csdn.net/chenguolinblog/article/details/19929509 。
编辑./ssh/ssh_config文件:
Host github.com
User 用户名
Port 443
Hostname ssh.github.com
curl http://j.mp/spf13-vim3 -L -o - | sh