How to change the machine name and IP address in linux: use vi to edit/etc/sysconfig/network and/etc/sysconfig/network-scripts/ifcfg-eth0 1) /etc/sysconfig/networkNETWORKING = yesFORWARD_IPV4 = yesHOSTNAME = xxxx.com # Your host name GATEWAY = 123.123.123.123 # gateway gatewaydev = eth0 2) /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = eth0IPADDR = xxx. xxx. xxx. xxx # your
In the first step, right-click the network connection in the lower-right corner of the taskbar and select Open Network and Sharing Center.
The second step, in the network and Sharing Center interface, we select "Change Adapters."
The third step, we see "Network connection" in a "local connection", the mouse to double-click.
Fourth step, as shown in the figure, the mouse double click Internet Protocol 4 (TCP/
After you clone the virtual machine, view the MAC address that the virtual machine is assigned to.Open the console and go to the Linux interface.打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:# vi /etc/udev/rules.d/70-persistent-net.rules# This file was automatically generated by the /lib/udev/write_net_rules# program, run by the persistent-net-generator.rules rules file.## You can modify it,aslongasyou keepeachrule on a single# line, and change
A change in domestic sources1 First back up the official source to avoid setting errors to recover.sudo CP /etc/apt/sources.list/etc/apt/sources.list.back2 Open the/etc/apt/sources.list file with the editor.sudo nano/etc/apt/sources.list3 Delete the original source and add Xinyuan (Ali) in the editor. :Deb http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/trusty-security main restricted uni
Please copy the following script, save as a. bat file, and change the subnet mask, gateway, IP,DNS, etc. into your
The following code has limitations: In fact, only set 192.168.1.* (2-254), if your IP is something else, you need to modify the code in the 192.168.1.1 switch to your gateway
Copy Code code as follows:
cd\
Cls
@echo off
Color A
[email protected] ~]# cd/etc/sysconfig/network-scripts[[email protected] ~] #ls//ifcfg-ens** for the network configuration file we need to modifyusing the VIM command (vi command can also), to configure the file, we need to modify bootproto= "static" is to change DHCP to static, modify the onboot= "yes" to set the network card to power on, while adding the text belowipaddr=192.168.0.230 #静态IPgateway=192.168.0.1 #默认网关netmask=255.255.255.0 #子网掩码dns1=192
Label:Change Password: Method 1: Use the Set password command Mysql-u Root mysql> SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' Newpass '); Method 2: Use Mysqladmin mysqladmin-u root Password "Newpass" If Root has already set a password, use the following method mysqladmin-u root password Oldpass "Newpass" Method 3: Edit the user table directly with update Mysql-u Root mysql> use MySQL; mysql> UPDATE user SET Password = Password (' newpass ') WHERE user = ' root '; mysql> FLUSH pr
) Validate that the candidate disks is being discovered: Select Path from V$asm_disk; Create A new ASM instance SPFile: Sql> create SPFile from Pfile; ADD the new ASM SPFile and listener to the new ASM instance resource: $> 11.2 Grid Infrastructure Oracle home>/bin/srvctl modify ASM- p path>
$> 11.2 Grid Infrastructure Oracle home>/bin/srvctl modify ASM- L LISTENER Validate the Ohas (Oracle Restart) services start as follows: $> 11.2 Grid Infrastructure Oracle home>/bin/crsctl Stop
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.