khanhnnvn

Meeting online free with TeamViewer

 Solution  Comments Off on Meeting online free with TeamViewer
Sep 232014
 

Step 1: Start TeamViewer

You must enter Your name, then click Start instant meeting. Your screen

Step 2: Invite member to meeting.

You can invite by email or send meeting id to member.
 

Step 3: Join to meeting

In this case, i join meeting from mobile device

Step 4: Meeting online free

You can chose screen, application share with meeting
Good luck 🙂

How to Setup MariaDB Galera Cluster on CentOS 7

 Database  Comments Off on How to Setup MariaDB Galera Cluster on CentOS 7
Sep 232014
 
MariaDB Galera Cluster 10.0.12 Stable has been released and available for production use. MariaDB is a relational database management system (RDBMS). Generally we use single node of database server for small application but think about application which have thousands of users keep online at a time, In that situation we need a structure which will capable to handle this load and provides high availability. So we need to add multiple database servers interconnected with each other and keep synchronized, so in case any server goes down other servers can take place of them and provide services to users.
This article will help you to set up MariaDB Galera Cluster  with 3 nodes running with CentOS 7. Cluster server details are as following.
    • Cluster DB1: 192.168.1.10 ( HostName: db1.sysadmin.com.vn )
    • Cluster DB2: 192.168.1.20 ( HostName: db2.sysadmin.com.vn )
    • Cluster DB3: 192.168.1.30 ( HostName: db3.sysadmin.com.vn )
Note: Step 1/2/3 has to be done on all cluster nodes and remaining steps are node specific.

Step 1: Add MariaDB Repositories

Create a mariadb repository /etc/yum.repos.d/mariadb.repo using following content in your system. Below repository will work on CentOS 6.x systems, For othe
r system use repository generation tool and add to your system.
For CentOS 6 – 64bit
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
For CentOS 6 – 32bit
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-x86
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Step 2: Install MariaDB and Galera

Before installing MariaDB Galera cluster packages, remove any existing MySQL or MariaDB packages installed on system. After that use following command to install on all nodes.
# yum install MariaDB-Galera-server MariaDB-client galera

Step 3: Initial MariaDB Configuration

After successfully installing packages in above steps do the some initial MariaDB configurations. Use following command and follow the instructions on all nodes of cluster. If will prompt to set root account password also.
# service mysql start
# mysql_secure_installation
After that create a user in MariaDB on all nodes, which can access database from your network in cluster.
# mysql -u root -p

MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'cluster'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit
and stop MariaDB service before starting cluster configuration
# service mysql stop

Step 4: Setup MariaDB Galera Cluster on DB1

Lets start setup MariaDB Galera cluster from DB1 server. Edit MariaDB server configuration file and add following values under [mariadb] section.
[root@db1 ~]# vim /etc/my.cnf.d/server.cnf
query_cache_size=0
binlog_format=ROW
default_storage_engine=innodb
innodb_autoinc_lock_mode=2
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_address="gcomm://192.168.1.10,192.168.1.20,192.168.1.30"
wsrep_cluster_name='cluster1'
wsrep_node_address='192.168.1.10'
wsrep_node_name='db1'
wsrep_sst_method=rsync
wsrep_sst_auth=cluster:password
Start cluster using following command.
[root@db1 ~]# /etc/init.d/mysql bootstrap
Bootstrapping the clusterStarting MySQL.... SUCCESS!
If you get any problem during startup check MariaDB error log file /var/lib/mysql/<hostname>.err

Step 5: Add DB2 in MariaDB Cluster

After successfully starting cluster on DB1. Start configuration on DB2. Edit MariaDB server configuration file and add following values under [mariadb] section. All the settings are similar to DB1 except wsrep_node_address, wsrep_cluster_address and wsrep_node_name.
[root@db2 ~]# vim /etc/my.cnf.d/server.cnf
query_cache_size=0
binlog_format=ROW
default_storage_engine=innodb
innodb_autoinc_lock_mode=2
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_address="gcomm://192.168.1.10,192.168.1.20,192.168.1.30"
wsrep_cluster_name='cluster1'
wsrep_node_address='192.168.1.20'
wsrep_node_name='db2'
wsrep_sst_method=rsync
wsrep_sst_auth=cluster:password

Start cluster using following command.
[root@db2 ~]# /etc/init.d/mysql start
Starting MySQL..... SUCCESS!

Step 6: Add DB3 in MariaDB Cluster

This server is optional, If you want only two server in cluster, you can ignore this step, but you need to remove third server ip from DB1/DB2 configuration files. To add this server make changes same as DB2.
[root@db3 ~]# vim /etc/my.cnf.d/server.cnf
query_cache_size=0
binlog_format=ROW
default_storage_engine=innodb
innodb_autoinc_lock_mode=2
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_address="gcomm://192.168.1.10,192.168.1.20,192.168.1.30"
wsrep_cluster_name='cluster1'
wsrep_node_address='192.168.1.30'
wsrep_node_name='db2'
wsrep_sst_method=rsync
wsrep_sst_auth=cluster:password
Start cluster using following command.
[root@db3 ~]# /etc/init.d/mysql start
Starting MySQL..... SUCCESS!

Step 7: Test MariaDB Galera Cluster Setup

At this stage your cluster setup has been completed and running properly. Now you can test the cluster setup by creating database and tables at any server in cluster, it will replicate immediately to all servers in cluster.

How to install Zimbra Opensource Collaboration 8 on CentOS 7

 Linux, Solution  Comments Off on How to install Zimbra Opensource Collaboration 8 on CentOS 7
Sep 222014
 

1. System Requirements for Zimbra Collaboration

Evaluation and Testing
• Intel/AMD 64-bit CPU 1.5 GHz
• RAM requirements:
• For single server installations, a minimum of 8GB of RAM is required.
• For multi-server installations, contact Zimbra sales for recommendations.
• 5 GB free disk space for software and logs
• Temp file space for installs and upgrades*
• Additional disk space for mail storage Production environments
• Intel/AMD 2.0 GHZ+ 64-bit CPU
• RAM requirements:
• For single server installations, a minimum of 8GB of RAM is required.
• For multi-server installations, contact Zimbra sales for recommendations.
• Temp file space for installs and upgrades*
• 10 GB free disk space for software and logs (SATAor SCSI for performance, and RAID/Mirroring for redundancy)
• Additional disk space for mail storage
*Temp files space: The zimbra-store requires 5GB for / opt/zimbra, plus additional space for mail storage. Theother nodes require 100MB. General Requirements
• Firewall Configuration should be set to “No firewall”.
• RAID-5 is not recommended for installations with more than 100 accounts.

2. Install zimbra

a. Install some pack pre-requisites, we using command:

and remove postfix if it installed.

b. Now we must change hostname, warming we must reboot server after change hostname.

c. Download zimbra from home page, we using command:

then download complete, we extra using command for example

d. Install Zimbra using command:

if you see error on this picture

we install perl-core

Press Yes for confirm install zimbra on your system.

This picture is during install zimbra on centos 7

You should change domain, for example your email is [email protected], you press sysadmin.com.vn

After install, you must config zimbra, one important is password for user admin

Press ‘a’ to next

System automatic set default value

And install finish.

You can access webclient from web browse

And this is user interface

Good luck for you 🙂

What is Xen®?

 Virtualization  Comments Off on What is Xen®?
Sep 222014
 
What is Xen®?
The Xen® hypervisor, the most powerful open source industry standard for virtualization, it offers  powerful, efficient, and secure feature set for virtualization of x86, x86_64, IA64, ARM, and other CPU architectures. It supports a wide range of guest operating systems including Windows®, Linux®, Solaris®, and various versions of the BSD operating systems.
Getting Started:
In Xen systems the Xen hypervisor is the lowest and most privileged software layer. This layer supports one or more guest operating systems, scheduled on the physical CPUs. The first guest operating system, called in Xen terminology domain 0 (dom0) is executed automatically when the hypervisor boots and receives special management privileges and direct access to all physical hardware by default. The system administrator can log into dom0 in order to manage any additional guest operating systems, called user domains (domU) in Xen terminology.
The dom0 domain is typically a modified version of Linux, NetBSD or Solaris. User domains may either be unmodified copies of open-source or proprietary operating systems, such as Microsoft Windows, if the host processor supports x86 virtualization, e.g., Intel VT-x and AMD-V),[3] or modified, para-virtualized operating system with special drivers that support enhanced Xen features.
Features:
  • consolidation
  • increased utilization
  • rapid provisioning
  • dynamic fault tolerance against software failures (through rapid bootstrapping or rebooting)
  • hardware fault tolerance (through migration of a virtual machine to different hardware)
  • the ability to securely separate virtual operating systems
  • the ability to support legacy software as well as new OS instances on the same computer
