Phase 22nd Linux Installation/removal application and rapid deployment HTTP service, FTP service

Source: Internet
Author: User
Tags yum repolist

1. Installation:
Basic usage
Format: Yum [-y] install software name. ..
eg
[[email protected] ~]# Yum list httpd//See if HTTP is installed "Enter the service named httpd here"
[[email protected] ~]# yum-y install httpd//installation HTTP Service
[[email protected] ~]# Yum list httpd//check again to see if the installation was successful

Delete:
Basic usage
Format: Yum [-y] Remove software name. ..
eg
[[email protected] ~]# Yum list httpd//See if HTTP is installed
[[email protected] ~]# yum-y remove httpd//delete HTTP service
[[email protected] ~]# Yum list httpd//See if Delete
Reinstall:
Basic usage
Format: Yum [-y] Reinstall software name. ..
eg
[[email protected] ~]# VIM/ETC/PASSWD//Use VIM to enter etc under the passwd
[[email protected] ~]# which vim//view Vim's absolute path
[[email protected] ~]# rm-rf/usr/bin/vim//Delete absolute path
[[email protected] ~]# VIM/ETC/PASSWD//again im into etc under the passwd
[[email protected] ~]# Yum provides/usr/bin/vim//yum Create absolute path to VIM
[[email protected] ~]# Yum list vim-enhanced//See if vim-enhanced is installed
[[email protected] ~]# yum-y Reinstall vim-enhanced//re-install with Yum
[[email protected] ~]# VIM/ETC/PASSWD//view again

Quickly build a Web server site
A. Installing the package
[[email protected] ~]# Yum repolist//See if Yum is normal
[[email protected] ~]# Yum list httpd//See if HTTP service is installed
[[email protected] ~]# yum-y install httpd//installation HTTP Service
[[email protected] ~]# Yum list httpd//See if successful

B. Create a new default home page
[[email protected] ~]# vim/var/www/html/index.html//Create Web content with vim


[[email protected] ~]# cat/var/www/html/index.html//View Web content

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

Quickly build an FTP server site "in the same vein as the HTTP service, just replace the httpd with the vsftpd."
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/vip201

Thank you

Phase 22nd Linux Installation/removal application and rapid deployment HTTP service, FTP service

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.