Ubuntu 10.10 Server+Nginx+Django+Postgresql安装步骤[服务器安全]
本文“Ubuntu 10.10 Server+Nginx+Django+Postgresql安装步骤[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
1,安装Ubuntu 10.10
1.1利用默许安装,在更新apt的时刻挑选跳过
1.2设置管理员的用户名和密码
1.3安装openssh-server启动ssh服务,便利利用Bitvise Tunnelier工具举行管理
sudo apt-get install openssh-server
2, 更新源
2.1 sudo vi /etc/apt/sources.list 编辑源列表
#163的,速度很不错的
deb http://mirrors.163.com/Ubuntu/ maverick main restricted universe multiverse
deb http://mirrors.163.com/Ubuntu/ maverick-security main restricted universe multiverse
deb http://mirrors.163.com/Ubuntu/ maverick-updates main restricted universe multiverse
deb http://mirrors.163.com/Ubuntu/ maverick-proposed main restricted universe multiverse
deb http://mirrors.163.com/Ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://mirrors.163.com/Ubuntu/ maverick main restricted universe multiverse
deb-src http://mirrors.163.com/Ubuntu/ maverick-security main restricted universe multiverse
deb-src http://mirrors.163.com/Ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://mirrors.163.com/Ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/Ubuntu/ maverick-backports main restricted universe multiverse
deb http://archive.Ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb http://archive.Ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://archive.Ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://archive.Ubuntu.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://archive.Ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://archive.Ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://archive.Ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://archive.Ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://archive.Ubuntu.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://archive.Ubuntu.com/ubuntu/ maverick-backports main restricted universe multiver搜索引擎优化
#LUPA的源,速度也很好的(开源社区)
deb http://mirror.lupaworld.com/Ubuntu maverick main restricted universe multiverse
deb http://mirror.lupaworld.com/Ubuntu maverick-security main restricted universe multiverse
deb http://mirror.lupaworld.com/Ubuntu maverick-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/Ubuntu maverick-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/Ubuntu maverick-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/Ubuntu maverick main restricted universe multiverse
deb-src http://mirror.lupaworld.com/Ubuntu maverick-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/Ubuntu maverick-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/Ubuntu maverick-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/Ubuntu maverick-proposed main restricted universe multiverse
#sohu的源
deb http://mirrors.sohu.com/Ubuntu/ maverick main restricted
deb-src http://mirrors.sohu.com/Ubuntu/ maverick main restricted
deb http://mirrors.sohu.com/Ubuntu/ maverick-updates main restricted
deb-src http://mirrors.sohu.com/Ubuntu/ maverick-updates main restricted
deb http://mirrors.sohu.com/Ubuntu/ maverick universe
deb-src http://mirrors.sohu.com/Ubuntu/ maverick universe
deb http://mirrors.sohu.com/Ubuntu/ maverick-updates universe
deb-src http://mirrors.sohu.com/Ubuntu/ maverick-updates universe
deb http://mirrors.sohu.com/Ubuntu/ maverick multiverse
deb-src http://mirrors.sohu.com/Ubuntu/ maverick multiverse
deb http://mirrors.sohu.com/Ubuntu/ maverick-updates multiverse
deb-src http://mirrors.sohu.com/Ubuntu/ maverick-updates multiverse
#官方的Ubuntu 10.10要保存几个用于告急www.linuxidc.com更新
deb http://security.Ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.Ubuntu.com/ubuntu maverick-security main restricted
deb http://security.Ubuntu.com/ubuntu maverick-security universe
deb-src http://security.Ubuntu.com/ubuntu maverick-security universe
deb http://security.Ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.Ubuntu.com/ubuntu maverick-security multiverse
注意vi号令: i写入情势 ESC退出写入情势,进入号令情势 wq保存退出号令
dd 删除正行 x删除单个字符3,更新apt-get并安装基本编译环境
sudo apt-get update
sudo apt-get install build-essential
4,安装Django
wget http://media.djangoproject.com/releases/1.2/Django-1.2.3.tar.gz
tar zxvf Django-1.2.3.tar.gz
cd Django-1.2.3.tar.gz
sudo python setup.py install
5,布置项目
以上是“Ubuntu 10.10 Server+Nginx+Django+Postgresql安装步骤[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |