Linux Commands Shutting Down, Re-Mounting, yum command

System Shut Down

Shutting Down

shutdown -h now
shutdown -h +15

Shut Down > Halt now or in 15 minutes.

shutdown -r now
shutdown -r +15

Shut Down > Restart now or in 15 minutes.


Re-mounting Drives

Re-mounting
the root/boot drive

mount -o remount,rw /

YUM CentOSPlus repository

YUM

nano /etc/yum.repos.d/CentOS-Base.repo

Under:
#additional packages that extend functionality of existing packages
[centosplus]

Change:
enabled=0
to:
enabled=1

or just type:
# yum update --enablerepo centosplus mysql-server mysql

Installing LAMP Services:

YUM

yum list available
yum install packagename
yum update packagename
yum check-update
yum search packagename

Upgrading LAMP Services:

YUM

yum update
yum update httpd
yum update openssl
yum update mysql-server mysql
yum update php

Starting and Restarting Services:

 

/etc/init.d/sshd start
/etc/init.d/httpd start
/etc/init.d/httpd restart
/etc/rc.d/init.d/mysqld start
or
# service httpd start
# service httpd stop
# service httpd reload

/etc/rc.d/init.d/mysqld start /etc/rc.d/init.d/mysqld stop /etc/rc.d/init.d/mysqld restart

Listing, Enabling, Disabling Services:

 

# chkconfig --list httpd

# chkconfig --level 3 httpd on

# chkconfig --level 3 httpd off

reset to default configuration: # chkconfig --level 3 httpd reset

For Information Contact:
Comentum Corp
6222 Ferris Sq.
San Diego, CA 92121
Phone: 619-990-1212

Hours: Mon. - Fri., 9 a.m. - 5 p.m. PST

Contact Us »


Mobile App Development

iPhone, Google Android, BlackBerry, Windows Mobile
In-house development team.
San Diego, CA, USA.

Learn More

Web App Estimator

Select and unselect modules such CMS or eCommerce for your web application and watch the cost update in real time.

Try It »