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