Django1.1 + Ubuntu9.04 + Apache2 +mod_wsgi ã§ã®ç°å¢æ§ç¯ã¡ã¢
å¹´æ«ã®çºã«ãæé ãè¨ããfor me
Ubuntuã®ããããããçµäºã¾ã§ç®æ¨20å以å
追è¨ï¼å®éã«ã¤ã³ã¹ã³ãããã£ã¦ã¿ãæéãè¨ã£ã¦ã¿ã
Ubuntuã¤ã³ã¹ãã¼ã« | 8å |
ã¢ãããã¼ã | 8å |
ã¤ã³ã¹ã³sh | 4å |
ãããã20åã¨ããæãããã®ç¨åº¦ã§ããã°ä½åã§ãåºæ¥ããªã
Ubuntuã¤ã³ã¹ãã¼ã«
ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«
- zsh
- vim
- openssh-server
- easy_install
- python_all_dev
- apache2
- mod_wsgi
- ntp
- memcached
- django1.1
- mercurial1.3.1
- python_memcache
ãããã·ã¼ãããå ´å
export http_proxy=http://proxy.domain.com:8080
ä¸æ°ã«ã¤ã³ã¹ãã¼ã«
sudo -s
ããã¼ã®
#!/bin/sh apt-get update apt-get install zsh apt-get install vim apt-get install openssh-server apt-get install python-setuptools apt-get install python-all-dev apt-get install apache2 apt-get install libapache2-mod-wsgi apt-get install ntp apt-get install memcached easy_install django easy_install mercurial mkdir download cd download wget ftp://ftp.tummy.com/pub/python-memcached/old-releases/python-memcached-1.44.tar.gz gunzip python-memcached-1.44.tar.gz tar xvf python-memcached-1.44.tar cd python-memcached-1.44 python setup.py install
ï¼å以å
ã«åºæ¥ä¸ããã¯ãã
ä¸è¨shããhttp://bit.ly/djangoinstallã«ç»é²ããã®ã§å
¥ãç«ã¦ã®Ubuntuã§ããããããç¹ãã£ã¦ããã°ãwgetãããã®ã¾ã¾è¡ãããããã便å©ã
å®éã«ãã£ã¦ã¿ãæã®ãã¹ã¯ãªã¼ã³ãã£ã¹ããåã£ã¦ã¿ããéä¸æ°åYesãé¸æããçºã®ã¨ã³ã¿ã¼ãå¿
è¦ã§ãããããµã¯ãµã¯ã¨ã¤ã³ã¹ãã¼ã«ã¯é²ãã
å種è¨å®
- /etc/sshd/sshd_config
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes