Linux Learning Notes virtual machine and physical machine communication

Source: Internet
Author: User

Command Page It's in the /dev/pts .

Add IP

IP addr Add 172.25.254.xxx dev eth0

Increase Gateway

Route add default GW 172.25.254.251

View Gateway

Route-n

Physical and virtual machines do not implement communication steps in the same network segment

Brctl Show See if the vnet0 of the virtual machine is loaded onto the physical machine

Brctl addif vnet0 Dev br0

Ip Link Set Dev vnet0 up

Reboot

Create a new virtual machine methods of using snapshots

Qemu-img create-f qcow2-b rhel6-base.qcow2 VM

Mo .....

Soft links

Ln-s cacti-0.8.8h Cacti

Mysql

Mysql 's mysql.sock kit in /var/lib/mysql

Mysql_secure_installation initializing MySQL

to login Mysql-uroot-pwestos with a password

Mysqladmin-pwestos Create cacti creating a user cacti

Show databases; look at the library it owns.

Mysql-pwestos Cacti < cacti.sql Import a sheet

Mysql-pwestos-e "Grant all on cacti.* to [e-mail protected] identified by ' Westos '; "

Create a user to specify that his uid is the specified directory of /var/www/html/cacti

Useradd-u 1000-m-d/var/www/html/cacti Cacti

Su-cacti Switching users

CRONTAB-E Writing Data

when viewing a file Add & can let this process into the background do not occupy your current

in Redhat6.5

When IP is configured , there is no result after network restart or no restart

Cd/etc/udev/rules.d

Delete 70-persistent.rules 70-persistent-net.rules

Retry again

to login Mysql-uroot-pwestos with a password

Grant Select on test.* to [email protected] ' 172.25.49.4 ' identified by ' Westos ' ; Authorized

Rpm-q Service Query rpm-e Service Delete

Scheduled Tasks can be seen in/var/spool/cron

This article is from the "11889001" blog, please be sure to keep this source http://11899001.blog.51cto.com/11889001/1860552

Linux Learning Notes virtual machine and physical machine communication

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.