Linux Rapid Deployment Web,ftp

Source: Internet
Author: User
Tags rar 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

Umount/dev/cdromls/mntmount/dev/cdrom/mntls/mntmkdir-p/repo/cos7dvdcp-rf/mnt/*/repo/cos7dvddu-sh/repo/cos7dvd /mnt

3. Client Configuration Yum File

ls/etc/yum.repos.d/mkdir/etc/yum.repos.d/oldrepomv/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 warehouse name, PATH, package count

Two, yum management applications
1. Query Package
Basic Usage
Format: Yum list [software name] ....
Eg:
[[email protected] ~]# yum list Firefox httpd
2. Get Description of package
Basic Usage
Format: Yum info [software name] ....
Eg:
[[email protected] ~]# yum info httpd
[[email protected] ~]# yum info Firefox
3. Query which package generates
Basic usage
format for files and commands: Yum privides "/program or filename" ....
Eg:
[[[email protected] ~]# yum provides "
/vim" | more

Experiment:
A. List package name, version information
Check if software httpd, Firefox, RAR is installed
[[email protected] ~]# yum list Firefox httpd rar
B. Query package description Information
for package kernel, bash usage
[[email protected] ~]# yum info kernel
[[email protected] ~] # Yum Info Bash
Understand the purpose of package httpd, Wireshark
[[email protected] ~]# yum info httpd
[[email protected] ~] # Yum Info wireshark
C. Query which packages can provide the specified program/File
Query command program VIM is provided by which package
[[email protected] ~]# which vim
/usr/ Bin/vim
[[email protected] ~]# yum provides/usr/bin/vim
Query file/etc/redhat-release which package provides
[[email  protected] ~]# Yum provides/etc/redhat-release

4. Install/Uninstall application software
Installation:
Basic usage
Format: Yum [-y] install software name. ..
eg
[email protected] ~]# Yum list httpd
[Email protected] ~]# yum-y install httpd
[email protected] ~]# Yum list httpd
Delete:
Basic usage
Format: Yum [-y] Remove software name. ..
eg
[email protected] ~]# Yum list httpd
[Email protected] ~]# yum-y remove httpd
[email protected] ~]# Yum list httpd
Reinstall:
Basic usage
Format: Yum [-y] Reinstall software name. ..
eg
[Email protected] ~]# VIM/ETC/PASSWD
[email protected] ~]# which vim
[Email protected] ~]# Rm-rf/usr/bin/vim
[Email protected] ~]# VIM/ETC/PASSWD
[email protected] ~]# Yum Provides/usr/bin/vim
[email protected] ~]# Yum list vim-enhanced
[Email protected] ~]# yum-y Reinstall vim-enhanced
[Email protected] ~]# VIM/ETC/PASSWD

Iii. rapid deployment of the Web
1.Web Service Overview
Web server is a kind of web resource communication based on B/S architecture
B Browser
S Server

Web page: With html,htm,jsp,php,asp ... Wait for the end of the file
Web site: A collection of multiple web pages

Programmer (Dev): Development Web page/website (java,.net,python,php)

Test Engineer (QA)

Operations Engineer (OP): On-line (hosted to server)
Duty:
Installing a Linux Server
Configure the Web server
Deploy Web sites written by programmers to Web servers
Test

2. Quickly build a Web server site
A. Installing the package
[email protected] ~]# Yum repolist
[email protected] ~]# Yum list httpd
[Email protected] ~]# yum-y install httpd
[email protected] ~]# Yum list httpd
B. Create a new default home page
[Email protected] ~]# vim/var/www/html/index.html
This is a test Page!!!
[Email protected] ~]# cat/var/www/html/index.html
This is a test Page!!!
C. Start the service
[[email protected] ~]# systemctl start httpd//Start httpd service
[[email protected] ~]# Systemctl enable httpd//Set httpd boot from
D. Testing
[[email protected] ~]# Firefox http://127.0.0.1/index.html actually access the server above the/var/www/html/index.html

Questions:
[Email protected] ~]# mkdir/var/www/html/day04/
[Email protected] ~]# vim/var/www/html/day04/test01.html
Test Page!!!
[Email protected] ~]# cat/var/www/html/day04/test01.html
Test Page!!!
What can I enter on the browser to access test01.html???

A:http://127.0.0.1/var/www/html/day04/test01.html
b:http://127.0.0.1
C:http://127.0.0.1/test01.html
D:http://127.0.0.1/day04/test01.html

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
[email protected] ~]# Yum repolist
[email protected] ~]# Yum list vsftpd
[Email protected] ~]# yum-y install VSFTPD
[email protected] ~]# Yum list vsftpd
B. Modifying the master configuration file
[Email protected] ~]# Useradd vip2018
[Email protected] ~]# passwd vip2018
C. Start the server
[Email protected] ~]# systemctl start vsftpd
[Email protected] ~]# Systemctl enable VSFTPD
D. 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 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.