Changes between Version 25 and Version 26 of InstallationGuidelines/Linux/Server/CherokeePostgreSQL
- Timestamp:
- 02/01/12 16:23:55 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Linux/Server/CherokeePostgreSQL
v25 v26 24 24 apt-get update 25 25 apt-get upgrade -y 26 apt-get clean 26 27 27 28 # Install Admin Tools 28 29 apt-get install -y unzip psmisc mlocate telnet lrzsz vim elinks-lite rcconf htop sudo 30 apt-get clean 29 31 # Git 30 32 apt-get -y install git-core 33 apt-get clean 31 34 # Email 32 35 apt-get -y install exim4-config exim4-daemon-light 36 apt-get clean 33 37 34 38 ######### … … 39 43 40 44 # Install Python 2.6 41 apt-get -y install python2.6 python-dev ipython 45 apt-get -y install python2.6 python-dev #ipython #ipython pulls in a lot of dependencies 46 apt-get clean 42 47 apt-get -y install python-lxml python-setuptools python-shapely python-dateutil 48 apt-get clean 43 49 apt-get -y install python-serial 44 50 apt-get -y install python-imaging python-reportlab 45 51 apt-get -y install python-xlwt python-xlrd 46 52 apt-get -y install build-essential 53 apt-get clean 54 55 apt-get clean 47 56 ######### 48 57 # Web2Py … … 103 112 ########## 104 113 # Debian current version 105 cat"deb http://apt.balocco.name squeeze main" >> /etc/apt/sources.list114 echo "deb http://apt.balocco.name squeeze main" >> /etc/apt/sources.list 106 115 curl http://apt.balocco.name/key.asc | apt-key add - 107 aptitude update 108 aptitude install cherokee 116 apt-get update 117 apt-get -y install cherokee libcherokee-mod-rrd 118 apt-get clean 109 119 110 120 CHEROKEE_CONF="/etc/cherokee/cherokee.conf" … … 156 166 157 167 # Carry out specific functions when asked to by the system 158 case " $1" in168 case "\$1" in 159 169 start) 160 170 echo "Starting uwsgi" 161 start-stop-daemon -p $pid --start --exec $daemon --$args171 start-stop-daemon -p \$pid --start --exec \$daemon -- \$args 162 172 ;; 163 173 stop) 164 174 echo "Stopping script uwsgi" 165 start-stop-daemon --signal INT -p $pid --stop $daemon --$args175 start-stop-daemon --signal INT -p \$pid --stop \$daemon -- \$args 166 176 ;; 167 177 reload) 168 178 echo "Reloading conf" 169 kill -HUP $(cat$pid)179 kill -HUP \$(cat \$pid) 170 180 ;; 171 181 *) … … 350 360 ## Increase Shared Memory available for PostgreSQL 351 361 # 512Mb 352 #kernel.shmmax = 279134208362 kernel.shmmax = 279134208 353 363 # 1024Mb (may need more) 354 kernel.shmmax = 552992768364 #kernel.shmmax = 552992768 355 365 kernel.shmall = 2097152 356 366 EOF 357 sysctl -w kernel.shmmax=552992768 367 sysctl -w kernel.shmmax=279134208 # For 512 MB RAM 368 #sysctl -w kernel.shmmax=552992768 # For 1024 MB RAM 358 369 sysctl -w kernel.shmall=2097152 359 370 … … 524 535 chmod +x /usr/local/bin/stop-uwsgi 525 536 526 537 apt-get clean 527 538 528 539 # END 540 529 541 }}} 530 542