Types of Virtualization:
It supports following two types of virtualization.
Para Virtualization:
In the paravirtualization the kernel of the guest operating system modified to run on the hypervisor, hypervisor is a program that runs on the host system at ring 0. The task of the hypervisor is to handle resource and memory allocation for the virtual machines in addition to providing interfaces for higher level administrati
on and monitoring tool. (From Here)
Fully Virtualization:
This is called hardware assisted virtualization, provides support for unmodified guest operating systems. The term unmodified refers to operating system kernels which have not been altered to run on a hypervisor and therefore still execute privileged operations as though running in ring 0 of the CPU. In this scenario, the hypervisor provides CPU emulation to handle and modify privileged and protected CPU operations made by unmodified guest operating system kernels (From Here)
Supporting Hosts:
Xen under Linux runs on x86, with Pentium II or newer processors, x86-64 based systems, as well as on IA-64 and PowerPC. Xen supports up to 64-way symmetric multiprocessing. Xen boots from a bootloader such as GNU GRUB, and then usually loads a modified host operating system into the host domain (dom0). As of 2009, most Linux distributions had included Xen packages to interact with the Xen hypervisor and start additional domains, but because Xen was not accepted into the mainline Linux kernel and installation required several kernel patches, some distros such as Red Hat Enterprise Linux 6 and Ubuntu 8.10 dropped out-of-the-box support for dom0 in subsequent releases. With the inclusion of the most significant parts of Xen in the Linux 2.6.37 mainline kernel in early 2011, several distributions are again considering dom0 support. Version 3.0 of the Linux kernel supports dom0 and domU in the mainline kernel.
  • Novell’s SUSE Linux Enterprise Server release 10 pioneered the first commercial implementation of Xen in this form.
  • Red Hat Enterprise Linux 5 also offers support for Xen, but in RHEL 6 there is no support for dom0.
  • Fedora has host support for Xen from the FC4 to Fedora 8 releases, but as of September 2010 Fedora doesn’t support dom0.
  • Ubuntu included Xen packages from Ubuntu 8.04 (Hardy Heron), supporting Xen versions 3.2 and 3.1. Note however that Ubuntu doesn’t include or support a dom0-capable kernel from Intrepid Ibex (Ubuntu 8.10) onward.
  • Debian includes Xen 4.0.1 in its stable release 6.0 (codename “Squeeze”), and Xen 3.2.1 in its oldstable release 5.0 (codename “Lenny”).
  • Gentoo and Arch Linux both have packages available to support Xen.
  • openSUSE 10.x and 11.x includes Xen 3.1 support. YaST and virt-man offer graphical VM management.
  • OpenSolaris-based distributions can function as dom0 and domU from Nevada build 75 onwards.
  • As of 2009 support for OpenBSD self-hosting required the correction of a lock-up bug before its release.
  • NetBSD 3.x. includes host support for Xen 2, with host support for Xen 3.0 available from NetBSD 4.0.
Supporting Guests:
Guest systems can run fully virtualized (which requires hardware support) or paravirtualized (which requires a modified guest operating system). The following systems have patches allowing them to operate as paravirtualized Xen guests:
  • Linux, paravirtualization integrated in 2.6.23, patches for other versions exist
  • Minix
  • Plan 9 from Bell Labs
  • NetBSD (NetBSD 2.0 has support for Xen 1.2, NetBSD 3.0 has support for Xen 2.0, NetBSD 3.1 supports Xen 3.0, NetBSD 5.0 features Xen 3.3)
  • OpenBSD, announced in a, now dead, blog entry Archived August
    28, 2006 at the Wayback Machine The support has since been discontinued.
  • FreeBSD (Limited, experimental support for Xen 3 in 8-CURRENT [1])
  • OpenSolaris (See The Xen Community On OpenSolaris)
  • NetWare (at Brainshare 2005, Novell showed a port that can run as a Xen guest)
  • GNU/Hurd/Mach
  • Xen version 3.0 introduced the capability to run Microsoft Windows as a guest operating system unmodified if the host machine’s processor supports hardware virtualization provided by Intel VT-x (formerly codenamed Vanderpool) or AMD-V (formerly codenamed Pacifica).

