<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CentOS &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="http://lifelinux.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Mon, 16 Mar 2015 11:19:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.18</generator>
	<item>
		<title>How To Install Solr 4.10.4 On CentOS 6.5</title>
		<link>http://lifelinux.com/how-to-install-solr-4-10-4-on-centos-6-5/</link>
					<comments>http://lifelinux.com/how-to-install-solr-4-10-4-on-centos-6-5/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 16 Mar 2015 11:16:09 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[install solr 4.10.4]]></category>
		<category><![CDATA[install solr on centos]]></category>
		<category><![CDATA[java]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1955</guid>

					<description><![CDATA[<p>Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world&#8217;s largest internet sites. In this tutorial I will explain How to install Solr 4.10.4 on CentOS 6.5. The first of [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-install-solr-4-10-4-on-centos-6-5/">How To Install Solr 4.10.4 On CentOS 6.5</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><blockquote><p>Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world&#8217;s largest internet sites.</p></blockquote>
<p><span id="more-1955"></span></p>
<p>In this tutorial I will explain How to install Solr 4.10.4 on CentOS 6.5. The first of all, Login as root user.</p>
<h2>Installing JAVA</h2>
<p>To start things off first check if you have Java installed:</p>
<pre># which java
</pre>
<p>If you do not have Java installed check for latest version:</p>
<pre># yum list available | grep openjdk
</pre>
<p>Outputs</p>
<pre>java-1.6.0-openjdk.x86_64                  1:1.6.0.34-1.13.6.1.el6_6     updates
java-1.6.0-openjdk-demo.x86_64             1:1.6.0.34-1.13.6.1.el6_6     updates
java-1.6.0-openjdk-devel.x86_64            1:1.6.0.34-1.13.6.1.el6_6     updates
java-1.6.0-openjdk-javadoc.x86_64          1:1.6.0.34-1.13.6.1.el6_6     updates
java-1.6.0-openjdk-src.x86_64              1:1.6.0.34-1.13.6.1.el6_6     updates
java-1.7.0-openjdk-demo.x86_64             1:1.7.0.75-2.5.4.0.el6_6      updates
java-1.7.0-openjdk-devel.x86_64            1:1.7.0.75-2.5.4.0.el6_6      updates
java-1.7.0-openjdk-javadoc.noarch          1:1.7.0.75-2.5.4.0.el6_6      updates
java-1.7.0-openjdk-src.x86_64              1:1.7.0.75-2.5.4.0.el6_6      updates
java-1.8.0-openjdk.x86_64                  1:1.8.0.31-1.b13.el6_6        updates
java-1.8.0-openjdk-demo.x86_64             1:1.8.0.31-1.b13.el6_6        updates
java-1.8.0-openjdk-devel.x86_64            1:1.8.0.31-1.b13.el6_6        updates
java-1.8.0-openjdk-headless.x86_64         1:1.8.0.31-1.b13.el6_6        updates
java-1.8.0-openjdk-javadoc.noarch          1:1.8.0.31-1.b13.el6_6        updates
java-1.8.0-openjdk-src.x86_64              1:1.8.0.31-1.b13.el6_6        updates
</pre>
<p>Type the following command to install java</p>
<pre># yum install java-1.8.0-openjdk.x86_64
</pre>
<p>Finally, check Java version:</p>
<pre># java -version
java version "1.8.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
[root@host-129-19 ~]# 
</pre>
<h2>Installing Solr</h2>
<p>Install the latest version Solr release by downloading from http://www.us.apache.org/dist/lucene/solr/</p>
<pre># cd /opt/
# wget http://www.us.apache.org/dist/lucene/solr/4.10.4/solr-4.10.4.tgz
</pre>
<p>Extracting solr package:</p>
<pre># tar zxvf solr-4.10.4.tgz
# mv solr-4.10.4 solr
</pre>
<p>Renaming &#8220;example&#8221; directory to project name, example &#8220;core&#8221;:</p>
<pre># cd solr
# mv example core
</pre>
<h2>Running Solr</h2>
<p>You should now be able to test running the Solr server with following command</p>
<pre># cd /opt/solr/core
# java -jar start.jar
</pre>
<p>If everything works correctly you should be able to view the Solr server admin by going to:<br />
http://[server hostname or IP]:8983/solr/<br />
If this does not work try viewing the log /opt/solr/solr/logs/solr.log</p>
<h2>Auto Start Apache Solr</h2>
<p>First, create script for handling the Solr server service</p>
<pre># vi /etc/init.d/solr
</pre>
<p>And add the following script</p>
<pre>#!/bin/sh 
# chkconfig: 2345 95 20 
# description: Solr Server 
# Solr Server service start, stop, restart 
# @author Shay Anderson 10.13 

SOLR_DIR="/opt/solr/core" 
JAVA="/usr/bin/java -DSTOP.PORT=8079 -DSTOP.KEY=a09df7a0d -jar start.jar" 
LOG_FILE="/opt/solr/core/logs/solr-server.log" 

case $1 in 
      start) 
            echo "Starting Solr..." 
            cd $SOLR_DIR 
            $JAVA 2&gt; $LOG_FILE &amp; 
            sleep 3 
            ;; 
      stop) 
            echo "Stopping Solr..." 
            pkill -f start.jar &gt; /dev/null 
            RETVAL=$? 
            if [ $RETVAL -eq 0 ]; then 
                  echo "Stopped" 
            else 
                  echo "Failed to stop" 
            fi 
            ;; 
      restart) 
            $0 stop 
            sleep 2 
            $0 start 
            ;; 
      *) 
            echo "Usage: $0 [start|stop|restart]" 
            exit 1 
            ;; 
