In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "Linux red hat server building method". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
This article provides solutions to three problems built by Linux servers.
1. How to use yum to install common software when the server is not connected to the Internet
First mount the Linux system installation disk and put the CD into the server external optical drive. Create a new mount directory
# mkdir / cdrom
# ls-l / dev/sr* confirm the name of the file mounted on the CD, assuming / dev/sr0#
# mount / dev/sr0 / cdrom/ CD-ROM files are mounted to / cdrom
# mkdir / iso create a copy file directory
# cp / cdrom/* / iso copy all the CD files into the iso directory
# cd / etc/yum.repos.d enter the yum configuration file directory
# vi dvd.repo New CD as the yum configuration file from which the software is downloaded
The dvd.repo content is as follows
# yum clean all clears yum cache
Now you can use the yum command to install common software when you are not connected to the Internet, because there will be rpm packages of commonly used software on the Linux installation disk.
Configure the domain name resolution server
Vi / etc/resolv.conf
Nameserver 114.114.114.114
Nameserver 8.8.8.8
Restart the network service to take effect
3. The ftp tool cannot connect to the system
The server that has just configured the network uses the ftp tool to log in, and there is a 500 error message.
Reason: redhat is aimed at enterprises. For the sake of security, a selinux service has been added, which restricts the login of root users to the ftp service.
Solution:
(1) Open / etc/selinux/config with vi editor
(2) change enforcing to disabled save and exit
(3) run the setenforce 0 command to take effect immediately.
If the connection is still unsuccessful
(1) check whether the vsftpd service is enabled
(2) turn off the firewall
(3) whether the user name or password is entered incorrectly
This is the end of the content of "how to build Linux red hat Server". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.