Read more: http://www.itzgeek.com/tech-infos/virualization/what-is-xen%c2%ae.html#ixzz3E1hfSV7E 
© 2012 Geek Site. All rights reserved.

Install OwnCloud 7 on CentOS 7

 Solution  Comments Off on Install OwnCloud 7 on CentOS 7
Sep 222014
 
ownCloud is a web suite that provides a cloud storage over the network, data can be uploaded via web browser or using software client. Data will be stored on the server and can be downloaded or access any time with browser or desktop client or smartphone app. The project is based on PHP and a SQLite, MySQL, Oracle or PostgreSQL database, so it can run on all platforms that meet these requirements. It provides almost all possibility of functions that are available on commercial suites; it is released under AGPLv3 license, so you can setup own cloud storage server without any additional cost. Commercial version of ownCloud is also available.

Features:

The following are the list of features available on ownCloud.
  • File storage in conventional directory structures
  • Cryptography
  • Synchronization of data with th desktop, web client or mobile app.
  • Calendar (also as CalDAV)
  • Task scheduler
  • Address book (also as CardDAV)
  • Music streaming (through Ampache)
  • User and group administration (via OpenID or LDAP)
  • Sharing of content across groups or public URLs
  • Online text editor with syntax highlighting and code folding
  • Bookmarking
  • URL shortening Suite
  • Photo gallery
  • PDF viewer (using pdf.js)
  • Viewer for ODF Files (.odt, .odp, .ods)
  • Supports uploading of avatar picture.
  • Shows thumbnail of documents
  • Supports web conflict dialogue box when the file already exits.
  • With activity feed, you can see whats going on
  • New design
  • User can restore the deleted files.
New Features in ownCloud 7:
  • Improved sharing between two owncloud installation.
  • Faster and more efficient design, suitable for mobile devices
  • Store, Access and Control
Here is the small guide to setup ownCloud 7 on CentOS 7.

Prerequisites:

As mentioned earlier, it is based on PHP and database combination, database can be any of the above four. So install PHP, Apache web server and MySQL server on CentOS 7. For demo purpose i installed both SQLite and MySQL on CentOS, we will talk about reason behind later.

Set SELinux to allow OwnCloud to write the data.

Allow apache in firewall.

Start Apache and MariaDB.
Auto start the service at system start-up.

Download and Setup:

Download ownCloud from official website put to root web or enter the fallowing command on terminal.

Extract the archive and allow the web server to read and write the files on cloud directory.

Create Database:

If you are setting up a MariaDB for the first time, here is the tu
torial on Securing MariaDB.  MariaDB server must be started before creating the database, login to MySQL server.

Create database called “clouddb”

Allow “clouddbuser” to access the “clouddb” database on localhost with predefined password.

Configure Apache server:

While configuring Apache web server, it is recommended that you to enable .htaccess to get a enhanced security features, by default .htaccess is disabled in Apache server. To enable it, open your virtual host file and make AllowOverride is set to All.For example, here i used external config file instead of modifying main file.
 Add the following.

Remember to restart all services related to Apache server.
 
Configure ownCloud:
Open up web browser, point a URL to http://your-ip-address/owncloud ( http://Your-custom-domain). Browser will automatically take you to ownCloud setup page where it must be configured before going to live. Enter admin user name, password, data folder location and database details. You can choose any one of the database from SQLite or MySQL. If you choose SQLite database, you do not require to enter database details. where as MySQL database requires database user, password and data base name.

Alternately you can download ownCloud client to upload the files.

Home page will look like this, you can start uploading the contents using upload button.

Read more: http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-owncloud-7-on-centos-7-rhel-7.html#ixzz3E1WKqMLv 
© 2012 Geek Site. All rights reserved.

What is a SysAdmin?

 Uncategorized  Comments Off on What is a SysAdmin?
Sep 222014
 

From: http://sysadminday.com/about-sysadmin-day/sysadwhat/

So what the heck is a SysAdmin?

System administrators. IT pros. The IT guy (or IT gal). Techies. They go by a lot of names, but they all pretty much share a common goal: be the fantastic fixers of all things tech. After all, if weren’t for sysadmins, making copies would require a trusty pen, a steady hand, and a ton of patience.

