Linux configuration software repositories, yum management applications, rapid deployment web/ftp

Source: Internet
Author: User
Tags yum repolist

First, configure the software warehouse

1.yum Introduction

Installation and deployment mechanism based on RPM software package

automatically resolves dependencies for packages

Need to configure the Software warehouse first

2. Configure the Local software repository

A. Insert the Centos7.iso image file into the optical drive to make sure the power is turned on

B. Command operations

3. Client Configuration Yum File

# ls/etc/yum.repos.d/

# Mkdir/etc/yum.repos.d/oldrepo

# mv/etc/yum.repos.d/*.repo/etc/yum.repos.d/oldrepo/

# ls/etc/yum.repos.d/

# Yum-config-manager--add file:///repo/cos7dvd/

# ls/etc/yum.repos.d/

# vim/etc/yum.conf

...

8 gpgcheck=0//change 1 to 0 disable Gpgcheck test

...

4. Verification

Yum Clean all clear Yum Cache

# yum Repolist Verify the warehouse name, path, number of packages

II. Yum Management application

1. Querying packages

Basic usage

Format: Yum list [software name].

2. Get the description of the package

Basic usage

Format: Yum info [software name]

3. query files and commands by which package is generated

Basic usage

Format: Yum privides "*/program or file name". .


4. Install/Uninstall application software

Installation:

Basic usage

Format: Yum [-y] install software name. .

Delete:

Basic usage

Format: Yum [-y] Remove software name. ..

Iii. rapid deployment of the Web

1.Web Service Overview

Web server is a kind of web resource communication based on B/S architecture

2. Quickly build a Web server site

A. Installing the package

B. Create a new default home page


C. Start the service

[[email protected] ~]# systemctl start httpd//Start httpd service

[[email protected] ~]# systemctl enable httpd//Set httpd boot from

D. Testing


Iv. Rapid deployment of FTP

1.FTP Service Overview

Based on C/s architecture

C Client

S Server

File Upload/Download service

2.ftp Account

Anonymous User: The default access is/VAR/FTP

Local User: The default access is/home/xxx

3. Quickly build an FTP server site

A. Installing the package

B. Modifying the master configuration file

[Email protected] ~]# Useradd vip2018

[Email protected] ~]# passwd 123

C. Testing

[[email protected] ~]# Firefox ftp://127.0.0.1 //default login is/var/ftp

[[email protected] ~]# Firefox ftp://[email protected]//Login to/home/vip2018



Linux configuration software repositories, yum management applications, rapid deployment web/ftp

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.