Linux package Management (IDEA)

Source: Internet
Author: User

Yum Benefits: Yum installs software that easily resolves dependency issues

Experiment: Make a yum warehouse, now has two servers CENTOS6 (abbreviated 6), CENTOS7 (abbreviated 7), I use 7 as a data source, with native or CENTOS6 access how to configure the warehouse

Mount Disc Method:

    1. I can mount the 6,7 disc at the same time on 7,

      Hang up after: read out 2 disks, if there is no echo '---' >/sys/class/scsi_host/host2/scan

      Ok

    2. /var/ftp/pub mkdir centos/6/os/x86_64/-PV Create a table of contents

3. mount/dev/sr0 centos/6/os/x86_64/mount file Of course, this DEV/SR0 disc is also 6.

See if the/var/ftp/pub/centos/6/os/x86_64 has been mounted successfully

#===================================

Configure a warehouse source

#网络光盘仓库配置源
[Base2]
Name=ftp centos7.4
baseurl=ftp://ip/pub/centos/$releasever/os/$basearch/
Gpgcheck=0
#enabled =0

Yum repolist View--OK


The above data source and warehouse source are configured

Check:

Turn off SELinux
Sed-i.bak ' s/selinux=enforcing/selinux=permissive/'/etc/selinux/config
Setenforce 0
Close Iptables

Shutting down the firewall

Centos7
Systemctl Stop Firewalld
Systemctl Disable FIREWALLD
Centos6
Chkconfig iptables off
Service Iptables Stop

Start the FTP service: (CENTOS7)

Systemctl start vsftpd now start
Systemctl Enable VSFTPD Auto-start on next boot

Start the FTP service: (CENTOS6)

Service VSFTPD Start

Okay, configure the warehouse data on 6: You can access the

Testing the Yum Warehouse
Yum Install Samba

--------------------------------------------------------------

If the developer's own packages are put into the app to create a Yum repository source.
mkdir app
Randomly simulate a package to a CentOS 6 copy
Cp/var/ftp/pub/centos/6/os/x86_64/packages/tree-1.5.3-3.el6.x86_64.rpm/var/ftp/pub/app
Making the source data for the Yum repository
[[email protected]/var/ftp/pub/app] #createrepo.
#配置本地第三方APP的仓库
[App]
Name=app
Baseurl=ftp://192.168.xx.xx/pub/app
Gpgcheck=0
If there is an increase in the package, first delete the previous source data before adding a package
RM-RF repodata/
cp/var/ftp/pub/centos/7/os/x86_64/packages/lftp-4.4.8-8.el7_3.2.x86_64.rpm.

Createrepo.
Clear Cache
Yum Clean All

Test OK Yum Install lftp

#==================================================

Experiment: Compile and install httpd

Download, in

3 Compiling the installation
./configure--prefix=/app/httpd24--sysconfdir=/etc/httpd24/--enable-ssl--enable-proxy-fcgi
Look at the hint to add the appropriate package to install Yum install apr-devel apr-util-devel openssl-devel pcre-devel

/*//yum Install Openssl-devel Advance installation

Apachectl Start Service

Test access:

*/


Make-j 4
Make install

4 Configuring the Operating environment
1) Path modification
vim/etc/profile.d/httpd24.sh
Path=/app/httpd24/bin: $PATH
. /etc/profile.d/httpd24.sh

Apachectl Start Service



Linux package Management (IDEA)

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.