SysAdmins are always on call, whether it’s updating your company’s antivirus software, replacing that toner waste cartridge or repairing a corrupt SQL database. Here’s a bunch of other tasks IT pros do that you might not have even realized:

  • A SysAdmin unpacked the server for this website from its box, installed an operating system, patched it for security, made sure the power and AC were working in the server room, monitored it for stability, set up the software, and kept backups in case anything went wrong. All to serve sysadminday.com.
  • Another SysAdmin installed the routers, laid the cables, configured the networks, set up the firewalls, and watched and guided the traffic for each hop of the network that runs over copper, fiber optic glass, and even the air itself to bring the Internet to your computer.
  • When your network connection is safe, secure, open, and working, you can thank your SysAdmin. They make sure your computer is functioning in a healthy way on a healthy network. They take backups to guard against disaster (both human and otherwise), hold the gates against security threats and crackers (not the salty, crumbly kind), and they keep the printers going no matter how many copies of the tax code someone from accounting prints out.
  • A SysAdmin worries about spam, viruses, spyware, as well as power outages, fires and floods.
  • When the email server goes down at 2 a.m. on a Sunday, your SysAdmin is paged, wakes up, and goes to work.
  • A sysadmin is a pro who plans, worries, hacks, fixes, pushes, advocates, protects and creates good computer networks. Why? To get you your data, help you do your work, and bring the potential of computing ever closer to reality.

So if you’re able to read all of this, thank your SysAdmin — and know he or she is only one in a tech army bringing you the email from your aunt on the West Coast, the instant message from your son at college, the free phone call from the friend in Australia, and this very webpage.

How to install pip and easy_install on CentOS 7

 Linux  Comments Off on How to install pip and easy_install on CentOS 7
Sep 222014
 

Step 1:

We must install python, you should using command:


Step 2: We install setup tools, using command

Step 3: And now we install pip on centos 7

And now using it on working 🙂

Change hostname on CentOS 7

 Uncategorized  Comments Off on Change hostname on CentOS 7
Sep 222014
 
After installing the CentOS 7 on my server, i tried to change host name by modifying the /etc/sysconfig/network; it did not take an effect of the modification. Even after multiple reboot of server, the host name remains localhost.localdomain. The procedure to change the host name in CentOS 7 is now totally different from the previous version, this guide will help you to setup the host name on CentOS 7 / RHEL 7.
CentOS 7 supports three class of Host Names:
Static – The static host name is traditional host which can be chosen by the user and is stored in /etc/hostname file.
Transient – The transient host name is maintained by kernel and can be changed by DHCP and mDNS.
Pretty – It is a free form UTF -8 host name for the presentation to the user.
HostName can be,
  • 64 character in a length
  • Recommend to have FQDN
  • Consists of a-z,A-Z, 0-9, “-”, “_” and “.” only
How to Change:
Before changing the host name, lets check the current host name.
[root@localhost ~]# hostname
localhost.localdomain
1. nmtui tool: you using command nmtui
NetworkManaget tool is used to set the static host name in /etc/hostname file.
Set the host name.

restart the hostnamed to force the hostnamectl to notice the change in static host name.
[root@localhost ~]# systemctl restart systemd-hostnamed
You can verify the change in host name.
[root@localhost ~]# hostname
web.sysadmin.com.vn
[root@localhost ~]# cat /etc/hostname
web.sysadmin.com.vn
[root@localhost ~]# cat /etc/sysconfig/network
# Created by anaconda
sysadmin
[root@localhost ~]#
2. hostnamectl:
hos
tnamectl is used to change the host name, with this tool we can change all the three class of host name; here we look only static host nam
e.
Check the current host name.
[root@server ~]# hostnamectl status
[root@localhost ~]# hostnamectl status
Static hostname: web.sysadmin.com.vn
Icon name: computer
Chassis: n/a
Machine ID: 3132ab42b3b7405bbdc647ce36ca659f
Boot ID: 0938b49f7e4045b899a110ccf17b54a7
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-123.6.3.el7.x86_64
Architecture: x86_64
Set the hostname.
[root@server ~]# hostnamectl set-hostname web.sysadmin.com.vn
Check the host name again (Close the session and open new session using putty or console)