esac 

exit 0
</pre>
<p>To run Apache Solr by default when the system boots, type the following command</p>
<pre>
# chmod +x /etc/init.d/solr
# chkconfig --level 345 solr on
</pre>
<g:plusone href="http://lifelinux.com/how-to-install-solr-4-10-4-on-centos-6-5/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-install-solr-4-10-4-on-centos-6-5/">How To Install Solr 4.10.4 On CentOS 6.5</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-install-solr-4-10-4-on-centos-6-5/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Restore Default Permissions Of All Files Under / (ROOT)</title>
		<link>http://lifelinux.com/how-to-restore-default-permissions-of-all-files-under-root/</link>
					<comments>http://lifelinux.com/how-to-restore-default-permissions-of-all-files-under-root/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 20 Nov 2014 03:45:39 +0000</pubDate>
				<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[single user mode]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1951</guid>

					<description><![CDATA[<p>Have you ever made a mistake and changed permissions of the folder and all it’s subfolders? And how to change back permissions of files/folders to default state ? Yesterday , I accidentally changed / (ROOT) permission to 777 with following command # chmod 777 -R / After that, All files and folders on my server [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-restore-default-permissions-of-all-files-under-root/">How To Restore Default Permissions Of All Files Under / (ROOT)</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>Have you ever made a mistake and changed permissions of the folder and all it’s subfolders? And how to change back permissions of files/folders to default state ?<br />
<span id="more-1951"></span></p>
<p>Yesterday , I accidentally changed / (ROOT) permission to 777 with following command</p>
<pre>
# chmod 777 -R /
</pre>
<p>After that, All files and folders on my server changed to 777 permissions. And I try to reboot my server, I can&#8217;t login into my server. It&#8217;s shown error: </p>
<pre>
Failed to start SSH server : Starting sshd:WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0775 for '/etc/ssh/ssh_host_key' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: /etc/ssh/ssh_host_key Could not load host key: /etc/ssh/ssh_host_key
...
</pre>
<h2>How do I fix it ? </h2>
<p>If you can <a href="http://www.lifelinux.com/how-to-boot-into-single-user-mode-on-centos/">boot your system into Single User Mode</a>, then type 2 commands</p>
<pre>
# for p in $(rpm -qa); do rpm --setperms $p; done
# for p in $(rpm -qa); do rpm --setugids $p; done
</pre>
<p>Above command combination will reset all the permissions to the default permissions under CentOS / RHEL / Fedora Linux.</p>
<p>If you can&#8217;t boot into Single User Mode, Let boot from CentOS installation CD into <a href="https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-rescuemode-boot.html">Recuse Mode</a>, make sure that your system mounted into /mnt/sysimage, And type the following command</p>
<pre>
# chmod 7777 -R /mnt/sysimage/
</pre>
<p>Note: Permission is 7777 not 777<br />
To change all files and folder to &#8220;7777&#8221; permission. And reboot your system. After that, You can boot into Single User Mode and type above commands.</p>
<h2>Reset default permissions of all files and folders under /home/ </h2>
<p>Type the following commands</p>
<pre>
# cd /home/
# for p in $(ll); do chown $p.$p -R /home/$p; done
# find . -type d -print0 | xargs -0 chmod 755
# find . -type f -print0 | xargs -0 chmod 644
# chmod 700 *
</pre>
<h2>Reset default permissions of all files and folders of MySQL (/var/lib/mysql)</h2>
<p>Type the following commands</p>
<pre>
# chown mysql.mysql -R /var/lib/mysql
# cd /var/lib/mysql
# find . -type d -print0 | xargs -0 chmod 700
# find . -type f -print0 | xargs -0 chmod 660
# chmod 777 *.sock
</pre>
<p>Finally, restart MySQL with following command</p>
<pre>
# /etc/init.d/mysqld restart
</pre>
<g:plusone href="http://lifelinux.com/how-to-restore-default-permissions-of-all-files-under-root/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-restore-default-permissions-of-all-files-under-root/">How To Restore Default Permissions Of All Files Under / (ROOT)</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-restore-default-permissions-of-all-files-under-root/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Start / Shutdown / Reboot Guest Operating Systems With virsh Command On KVM</title>
		<link>http://lifelinux.com/how-to-start-shutdown-reboot-guest-operating-systems-with-virsh-command-on-kvm/</link>
					<comments>http://lifelinux.com/how-to-start-shutdown-reboot-guest-operating-systems-with-virsh-command-on-kvm/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Thu, 31 Jan 2013 13:02:48 +0000</pubDate>
				<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1504</guid>

					<description><![CDATA[<p>The virsh command is an alternative command to manage a Red Hat Enterprise Linux 5 KVM environment using a Command Line Interface(CLI). The virsh command is provided as part of the libvirt API which provides a common API to applications requiring standardized access to interact with KVM using a stable interface. The following are basic [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-start-shutdown-reboot-guest-operating-systems-with-virsh-command-on-kvm/">How To Start / Shutdown / Reboot Guest Operating Systems With virsh Command On KVM</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>The virsh command is an alternative command to manage a Red Hat Enterprise Linux 5 KVM environment using a Command Line Interface(CLI). The virsh command is provided as part of the libvirt API which provides a common API to applications requiring standardized access to interact with KVM using a stable interface.<br />
<span id="more-1504"></span><br />
The following are basic and commonly used virsh commands:</p>
<pre>
help	 print help
list	 list domains
create	 create a domain from an XML file
start	 start a previously created inactive domain
destroy	 destroy a domain
define	 define (but do not start) a domain from an XML file
domid	 convert a domain name or UUID to domain id
domuuid	 convert a domain name or id to domain UUID
dominfo	 domain information
domname	 convert a domain id or UUID to domain name
domstate domain state
quit	 quit this interactive terminal
reboot	 reboot a domain
restore	 restore a domain from a saved state in a file
resume	 resume a domain
save	 save a domain state to a file
shutdown gracefully shutdown a domain
suspend	 suspend a domain
undefine undefine an inactive domain
</pre>
<h2>List running guest VMs</h2>
<p>Type the following command:</p>
<pre>
# virsh list
</pre>
<p>Sample outputs:</p>
<pre>
Id  Name                 State
----------------------------------
1   VM01                 running
2   VM02	         running
</pre>
<h2>Staring a guest VM</h2>
<p>Type the following command:</p>
<pre>
# virsh start VM01
</pre>
<h2>Shutddowwn a guest VM</h2>
<p>Type the following command:</p>
<pre>
# virsh shutdown VM01
</pre>
<p>Or, you can forcefully stop a guest VM with following command:</p>
<pre>
# virsh destroy VM01
</pre>
<h2>Rebooting a guest VM</h2>
<p>Type the following command:</p>
<pre>
# virsh reboot VM01
</pre>
<g:plusone href="http://lifelinux.com/how-to-start-shutdown-reboot-guest-operating-systems-with-virsh-command-on-kvm/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-start-shutdown-reboot-guest-operating-systems-with-virsh-command-on-kvm/">How To Start / Shutdown / Reboot Guest Operating Systems With virsh Command On KVM</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-start-shutdown-reboot-guest-operating-systems-with-virsh-command-on-kvm/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install TCP Discard Service</title>
		<link>http://lifelinux.com/how-to-install-tcp-discard-service/</link>
					<comments>http://lifelinux.com/how-to-install-tcp-discard-service/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Thu, 28 Jul 2011 06:00:46 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Discard on Xinetd]]></category>
		<category><![CDATA[Discard Protocol]]></category>
		<category><![CDATA[Discard Service]]></category>
		<category><![CDATA[Install Discard Protocol]]></category>
		<category><![CDATA[Install Discard Service]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=897</guid>

					<description><![CDATA[<p>What&#8217;s Discard Protocol ? The Discard Protocol is a service in the Internet Protocol Suite defined in RFC 863. It is intended for testing, debugging, and measurement purposes. A host may send data to a host that supports the Discard Protocol on either Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port number 9. [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-install-tcp-discard-service/">How To Install TCP Discard Service</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><h2>What&#8217;s Discard Protocol ?</h2>
<p>The <strong>Discard Protocol</strong> is a service in the Internet Protocol Suite defined in <strong>RFC 863</strong>. It is intended for testing, debugging, and measurement purposes.<br />
A host may send data to a host that supports the Discard Protocol on either Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port number 9. The data sent to the server is simply discarded. No response is returned.<span id="more-897"></span></p>
<h2>Install Discard on Centos</h2>
<p>What we need is the <strong>TCP Discard service</strong> on <strong>port 9</strong>. <strong>Xinetd</strong> has it built-in, so we can just use that. Make sure that the following definition is available in xinetd&#8217;s configuration file(s), usually <strong>/etc/xinetd.d/discard</strong>. It should contain a service like the following:</p>
<pre>service discard
{
    type            = INTERNAL
    id              = discard-stream
    socket_type     = stream
    protocol        = tcp
    user            = root
    wait            = no
    disable         = no
    FLAGS           = IPv6 IPv4
}</pre>
<p><strong>Note:</strong> socket_type = stream using for TCP and socket_type = dgram using for UDP</p>
<p>Restart xinetd to reread the configuration files and activate the new discard service. Type the following command:</p>
<pre># /etc/init.d/xinetd restart</pre>
<g:plusone href="http://lifelinux.com/how-to-install-tcp-discard-service/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-install-tcp-discard-service/">How To Install TCP Discard Service</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-install-tcp-discard-service/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install PHP on Centos</title>
		<link>http://lifelinux.com/how-to-install-php-on-centos/</link>
					<comments>http://lifelinux.com/how-to-install-php-on-centos/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Thu, 25 Nov 2010 16:59:19 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[install php]]></category>
		<category><![CDATA[install php latest version]]></category>
		<category><![CDATA[install php on centos]]></category>
		<category><![CDATA[install php on linux]]></category>
		<category><![CDATA[install php with yum]]></category>
		<category><![CDATA[setup php on linux]]></category>
		<category><![CDATA[yum command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=207</guid>

					<description><![CDATA[<p>PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-install-php-on-centos/">How To Install PHP on Centos</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><blockquote><p><strong>PHP:</strong> Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel. It may also function as a graphical application. PHP is available as a processor for most modern web servers and as a standalone interpreter on most operating systems and computing platforms. (<a href="http://en.wikipedia.org/wiki/PHP">wikipedia.org</a>)</p></blockquote>
<p><span id="more-207"></span><br />
<strong>PHP</strong> works with apache, lighttpd, nignx and other webservers and PHP is very easy to install.</p>
<h2>Installing PHP on CentOS</h2>
<p>if you would like to install PHP on CentOS use yum command</p>
<pre>yum install php
</pre>
<h2>Updating PHP on CentOS</h2>
<p>if you would like to update PHP on CentOS use yum command</p>
<pre>yum update php
</pre>
<h2>Install &amp; Update PHP latest version</h2>
<p>Default the system will be installed php with stable version, but if you wanted to install or update PHP with latest version then you need to create <strong>/etc/yum.repos.d/centos-test.repo</strong> and enter following lines in it:</p>
<pre>[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/5/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
</pre>
<g:plusone href="http://lifelinux.com/how-to-install-php-on-centos/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-install-php-on-centos/">How To Install PHP on Centos</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-install-php-on-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux Runlevels</title>
		<link>http://lifelinux.com/linux-runlevels/</link>
					<comments>http://lifelinux.com/linux-runlevels/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 17:33:14 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[change runlevel]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[runlevel]]></category>
		<category><![CDATA[runlevel on centos]]></category>
		<category><![CDATA[runlevel on linux]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=111</guid>

					<description><![CDATA[<p>Runlevels define what services or processes should be running on the system. The Linux operating system can make use of runlevels through the programs of the sysvinit project. After the Linux kernel has booted, the init program reads the /etc/inittab file to determine the behavior for each runlevel. Unless the user specifies another value as [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/linux-runlevels/">Linux Runlevels</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>Runlevels</strong> define what services or processes should be running on the system. The Linux operating system can make use of runlevels through the programs of the sysvinit project. After the Linux kernel has booted, the init program reads the /etc/inittab file to determine the behavior for each runlevel. Unless the user specifies another value as a kernel boot parameter, the system will attempt to enter (start) the default runlevels.<span id="more-111"></span></p>
<h2>Runlevels on RedHat, Centos and Fedora have 6 levels:</h2>
<pre>Runlevel 0: Halt System - To shutdown the system
Runlevel 1: Single user mode
Runlevel 2: Basic multi user mode without NFS
Runlevel 3: Full multi user mode (text based)
Runlevel 4: unused
Runlevel 5: Multi user mode with Graphical User Interface
Runlevel 6: Reboot System
</pre>
<h2>Change Runlevels</h2>
<p>Use the init command to change run levels:</p>
<pre>init &lt;level&gt;
</pre>
<p>On most Linux server default run level 3 and on most Linux desktop default run level 5 with GUI. The default run level is defined in /etc/inittab file. You can change default run level by edit /etc/inittab file.</p>
<pre>vi /etc/inittab
</pre>
<p>The following line at the top line of inittab file</p>
<pre>id:3:initdefault:
</pre>
<p>Change default run level from 3 to 5:</p>
<pre>id:5:initdefault:
</pre>
<g:plusone href="http://lifelinux.com/linux-runlevels/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/linux-runlevels/">Linux Runlevels</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/linux-runlevels/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>chkconfig Command</title>
		<link>http://lifelinux.com/chkconfig-command/</link>
					<comments>http://lifelinux.com/chkconfig-command/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 17:24:13 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[chkconfig command]]></category>
		<category><![CDATA[enterprise linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[rhel 5]]></category>
		<category><![CDATA[system administrators]]></category>
		<category><![CDATA[update-rc.d]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=103</guid>

					<description><![CDATA[<p>chkconfig provides a  simple  command-line  tool  for  maintaining  the/etc/rc[0-6].d  directory  hierarchy by relieving system administrators of the task of directly manipulating the  numerous  symbolic  links  in those directories. chkconfig has five distinct functions: adding new services for  management,  removing  services  from management, listing the current startup information for services, changing the  start-up  information  for  services, [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/chkconfig-command/">chkconfig Command</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>chkconfig</strong> provides a  simple  command-line  tool  for  maintaining  the/etc/rc[0-6].d  directory  hierarchy by relieving system administrators of the task of directly manipulating the  numerous  symbolic  links  in those directories.<span id="more-103"></span></p>
<p>chkconfig has five distinct functions: adding new services for  management,  removing  services  from management, listing the current startup information for services, changing the  start-up  information  for  services, and checking the start-up state of a particular service.</p>
<h2>Synopsis</h2>
<pre>chkconfig --list [name]
chkconfig --add name
chkconfig --del name
chkconfig [--level levels] name &lt;on|off|reset&gt;
chkconfig [--level levels] name
</pre>
<h2>Example</h2>
<p>List status for all services</p>
<pre>chkconfig --list
</pre>
<p>List status for test service</p>
<pre>chkconfig --list test
</pre>
<p>Add service called test</p>
<pre>chkconfig --add test
</pre>
<p>Delete service called test</p>
<pre>chkconfig --del test
</pre>
<p>Turn on &amp; Turn off service</p>
<pre>chkconfig --level 3 5 httpd off
</pre>
<p>The command above will turn off httpd service in <a href="http://www.lifelinux.com/linux-runlevels/">run levels</a> 3 and 5.</p>
<g:plusone href="http://lifelinux.com/chkconfig-command/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/chkconfig-command/">chkconfig Command</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/chkconfig-command/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
