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