Today, I suddenly can’t connect the virtual machine, Error, some other host already USES address Error, other IP or such Error, fortunately, a search on the Internet found the solution is as follows:1. Vim /etc/sysconfig/network-scripts/ifup-eth modify configuration files
2, comment out this IP judgment can be quickly located through /arping
2, comment out this IP judgment can be quickly located through /arping
3. Save, exit and restart the network card
The service network restart
Note: Use the SED feature to find it
Data search and display
Search for lines with the root keyword in /etc/passwd
nl /etc/passwd | sed '/root/p' 1 root:x:0:0:root:/root:/bin/bash 1 root:x:0:0:root:/root:/bin/bash 2 daemon:x:1:1:daemon:/usr/sbin:/bin/sh 3 bin:x:2:2:bin:/bin:/bin/sh 4 sys:x:3:3:sys:/dev:/bin/sh 5 sync:x:4:65534:sync:/bin:/bin/sync ....
If root finds it, it prints the matching row in addition to all the rows.
With -n, only the lines containing the template will be printed.
nl /etc/passwd | sed -n '/root/p' 1 root:x:0:0:root:/root:/bin/bash
#nl ifup-eth | sed-n ‘/arping/p’ 216 line 245 line WFTW)
Read More:
- How to Fix Failed to add the host to the list of known hosts
- Flutter SocketException: OS Error: No route to host, errno = 113, address = XXX
- VirtualBox + CentOS 7 virtual machine setting static IP address of host only NIC
- [Solved] Centos7 Wget Error: nown. wget: unable to resolve host address ‘mirrors.aliyun.com’
- How to Disable Autoconfiguration IPv4 Address
- How to Fix Session is not Connecting (How to Diagnose it)
- How to solve the resource temporarily unavailable error of the Linux host?
- How to Fix Error in module RSQL of the database interface
- Android resource compilation failed (How to Fix)
- How to solve oserror: [errno 98] address already in use and kill the python3 process
- failed: Too many links (How to Fix)
- How to Fix Your Timestep
- Android Studio: Application Installation Failed (How to Fix)
- express nodejs Failed to lookup view error in views directory (How to Fix)
- Uncaught TypeError: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node How to Fix
- Go: How to Fix plug-in installation failure in vscode of windows system
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- How to Fix GIT Push Error
- How to Fix IDM has been Registered with a Fake Serial Number
- How to Fix Node.js connection to MYSQL error.