[root@client ~]# hostnamectl status
[root@localhost ~]# hostnamectl status
Static hostname: web.sysadmin.com.vn
Icon name: computer
Chassis: n/a
Machine ID: 3132ab42b3b7405bbdc647ce36ca659f
Boot ID: 0938b49f7e4045b899a110ccf17b54a7
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-123.6.3.el7.x86_64
Architecture: x86_64
If you use this command, you do not require to notify the change in host name. Close the current session and re launch the terminal.
3. nmcli tool:
It can be used to query and setup the static host name in /etc/hostname file.
Check the hostname.
[root@localhost ~]# nmcli general hostname
web.sysadmin.com.vn
Change the host name.

[root@localhost ~]# nmcli general hostname web.sysadmin.com.vn
restart the hostnamed to force the hostnamectl to notice the change in static host name.
[root@localhost ~]# systemctl restart systemd-hostnamed
4. Edit /etc/hostname
This is the simple, but requires a reboot of server to take an effect.
Note: Use the hostnamectl to change the host name, which fair better than other commands and does not require to update the kernel about the change in host name.

How To Install Nginx on CentOS 7

 Linux  Comments Off on How To Install Nginx on CentOS 7
Sep 222014
 



About Nginx

Nginx is a high performance web server software. It is a much more flexible and lightweight program than Apache HTTP Server.
This tutorial will teach you how to install and start Nginx on your CentOS 7 server.

Prerequisites

The steps in this tutorial require the user to have root privileges. You can see how to set that up by following steps 3 and 4 in the Initial Server Setup with CentOS 7 tutorial.

Step One—Add Nginx Repository

To add the CentOS 7 Nginx yum repository, open terminal and use the following command:

Step Two—Install Nginx

Now that the Nginx repository is installed on your server, install Nginx using the followingyum command:

After you answer yes to the prompt, Nginx will finish installing on your virtual private server (VPS).

Step Three—Start Nginx

Nginx does not start on its own. To get Nginx running, type:
systemctl start nginx.service
You can do a spot check right away to verify that everything went as planned by visiting your server’s public IP address in your web browser (see the note under the next heading to find out what your public IP address is if you do not have this information already):
http://server_domain_name_or_IP/
Example
 
You will see the default CentOS 7 Nginx web page, which is there for informational and testing purposes. It should look something like this:
CentOS 7 Nginx Default
If you see this page, then your web server is now correctly installed.
Before continuing, you will probably want to enable Nginx to start when your system boots. To do so, enter the following command:
sudo systemctl enable nginx.service
Congratulations! Nginx is now installed and running!

How To Find Your Server’s Public IP Address

You can run the following command to reveal your server’s public IP address:

Server Root and Configuration

If you want to start serving your own pages or application through Nginx, you will want to know the locations of the Nginx configuration files and default server root directory.

Default Server Root

The default server root directory is /usr/share/nginx/html. Files that are placed in there will be served on your web server. This location is specified in the default server block configuration file that ships with Nginx, which is located at/etc/nginx/conf.d/default.conf.

Server Block Configuration

Any additional server blocks (known as Virtual Hosts in Apache) by creating new configuration files in /etc/nginx/conf.d. Files that end with .conf in that directory will be loaded when Nginx is started.

Nginx Global Configuration

The main Nginx configuration file is located at /etc/nginx/nginx.conf. This is where you can change settings like the user that runs the Nginx daemon processes, and the number of worker processes that get spawned when Nginx is running, among other things.

Redis – Environment

 Database  Comments Off on Redis – Environment
Sep 202014
 

Install Redis on Ubuntu

To install the Redis on Ubuntu, go to terminal and type the following commands:

$sudo apt-get update
$sudo apt-get install redis-server

This will install redis on your machine.
Start Redis

$redis-server

Check if redis is working?

$redis-cli

This will open a redis prompt, as shown below:

redis 127.0.0.1:6379>

In the above prompt 127.0.0.1 is your machine’s IP address and 6379 is port on which redis server is running. Now type the PING command as shown below.

redis 127.0.0.1:6379> ping
PONG

This shows that you have successfully installed redis on your machine.

Install Redis Desktop Manager on Ubuntu

To install redis dessktop manager on ubuntu, just download the package from http://redisdesktop.com/download Open the downloaded package and install it.
Redis desktop manager will give you UI to manage your redis keys and data.