Basic common steps for Linux service installation

Source: Internet
Author: User

LinuxBasic common steps for service installation

Linux , the basic steps for installing the service are as follows:

First configure the Source:

Mounting CD Disk

Mount/dev/cdrom/mnt

Software Catalog:

/mnt/packages/xxx for example:ls/mnt/packages/dhc*

The configuration CD is a Yum source (take Rhel7 as an example):

[Email protected] ~]# rm-rf/etc/yum.repos.d/*

[email protected] ~]# cat >/etc/yum.repos.d/rhel7.repo <<eof

> [Rhel7-source]

> Name=rhel-source

> baseurl=file:///mnt

> enabled=1

> gpgcheck=0

> EOF

 [[email protected] ~]# Yum cleanall                                        # empty yum cache

[email protected] ~]# yumlist # generate cache list

Common Steps for installing services

1. View port number

Vim/etc/services


2. Install the package

Installing packages using RPM

or yum-y install XXX

Example:

[Email protected] ~]# rpm-ivh/mnt/packages/ntp-4.2.6p5-1.el6.x86_64.rpm

or

Yum-y Install NTP


3.
the location where the software configuration file is often located, usually by configuring the file for service configuration.

/etc/xxx.conf

Example:

[Email protected] ~]# ls/etc/ntp.conf

4. See if the port or service is enabled

Netstat-anptu | grep Port number

Netstat–anptu | grep xxx

Example: Netstat-anptu | grep 123



5. Enable the service
RHEL 7:systemctl Start ntpd

RHEL 6:systemctl Start ntpd

Set up boot from

RHEL 7:systemctl Enable NTPD

RHEL 6:chkconfig ntpd on


Basic common steps for Linux service installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.