CentOS to build Yum server by Vsftp Way

Source: Internet
Author: User
Tags ftp gpg sqlite centos

We went on to build a Yum service.

1. Mount CD image

The CD image is then mounted, because the RPM packages in the Yum Data warehouse are first copied from the installation CD

# mount/dev/cdrom/media/

Mount:block Device/dev/sr0 is write-protected, mounting read-only

2. Copy the contents of the CD into the/var/ftp/pub directory

The/var/ftp/pub directory is typically automatically generated after the VSFTP installation is completed

# cp-a/media/*/var/ftp/pub/

3. Update the dependencies in the Data Warehouse and group information

# createrepo-g/var/ftp/pub/repodata/2727fcb43fbe4c1a3588992af8c19e4d97167aee2f6088959221fc285cab6f72-c6-x86_64- comps.xml/var/ftp/pub/

Spawning worker 0 with 3955 pkgs

Workers finished

Gathering worker Results

Saving Primary Metadata

Saving file lists Metadata

Saving other metadata

Generating SQLite DBs

Sqlite DBs Complete

4. Start vsftp and check that the monitor is normal

# service VSFTPD Start

Starting vsftpd for VSFTPD: [OK]

# NETSTAT-NLPTU |grep vsftpd

TCP 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2806/vsftpd

5. Local login to see if the contents of the/var/ftp/pub directory can be seen normally

# FTP 127.0.0.1

Connected to 127.0.0.1 (127.0.0.1).

2.2.2 (VSFTPD)

Name (127.0.0.1:root): FTP

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

Ftp> ls

Entering passive Mode (127,0,0,1,195,194).

Here comes the directory listing.

Drwxr-xr-x 7 0 0 4096 Nov 13:48 Pub

Directory send OK.

Ftp> CD Pub

Directory successfully changed.

Ftp> ls

Entering passive Mode (127,0,0,1,142,7).

Here comes the directory listing.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

-r--r--r--1 0 0 2013 Centos_buildtag

Dr-xr-xr-x 3 0 0 4096 Mar 2013 EFI

-r--r--r--1 0 0 212 2013 EULA

-r--r--r--1 0 0 18009 2013 GPL

Dr-xr-xr-x 2 0 0 282624 2013 Packages

-r--r--r--1 0 0 1354 2013 release-notes-en-us.html

-r--r--r--1 0 0 1706 2013 rpm-gpg-key-centos-6

-r--r--r--1 0 0 1730 2013 rpm-gpg-key-centos-debug-6

-r--r--r--1 0 0 1730 2013 rpm-gpg-key-centos-security-6

-r--r--r--1 0 0 1734 2013 rpm-gpg-key-centos-testing-6

-r--r--r--1 0 0 3380 2013 TRANS. TBL

Dr-xr-xr-x 3 0 0 4096 2013 images

Dr-xr-xr-x 2 0 0 4096 2013 Isolinux

Drwxr-xr-x 2 0 0 4096 Nov 13:48 repodata

Directory send OK.

Ftp>

Related Article

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.