| | 64 | |
| | 65 | == Add Swapfile == |
| | 66 | * You can add swap from a swap file in order to improve performance (especially on a Micro instance): |
| | 67 | {{{ |
| | 68 | dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 |
| | 69 | mkswap /swapfile1 |
| | 70 | chown root:root /swapfile1 |
| | 71 | chmod 0600 /swapfile1 |
| | 72 | swapon /swapfile1 |
| | 73 | |
| | 74 | }}} |
| | 75 | |
| | 76 | Make this persistent across reboots by adding the following to your /etc/fstab |
| | 77 | {{{ |
| | 78 | /swapfile1 swap swap defaults 0 0 |
| | 79 | |
| | 80 | }}} |
| | 81 | |
| | 82 | == Install == |
| | 83 | * Copy the installation and configuration scripts -> [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh install-eden-cherokee-postgis.sh] and [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh configure-eden-cherokee-postgis.sh] into the launched instance. |
| | 84 | {{{ |
| | 85 | wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh |
| | 86 | chmod a+x install-eden-cherokee-postgis.sh |
| | 87 | wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh |
| | 88 | chmod a+x configure-eden-cherokee-postgis.sh |
| | 89 | }}} |
| | 90 | |
| | 91 | * Run the install-eden-cherokee-postgis.sh script and delete it. [Note: This step takes about 10min - grab a coffee] |
| | 92 | {{{ |
| | 93 | ./install-eden-cherokee-postgis.sh |
| | 94 | rm install-eden-cherokee-postgis.sh |
| | 95 | }}} |
| | 96 | |
| | 97 | == Configure == |
| | 98 | Run configure-eden-cherokee-postgis.sh to configure the instance: |
| | 99 | {{{ |
| | 100 | ./configure-eden-cherokee-postgis.sh |
| | 101 | |
| | 102 | }}} |
| | 103 | |
| | 104 | * Add a Test site (4Gb+) |
| | 105 | {{{ |
| | 106 | wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/add_test_site.sh |
| | 107 | chmod a+x add_test_site.sh |
| | 108 | ./add_test_site.sh |
| | 109 | rm add_test_site.sh |
| | 110 | }}} |
| 161 | | == Add Swapfile == |
| 162 | | * You can add swap from a swap file : |
| 163 | | {{{ |
| 164 | | dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 |
| 165 | | mkswap /swapfile1 |
| 166 | | chown root:root /swapfile1 |
| 167 | | chmod 0600 /swapfile1 |
| 168 | | swapon /swapfile1 |
| 169 | | |
| 170 | | }}} |
| 171 | | |
| 172 | | Make this persistent across reboots by adding the following to your /etc/fstab |
| 173 | | {{{ |
| 174 | | /swapfile1 swap swap defaults 0 0 |
| 175 | | |
| 176 | | }}} |
| 177 | | |
| 178 | | == Install == |
| 179 | | * Copy the installation and configuration scripts -> [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh install-eden-cherokee-postgis.sh] and [http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh configure-eden-cherokee-postgis.sh] into the launched instance. |
| 180 | | {{{ |
| 181 | | wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/install-eden-cherokee-postgis.sh |
| 182 | | chmod a+x install-eden-cherokee-postgis.sh |
| 183 | | wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/configure-eden-cherokee-postgis.sh |
| 184 | | chmod a+x configure-eden-cherokee-postgis.sh |
| 185 | | }}} |
| 186 | | |
| 187 | | * Run the install-eden-cherokee-postgis.sh script and delete it. [Note: This step takes about 10min - grab a coffee] |
| 188 | | {{{ |
| 189 | | ./install-eden-cherokee-postgis.sh |
| 190 | | rm install-eden-cherokee-postgis.sh |
| 191 | | }}} |
| 192 | | |
| 193 | | == Configure == |
| 194 | | Run configure-eden-cherokee-postgis.sh to configure the instance: |
| 195 | | {{{ |
| 196 | | ./configure-eden-cherokee-postgis.sh |
| 197 | | |
| 198 | | }}} |
| 199 | | |
| 200 | | * Add a Test site (4Gb+) |
| 201 | | {{{ |
| 202 | | wget http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Linux/Server/CherokeePostgreSQL/add_test_site.sh |
| 203 | | chmod a+x add_test_site.sh |
| 204 | | ./add_test_site.sh |
| 205 | | rm add_test_site.sh |
| 206 | | }}} |
| 207 | | |