Contents
Pada tutorial Membuat Local Repository Zimbra Pada Centos menggunakan Centos versi 6.5 (Final).
Download EPEL Repository
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
root@repo ~]# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm --2016-07-15 08:47:48-- http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Resolving download.fedoraproject.org... 152.19.134.198, 140.211.169.196, 67.219.144.68, ... Connecting to download.fedoraproject.org|152.19.134.198|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://epel.xtremenitro.org/6/x86_64/epel-release-6-8.noarch.rpm [following] --2016-07-15 08:47:49-- https://epel.xtremenitro.org/6/x86_64/epel-release-6-8.noarch.rpm Resolving epel.xtremenitro.org... 103.52.3.50, 2001:df2:cc00:bad:b055::2 Connecting to epel.xtremenitro.org|103.52.3.50|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 14540 (14K) [application/x-redhat-package-manager] Saving to: “epel-release-6-8.noarch.rpm” 100%[===========================================================================================================================================>] 14,540 --.-K/s in 0s 2016-07-15 08:47:49 (578 MB/s) - “epel-release-6-8.noarch.rpm” saved [14540/14540] |
Install EPEL Repository
1 2 3 4 |
[root@repo ~]# rpm -ivh epel-release-6-8.noarch.rpm warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] |
Install Python Package Index
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
[root@repo ~]# yum install python-pip Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile epel/metalink | 6.4 kB 00:00 * base: mirror.smartmedia.net.id * epel: epel.xtremenitro.org * extras: mirror.smartmedia.net.id * updates: mirror.smartmedia.net.id epel | 4.3 kB 00:00 epel/primary_db | 5.8 MB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================================== Installing: python-pip noarch 7.1.0-1.el6 epel 1.5 M Transaction Summary ===================================================================================================================================================================================== Install 1 Package(s) Total download size: 1.5 M Installed size: 6.6 M Is this ok [y/N]: y Downloading Packages: python-pip-7.1.0-1.el6.noarch.rpm | 1.5 MB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Importing GPG key 0x0608B895: Userid : EPEL (6) <epel@fedoraproject.org> Package: epel-release-6-8.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : python-pip-7.1.0-1.el6.noarch 1/1 Verifying : python-pip-7.1.0-1.el6.noarch 1/1 Installed: python-pip.noarch 0:7.1.0-1.el6 Complete! |
Install Amazon Web Services CLI
Install package Amazon Web Service CLI menggunakan Python Package Index yang kita telah install sebelumnya.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
[root@repo ~]# pip install awscli /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning You are using pip version 7.1.0, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting awscli /usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Downloading awscli-1.10.47-py2.py3-none-any.whl (970kB) 100% |████████████████████████████████| 970kB 207kB/s Collecting s3transfer==0.0.1 (from awscli) Downloading s3transfer-0.0.1-py2.py3-none-any.whl Collecting colorama<=0.3.7,>=0.2.5 (from awscli) Downloading colorama-0.3.7-py2.py3-none-any.whl Collecting botocore==1.4.37 (from awscli) Downloading botocore-1.4.37-py2.py3-none-any.whl (2.5MB) 100% |████████████████████████████████| 2.5MB 161kB/s Collecting argparse>=1.1 (from awscli) Downloading argparse-1.4.0-py2.py3-none-any.whl Collecting rsa<=3.5.0,>=3.1.2 (from awscli) Downloading rsa-3.4.2-py2.py3-none-any.whl (46kB) 100% |████████████████████████████████| 49kB 5.4MB/s Collecting docutils>=0.10 (from awscli) Downloading docutils-0.12.tar.gz (1.6MB) 100% |████████████████████████████████| 1.6MB 120kB/s Collecting futures<4.0.0,>=2.2.0 (from s3transfer==0.0.1->awscli) Downloading futures-3.0.5-py2-none-any.whl Collecting ordereddict==1.1 (from botocore==1.4.37->awscli) Downloading ordereddict-1.1.tar.gz Collecting jmespath<1.0.0,>=0.7.1 (from botocore==1.4.37->awscli) Downloading jmespath-0.9.0-py2.py3-none-any.whl Collecting simplejson==3.3.0 (from botocore==1.4.37->awscli) Downloading simplejson-3.3.0.tar.gz (67kB) 100% |████████████████████████████████| 69kB 279kB/s Collecting python-dateutil<3.0.0,>=2.1 (from botocore==1.4.37->awscli) Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB) 100% |████████████████████████████████| 204kB 731kB/s Collecting pyasn1>=0.1.3 (from rsa<=3.5.0,>=3.1.2->awscli) Downloading pyasn1-0.1.9-py2.py3-none-any.whl Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore==1.4.37->awscli) Downloading six-1.10.0-py2.py3-none-any.whl Installing collected packages: futures, ordereddict, jmespath, simplejson, six, python-dateutil, docutils, botocore, s3transfer, colorama, argparse, pyasn1, rsa, awscli Running setup.py install for ordereddict Running setup.py install for simplejson Found existing installation: python-dateutil 1.4.1 Uninstalling python-dateutil-1.4.1: Successfully uninstalled python-dateutil-1.4.1 Running setup.py install for docutils Successfully installed argparse-1.4.0 awscli-1.10.47 botocore-1.4.37 colorama-0.3.7 docutils-0.12 futures-3.0.5 jmespath-0.9.0 ordereddict-1.1 pyasn1-0.1.9 python-dateutil-2.5.3 rsa-3.4.2 s3transfer-0.0.1 simplejson-3.3.0 six-1.10.0 |
Buat Directory Untuk Menyimpan Package
1 2 |
[root@repo ~]# mkdir /var/repositories [root@repo ~]# cd /var/repositories |
Cloning Package Untuk RHEL/Centos
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
[root@repo repositories]# aws s3 sync s3://repo.zimbra.com/rpm/87 ./rpm/87 --no-sign-request --delete download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-apache-components-1.0.0-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-apache-components-1.0.0-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-apache-base-1.0.0-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-apache-base-1.0.0-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-amavis-logwatch-1.51.03-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-amavis-logwatch-1.51.03-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-altermime-0.3.20100505-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-altermime-0.3.20100505-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-aspell-en-7.1.0-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-aspell-en-7.1.0-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-aspell-es-1.11.2-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-aspell-es-1.11.2-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-aspell-de-20030222.1-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-aspell-de-20030222.1-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-aspell-da-1.4.42.1-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-aspell-da-1.4.42.1-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-aspell-fr-0.50.3-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-aspell-fr-0.50.3-1zimbra8.7b1.el6.src.rpm download: s3://repo.zimbra.com/rpm/87/rhel6/SRPMS/zimbra-aspell-it-2.2.20050523.0-1zimbra8.7b1.el6.src.rpm to rpm/87/rhel6/SRPMS/zimbra-aspell-it-2.2.20050523.0-1zimbra8.7b1.el6.src.rpm ....... download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-zeromq-4.1.4-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-zeromq-4.1.4-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-unbound-libs-1.5.9-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-unbound-libs-1.5.9-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-zeromq-devel-4.1.4-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-zeromq-devel-4.1.4-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-zeromq-libs-4.1.4-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-zeromq-libs-4.1.4-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-postfix-3.1.1-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-postfix-3.1.1-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-zeromq-debuginfo-4.1.4-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-zeromq-debuginfo-4.1.4-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-unbound-debuginfo-1.5.9-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-unbound-debuginfo-1.5.9-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-unbound-devel-1.5.9-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-unbound-devel-1.5.9-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-postfix-debuginfo-3.1.1-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-postfix-debuginfo-3.1.1-1zimbra8.7b1.el7.x86_64.rpm download: s3://repo.zimbra.com/rpm/87/rhel7/x86_64/zimbra-php-debuginfo-5.6.23-1zimbra8.7b1.el7.x86_64.rpm to rpm/87/rhel7/x86_64/zimbra-php-debuginfo-5.6.23-1zimbra8.7b1.el7.x86_64.rpm |
Cloning Package Untuk Ubuntu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
[root@repo repositories]# aws s3 sync s3://repo.zimbra.com/apt/87 ./apt/87 --no-sign-request --delete download: s3://repo.zimbra.com/apt/87/dists/precise/Release.gpg to apt/87/dists/precise/Release.gpg download: s3://repo.zimbra.com/apt/87/db/version to apt/87/db/version download: s3://repo.zimbra.com/apt/87/dists/precise/Release to apt/87/dists/precise/Release download: s3://repo.zimbra.com/apt/87/dists/precise/InRelease to apt/87/dists/precise/InRelease download: s3://repo.zimbra.com/apt/87/dists/precise/zimbra/binary-amd64/Release to apt/87/dists/precise/zimbra/binary-amd64/Release download: s3://repo.zimbra.com/apt/87/dists/precise/zimbra/source/Release to apt/87/dists/precise/zimbra/source/Release download: s3://repo.zimbra.com/apt/87/db/contents.cache.db to apt/87/db/contents.cache.db download: s3://repo.zimbra.com/apt/87/dists/trusty/InRelease to apt/87/dists/trusty/InRelease download: s3://repo.zimbra.com/apt/87/dists/trusty/Release to apt/87/dists/trusty/Release download: s3://repo.zimbra.com/apt/87/dists/trusty/Release.gpg to apt/87/dists/trusty/Release.gpg download: s3://repo.zimbra.com/apt/87/db/release.caches.db to apt/87/db/release.caches.db download: s3://repo.zimbra.com/apt/87/dists/precise/zimbra/binary-amd64/Packages.gz to apt/87/dists/precise/zimbra/binary-amd64/Packages.gz download: s3://repo.zimbra.com/apt/87/dists/precise/zimbra/source/Sources.gz to apt/87/dists/precise/zimbra/source/Sources.gz download: s3://repo.zimbra.com/apt/87/dists/trusty/zimbra/binary-amd64/Release to apt/87/dists/trusty/zimbra/binary-amd64/Release download: s3://repo.zimbra.com/apt/87/dists/trusty/zimbra/source/Release to apt/87/dists/trusty/zimbra/source/Release download: s3://repo.zimbra.com/apt/87/dists/xenial/InRelease to apt/87/dists/xenial/InRelease download: s3://repo.zimbra.com/apt/87/dists/xenial/Release to apt/87/dists/xenial/Release download: s3://repo.zimbra.com/apt/87/dists/xenial/Release.gpg to apt/87/dists/xenial/Release.gpg download: s3://repo.zimbra.com/apt/87/dists/trusty/zimbra/binary-amd64/Packages.gz to apt/87/dists/trusty/zimbra/binary-amd64/Packages.gz download: s3://repo.zimbra.com/apt/87/dists/trusty/zimbra/source/Sources.gz to apt/87/dists/trusty/zimbra/source/Sources.gz download: s3://repo.zimbra.com/apt/87/dists/precise/zimbra/binary-amd64/Packages to apt/87/dists/precise/zimbra/binary-amd64/Packages download: s3://repo.zimbra.com/apt/87/dists/xenial/zimbra/source/Release to apt/87/dists/xenial/zimbra/source/Release download: s3://repo.zimbra.com/apt/87/dists/trusty/zimbra/binary-amd64/Packages to apt/87/dists/trusty/zimbra/binary-amd64/Packages download: s3://repo.zimbra.com/apt/87/db/references.db to apt/87/db/references.db download: s3://repo.zimbra.com/apt/87/dists/xenial/zimbra/source/Sources.gz to apt/87/dists/xenial/zimbra/source/Sources.gz download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-altermime/zimbra-altermime_0.3.20100505-1zimbra8.7b1.12.04.debian.tar.gz to apt/87/pool/zimbra/z/zimbra-altermime/zimbra-altermime_0.3.20100505-1zimbra8.7b1.12.04.debian.tar.gz ....... download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq_4.1.4-1zimbra8.7b1.16.04_amd64.deb to apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq_4.1.4-1zimbra8.7b1.16.04_amd64.deb download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq-lib-dbg_4.1.4-1zimbra8.7b1.12.04_amd64.deb to apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq-lib-dbg_4.1.4-1zimbra8.7b1.12.04_amd64.deb download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound-dev_1.5.9-1zimbra8.7b1.14.04_amd64.deb to apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound-dev_1.5.9-1zimbra8.7b1.14.04_amd64.deb download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound-dbg_1.5.9-1zimbra8.7b1.14.04_amd64.deb to apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound-dbg_1.5.9-1zimbra8.7b1.14.04_amd64.deb download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq-lib-dbg_4.1.4-1zimbra8.7b1.14.04_amd64.deb to apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq-lib-dbg_4.1.4-1zimbra8.7b1.14.04_amd64.deb download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq-lib-dbg_4.1.4-1zimbra8.7b1.16.04_amd64.deb to apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq-lib-dbg_4.1.4-1zimbra8.7b1.16.04_amd64.deb download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound-dev_1.5.9-1zimbra8.7b1.12.04_amd64.deb to apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound-dev_1.5.9-1zimbra8.7b1.12.04_amd64.deb download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq_4.1.4.orig.tar.gz to apt/87/pool/zimbra/z/zimbra-zeromq/zimbra-zeromq_4.1.4.orig.tar.gz download: s3://repo.zimbra.com/apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound_1.5.9.orig.tar.gz to apt/87/pool/zimbra/z/zimbra-unbound/zimbra-unbound_1.5.9.orig.tar.gz |
Install & Konfigurasi Nginx
Install Package Nginx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
[root@repo repositories]# yum install nginx Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirror.smartmedia.net.id * epel: mirror.smartmedia.net.id * extras: mirror.smartmedia.net.id * updates: mirror.smartmedia.net.id Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package nginx.x86_64 0:1.0.15-12.el6 will be installed --> Processing Dependency: nginx-filesystem = 1.0.15-12.el6 for package: nginx-1.0.15-12.el6.x86_64 --> Processing Dependency: nginx-filesystem for package: nginx-1.0.15-12.el6.x86_64 --> Processing Dependency: gd for package: nginx-1.0.15-12.el6.x86_64 --> Processing Dependency: GeoIP for package: nginx-1.0.15-12.el6.x86_64 --> Processing Dependency: libgd.so.2()(64bit) for package: nginx-1.0.15-12.el6.x86_64 --> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx-1.0.15-12.el6.x86_64 --> Running transaction check ---> Package GeoIP.x86_64 0:1.6.5-1.el6 will be installed --> Processing Dependency: geoipupdate for package: GeoIP-1.6.5-1.el6.x86_64 --> Processing Dependency: GeoIP-data for package: GeoIP-1.6.5-1.el6.x86_64 ---> Package gd.x86_64 0:2.0.35-11.el6 will be installed --> Processing Dependency: libXpm.so.4()(64bit) for package: gd-2.0.35-11.el6.x86_64 ---> Package nginx-filesystem.noarch 0:1.0.15-12.el6 will be installed --> Running transaction check ---> Package GeoIP-GeoLite-data.noarch 0:2015.12-1.el6 will be installed --> Processing Dependency: GeoIP-GeoLite-data-extra = 2015.12-1.el6 for package: GeoIP-GeoLite-data-2015.12-1.el6.noarch ---> Package geoipupdate.x86_64 0:2.2.1-2.el6 will be installed ---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed --> Running transaction check ---> Package GeoIP-GeoLite-data-extra.noarch 0:2015.12-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================================== Installing: nginx x86_64 1.0.15-12.el6 epel 404 k Installing for dependencies: GeoIP x86_64 1.6.5-1.el6 epel 113 k GeoIP-GeoLite-data noarch 2015.12-1.el6 epel 363 k GeoIP-GeoLite-data-extra noarch 2015.12-1.el6 epel 23 M gd x86_64 2.0.35-11.el6 base 142 k geoipupdate x86_64 2.2.1-2.el6 epel 28 k libXpm x86_64 3.5.10-2.el6 base 51 k nginx-filesystem noarch 1.0.15-12.el6 epel 8.1 k Transaction Summary ===================================================================================================================================================================================== Install 8 Package(s) Total download size: 24 M Installed size: 50 M Is this ok [y/N]: y Downloading Packages: (1/8): GeoIP-1.6.5-1.el6.x86_64.rpm | 113 kB 00:00 (2/8): GeoIP-GeoLite-data-2015.12-1.el6.noarch.rpm | 363 kB 00:00 (3/8): GeoIP-GeoLite-data-extra-2015.12-1.el6.noarch.rpm | 23 MB 00:04 (4/8): gd-2.0.35-11.el6.x86_64.rpm | 142 kB 00:00 (5/8): geoipupdate-2.2.1-2.el6.x86_64.rpm | 28 kB 00:00 (6/8): libXpm-3.5.10-2.el6.x86_64.rpm | 51 kB 00:00 (7/8): nginx-1.0.15-12.el6.x86_64.rpm | 404 kB 00:00 (8/8): nginx-filesystem-1.0.15-12.el6.noarch.rpm | 8.1 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 5.0 MB/s | 24 MB 00:04 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Importing GPG key 0xC105B9DE: Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org> Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : GeoIP-GeoLite-data-extra-2015.12-1.el6.noarch 1/8 Installing : GeoIP-GeoLite-data-2015.12-1.el6.noarch 2/8 Installing : geoipupdate-2.2.1-2.el6.x86_64 3/8 Installing : GeoIP-1.6.5-1.el6.x86_64 4/8 Installing : libXpm-3.5.10-2.el6.x86_64 5/8 Installing : gd-2.0.35-11.el6.x86_64 6/8 Installing : nginx-filesystem-1.0.15-12.el6.noarch 7/8 Installing : nginx-1.0.15-12.el6.x86_64 8/8 Verifying : nginx-filesystem-1.0.15-12.el6.noarch 1/8 Verifying : GeoIP-1.6.5-1.el6.x86_64 2/8 Verifying : libXpm-3.5.10-2.el6.x86_64 3/8 Verifying : GeoIP-GeoLite-data-2015.12-1.el6.noarch 4/8 Verifying : geoipupdate-2.2.1-2.el6.x86_64 5/8 Verifying : GeoIP-GeoLite-data-extra-2015.12-1.el6.noarch 6/8 Verifying : nginx-1.0.15-12.el6.x86_64 7/8 Verifying : gd-2.0.35-11.el6.x86_64 8/8 Installed: nginx.x86_64 0:1.0.15-12.el6 Dependency Installed: GeoIP.x86_64 0:1.6.5-1.el6 GeoIP-GeoLite-data.noarch 0:2015.12-1.el6 GeoIP-GeoLite-data-extra.noarch 0:2015.12-1.el6 gd.x86_64 0:2.0.35-11.el6 geoipupdate.x86_64 0:2.2.1-2.el6 libXpm.x86_64 0:3.5.10-2.el6 nginx-filesystem.noarch 0:1.0.15-12.el6 Complete! |
Backup File Konfigurasi Nginx
1 |
[root@repo repositories]# mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.bak |
Konfigurasi Nginx
Buat file konfigurasi nginx
1 |
[root@repo repositories]# vim /etc/nginx/conf.d/default.conf |
Isi konfigurasi nginx seperti berikut.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
server { listen 80 default_server; ## Let your repository be the root directory root /var/repositories; ## Always good to log access_log /var/log/nginx/repo.access.log; error_log /var/log/nginx/repo.error.log; ## Prevent access to Reprepro's files location ~ /(db|conf) { deny all; return 404; } } |
Restart service Nginx.
1 2 3 |
[root@repo repositories]# service nginx restart Stopping nginx: [ OK ] Starting nginx: [ OK ] |
Matikan & Disable Service Iptables
1 2 3 4 |
[root@repo conf.d]# /etc/init.d/iptables stop iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ] |
1 |
[root@repo conf.d]# chkconfig iptables off |
Penjadwalan Cloning Otomatis Repository
Agar repository tetap up to date, jalankan perintah cloning setiap hari nya pada pukul 03.30 am dengan menggunakan crontab / cron.
Jalankan perintah berikut untuk masuk ke crontab.
1 |
[root@repo repositories]# crontab -e |
Isi perintah cloning seperti berikut.
1 2 |
30 3 * * * /usr/bin/aws s3 sync s3://repo.zimbra.com/apt/87 /var/repositories/apt/87 --no-sign-request --delete 30 3 * * * /usr/bin/aws s3 sync s3://repo.zimbra.com/rpm/87 /var/repositories/rpm/87 --no-sign-request --delete |
Install Zimbra Collaboration 8.7
Untuk tutorial instalasi Zimbra Collaboration 8.7 dapat dibaca pada artikel Tutorial Instalasi Zimbra Collaboration 8.7 pada Ubuntu 14.04
Bagi Kamu Yang Ingin Mendapatkan Penawaran Incident Support atau Local Support Untuk Perusahaan/Institusi Kamu Saat Ini. Silahkan klik dibawah ini dan tuliskan pesan di layanan chat yang tersedia