In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Linux system introduction, it supports 32 and 64-bit hardware, high security, multi-user, multi-task, low resource consumption, stable, free.
The common versions of Linux are: Redhat (Red Hat) and Centos, www.redhat.com www.centos.org
There are three ways to install Linux system: U disk (floppy disk), DVD, and bulk installation tool Kicksrart
Disk partition: enterprise Linux server partition standard (300G 16G), divided into four zones, boot area / boot 200m, root partition / 70G, swap area / swap 16G, data area / data remaining space
The startup process is a Meihjia. Bios power-on self-test, b. Load kernel / boot,c. Start initialization / sbin/init,d. Read / etc/inittab run level, e. According to / etc/rc.d/rcN.d load boot program, f. User login (ssh, command line, graphical), g. Enter login shell, as a command behavior example, first read the configuration file / etc/profile, h.non-ligon shell enters the graphics, and create a new terminal.
5. Directory: / root directory, / root root user's home directory, / home ordinary user's host directory, user data is stored in its home directory, / usr stores applications, command program files, libraries, manuals and other documents, / bin stores necessary commands, / boot stores kernel and startup files, / dev stores device files, / etc stores system configuration files, / lib stores necessary runtime libraries / mnt stores temporary mapped file systems, usually used for mounting, / proc stores storage processes and system information, / sbin stores system management programs, / tmp stores temporary files, / var system default log directory
The commands commonly used in 6.Linux: cd / home enter the home directory, ls. / view all files and directories in the current directory, ls-a view all files, including hidden files, pwd shows the current directory, mkdir / test creates a test directory, rmdir / test deletes the test directory, rm-rf test.txt deletes test files, cp test.txt / tmp/new.txt copies test files to the tmp directory Mv old.txt new.txt rename or move files or directories, touch create files touch test.txt,Useradd create users Useradd wugk, userdel delete users, Groupadd create groups, groupadd wugk, groupdel delete groups find find files and directories find / home-name "test.txt" vi there are three modes: lnsert (shortcut key) text input mode, esc (shortcut key) command line mode and then enter: wq save exit, last line mode Cat view file content cat test.txt, more page view cat test.txt | more, echo "hello word" will show hello word,echo ok > test.txt means to overwrite test.txt content with ok characters, "two greater than symbols, means appending, echo ok > > test.txt, means appending ok characters to test.txt files, not overwriting the contents of the original file.
Linux user rights: in the system, the privilege level of a user is distinguished by UID. UID equals 0, which means that this user has the highest authority, that is, the administrator, and other users increase in turn. The permissions of each file or directory contain the permissions of a user, a group, and others.
The list is as follows:
[root@test] # ls-l test.txt
-rw-r--r-- 1 root root 0 may 7 20:21 monitor_log.sh
Starting from the left, the first root represents the root user, and the second root represents the root group. Other users are not marked here by default.
Each linux file has four permissions: readable (r), writable (w), executable (x), and unauthorized (-).
In order to make it easier and faster to use and be familiar with permissions, rwx permissions can be expressed in numbers, r (4), w (2), x (1), respectively.
Monitor_log.sh permission can represent chmod 644 monitor_log.sh.
Linux network configuration
View the IP address of the network command: ifconfig
The file for configuring the network card is located in cd / etc/sysconfig/network-scripts/
Enter ls and display it as shown below.
You can see that ifcfg-ens32 is the first network card here. Enter cat to view the configuration details of the network first.
If you need to modify the network information, enter vi ifcfg-ens32 enter to edit the Nic content.
The parameters of the network card are explained as follows
DEVICE=ens32 # physical device name
ONBOOT=yes # [yes | no] (whether the device is activated by restarting the Nic)
BOOTPROTO=static # [dhcp | static | none] is personally understood as Nic mode
TYPE=Ethernet # Network Card Type
IPADDR=192.168.101.72 # IP address
NETMASK=255.255.255.0 # Subnet Mask
GATEWAY=192.168.101.254 # Network Card address
After setting the configuration information of the Nic, you need to restart the network service systemctl restart network.serviceps to check the specified process ps-aux | grep httpdrpm to see whether a program installs rpm-qa | grep mysql. This is also my learning process. It is recommended that you can watch the video of teacher Wu Guangke. You are welcome to correct if there is something wrong.
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: 236
*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.