In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Operating system mount concept
How to use the server disk
1) configure the disk array
2) perform system partition operation
3) perform disk format operation
4) enter the disk to create a file system.
5) use the mount operation. Open a door for a storage device
How to mount operation: the first course: mount environment preparation PS: everything in linux system file preparation optical drive (partition): / dev/cdrom / dev/ storage device file directory / dev/sda / dev/sda1 / dev/sda / dev/sdb / dev/sdc prepare mount door: any Empty directory / mnt temporary mount point directory second course: optical drive device needs to be placed in the CD drive third course: mount operation mount device file information mount point directory mount / dev/cdrom / mnt umount / mnt fourth course: check to confirm whether df is mounted-check disk information
System important file data
/ etc directory
1) Network card configuration file
File path information: / etc/sysconfig/network-scripts/ifcfg-eth0
File function description: configure network card address information (IP address mask address gateway address DNS address information)
File details:
TYPE=Ethernet-specify network type Ethernet type
BOOTPROTO=none-obtain IP address method none static (manually configure address) dhcp (automatically obtain address)
DEFROUTE=yes-activate default? Routing? (network knowledge)
NAME=eth0-Network card name information logical name
DEVICE=eth0-Network Card name Information device name
UUID=226f4037-72f4-4c0e-b72a-442145f64d81-eth0 network card device number
ONBOOT=yes-whether to activate the network card or not
File configuration takes effect: restart the network service
Method 1: using systemctl to command the enterprise environment is not recommended
Systemctl restart network
Method 2: using service to command the enterprise environment is not recommended
Service network restart
Method 3: use the ifxx command to specify the network card to restart
Ifdown eth0 & & ifup eth0 Enterprise Environment configuration
Method 4: use nmcli
Https://my.oschina.net/u/3754919/blog/1811361
2) Domain name service profile
File path information: / etc/resolv.conf
Description of the function of the file: whether you can access the name or domain name information
File content information:
Vi / etc/resolv.conf
Nameserver 223.5.5.5 (DNS server address)
PS: DNS server function: to resolve the domain name (gun bureau) to IP address (dispatch office)
223.5.5.5 Ali Cloud Co., Ltd.
114.114.114.114 Telecom Company
8.8.8.8 the new company checks for itself.
How the configuration works: effective immediately
3) Local domain name resolution profile:
File path information: / etc/hosts
File function description: implement local name resolution (used to access different servers) for website testing
Web Server-Network-Database Server 192.173.16.122
-Network-Storage Server 187.169.45.231 date01
-Network-Monitoring Server 177.187.56.93 zabbix01
File information configuration: omitting
4) start up and run the command file automatically:
File path information: / etc/rc.local
Description of the function of the file: run the command information automatically after the system is started
File content information:
#! / bin/bash script file
Mkdir-p / backup
Cp / etc/hosts / backup
Rm-rf / tmp/*
Mount / dev/sdb1 / oldboy01
Mount / dev/cdrom / mnt
PS: confirm that the / etc/rc.d/rc.local file must have execute permission
Chmod + x / etc/rc.d/rc.local
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.