Posts

Showing posts from April, 2017

Install Nginx on CentOS 7

Install Nginx on CentOS 7 Table of Contents Introduction Requirements Install Nginx Start Nginx Introduction Nginx is a popular light-weight and high performance web server and commonly used as a proxy. It is quite flexible and a good alternative to Apache. Requirements CentOS 7 or Red Hat Enterprise Linux 7 Local Linux and ProfitBricks firewall ports need to be opened for external requests Install Nginx Many distributions include Nginx as part of the default distribution repository. However, this version can become outdated and it is recommended installing from a repository containing the latest version. One common repository added to CentOS and Red Hat Enterprise Linux (RHEL) servers is the Extra Packages for Enterprise Linux (EPEL). The following command will add the EPEL repository to CentOS 7 or RHEL 7. sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm Optionally, the Nginx project also maintains a repository c

Adding Secondary Virtual IP Addresses

Adding Secondary Virtual IP Addresses Adding additional IP addresses can be done one of two ways. Add IP addresses to the same network adapter as secondary IP addresses (the normal way) Add an IP address to each, seperate network adapters. To say the least, the second option is not the most desirable as you would have a limited number of network adapters available, even on a physical machine. For additional, seperate network adapters, the goal is to connect to a private or other network. Note: This will require at least one (1) dedicated reserved IP address 1) Reserve your IP addresses using the IP Manager at the top menu bar. http://iaas.me/screenshots/2015-02-10_1149.png http://iaas.me/screenshots/2015-02-10_1149_001.png 2) Add the IP address you reserved to the "Additional IPs" section of your servers Network properties: 3) Provision Changes 4) All public IP spaces that are assigned to servers will be part of a /24 network (Netmask 255.255.255.0).

Install Python 3 on CentOS 7

Install Python 3 on CentOS 7 Table of Contents Introduction Requirements Install Software Collections Install Python 3 Using Python 3 Introduction SoftwareCollections.org  is a community project built around Red Hat Enterprise Linux, Fedora, CentOS, and Scientific Linux that allows installing and running multiple versions of software on a single system. The available collections typically include newer versions of programming languages and services. This tutorial will describe setting up Software Collections (SCLs) in CentOS 7 and installing Python 3.3 along side the Python 2.7 distribution default. Requirements CentOS 7 or Red Hat Enterprise Linux 7 Install Software Collections The first step is to install the utilities needed to manage collections. yum -y install scl-utils The next step is to identify which software collection you want and to install the associated repository. A full list of available collections can be found at the following URL. htt

Add Secondary Drives to CentOS / RHEL

Add Secondary Drives to CentOS / RHEL Adding a secondary drive to CentOS/RHEL (verbose version) 1) Get a list of current drives attached: [root@centos ~]# fdisk -l Disk /dev/vda: 4294 MB, 4294967296 bytes 16 heads, 63 sectors/track, 8322 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0003b59f Device Boot Start End Blocks Id System /dev/vda1 3 6242 3144704 83 Linux Partition 1 does not end on cylinder boundary. /dev/vda2 6242 8323 1048576 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. 2) Add the secondary drive in your VDC and connect it to the target server: 3) On your server, you should now see the secondary drive: [root@centos ~]# fdisk -l /dev/vdb Disk /dev/vdb: 4294 MB, 4294967296 bytes 16 heads, 63 sectors/track, 8322 cylinders Units

Configure Authoritative Name Server Using BIND on CentOS 7

Configure Authoritative Name Server Using BIND on CentOS 7 Table of Contents Introduction Requirements Prepare Servers Install BIND Configure Primary Server Create Zone File Configure Secondary Server Test DNS Resolution Modify Zone File Reverse DNS Troubleshoot DNS Issues Introduction BIND is the one of the most popular DNS servers used across the Internet. The server can act as an authoritative, recursive, and caching name server and it supports wide range of features. This tutorial will describe deploying primary and secondary BIND servers as authoritative name servers. This is suitable for public or private name servers, however, internal private name servers will usually include recursive and caching elements for local DNS resolution. It is  highly  recommend that primary and secondary name servers are deployed on separate networks and in separate physical locations. This allows the necessary redundancy should one name server become unavailable due to ser

Configure a Postfix Relay through Gmail on CentOS 7

Configure a Postfix Relay through Gmail on CentOS 7 Table of Contents Introduction Requirements Install Packages Configure Postfix Configure Postfix SASL Credentials Test the Relay Troubleshoot Delivery Issues Introduction Postfix is a flexible mail server that is available on most Linux distribution. Though a full feature mail server, Postfix can also be used as a simple relay host to another mail server, or smart host. This tutorial will describe how to configure Postfix as a relay through Gmail. Simple Authentication and Security Layer (SASL) is a standard authentication framework supported by many services including Postfix. Requirements CentOS 7 or Red Hat Enterprise Linux 7 Valid Gmail or Google App credentials Install Packages Make sure Postfix, the SASL authentication framework, and  mailx  are all installed. yum -y install postfix cyrus-sasl-plain mailx Postfix will need to be restarted before the SASL framework will be detected. systemctl re