[root@CentOS ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 472M 0 472M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 8.4M 478M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/sda1 8.8G 5.0G 3.5G 59% /
tmpfs 98M 40K 98M 1% /run/user/0
/dev/sr0 1.5M 1.5M 0 100% /run/media/root/VMware Thinprint
[root@CentOS ~]# umount -a
umount: /run/user/0: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /sys/fs/cgroup/systemd: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /sys/fs/cgroup: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /run: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /dev: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
[root@CentOS ~]# mount /dev/sr0 /mnt
mount: /dev/sr0 is write-protected, mounting read-only
[root@CentOS ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 472M 0 472M 0% /dev
tmpfs 487M 8.4M 478M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/sda1 8.8G 5.0G 3.5G 59% /
tmpfs 98M 36K 98M 1% /run/user/0
/dev/sr0 56M 56M 0 100% /mnt
[root@CentOS ~]# ls /mnt
manifest.txt run_upgrader.sh VMwareTools-10.3.23-16594550.tar.gz vmware-tools-upgrader-32 vmware-tools-upgrader-64
[root@CentOS ~]# cp /mnt/VMwareTools-10.3.23-16594550.tar.gz ~
cp: overwrite ‘/root/VMwareTools-10.3.23-16594550.tar.gz’? y
[root@CentOS ~]# ls ~
anaconda-ks.cfg Desktop Documents Downloads initial-setup-ks.cfg Music Pictures Public Templates Videos VMwareTools-10.3.23-16594550.tar.gz
[root@CentOS ~]#
VMwareTools-10.3.23-16594550.tar.gz:
解压到当前目录下:
[root@CentOS ~]# tar -xzvf VMwareTools-10.3.23-16594550.tar.gz
vmware-tools-distrib/
vmware-tools-distrib/bin/
vmware-tools-distrib/bin/vm-support
vmware-tools-distrib/bin/vmware-config-tools.pl
/* 实在太长 全部省略 */
[root@CentOS ~]# ls
anaconda-ks.cfg Documents initial-setup-ks.cfg Pictures Templates VMwareTools-10.3.23-16594550.tar.gz
Desktop Downloads Music Public Videos vmware-tools-distrib
[root@CentOS ~]# ls vmware-tools-distrib/
bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl
[root@CentOS ~]#
到了最关键的一步了 安装 只需要记住一个技巧:
有 [no] 输 no
有 [yes] 的输 yes
两者都无便回车默认
最后一个绝对 no
下面该输入的都用 C 语言注释格式说明了:
[root@CentOS ~]# ./vmware-tools-distrib/vmware-install.pl /* 执行安装脚本 */
The installer has detected an existing installation of open-vm-tools packages
on this system and will not attempt to remove and replace these user-space
applications. It is recommended to use the open-vm-tools packages provided by
the operating system. If you do not want to use the existing installation of
open-vm-tools packages and use VMware Tools, you must uninstall the
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] yes /* 输入 yes */
INPUT: [yes]
A previous installation of VMware Tools has been detected.
The previous installation was made by the tar installer (version 4).
Keeping the tar4 installer database format.
You have a version of VMware Tools installed. Continuing this install will
first uninstall the currently installed version. Do you wish to continue?
(yes/no) [yes] yes /* 输入 yes */
INPUT: [yes]
Uninstalling the tar installation of VMware Tools.
manageSELinux uninstall: Unable to remove vmtools_t permissive mapping.
There was an error configuring the SELinux security context for VMware Tools.
Please make certain that SELinux is configured correctly.
Stopping services for VMware Tools
Stopping vmware-tools (via systemctl): [ OK ]
The removal of VMware Tools 10.3.23 build-16594550 for Linux completed
successfully.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin] /* 输入 回车 */
INPUT: [/usr/bin] default
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d] /* 输入 回车 */
INPUT: [/etc/rc.d] default
What is the directory that contains the init scripts?
[/etc/rc.d/init.d] /* 输入 回车 */
INPUT: [/etc/rc.d/init.d] default
In which directory do you want to install the daemon files?
[/usr/sbin] /* 输入 回车 */
INPUT: [/usr/sbin] default
In which directory do you want to install the library files?
[/usr/lib/vmware-tools] /* 输入 回车 */
INPUT: [/usr/lib/vmware-tools] default
The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] yes /* 输入 yes */
INPUT: [yes]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
INPUT: [/usr/share/doc/vmware-tools] default /* 输入 回车 */
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes] yes /* 输入 yes */
INPUT: [yes]
The installation of VMware Tools 10.3.23 build-16594550 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] yes /* 输入 yes */
INPUT: [yes]
You have chosen to install VMware Tools on top of an open-vm-tools package.
You will now be given the option to replace some commands provided by
open-vm-tools. Please note that if you replace any commands at this time and
later remove VMware Tools, it may be necessary to re-install the open-vm-tools.
The file /usr/bin/vmware-hgfsclient that this program was about to install
already exists. Overwrite? [no] no /* 输入 no */
INPUT: [no]
The file /usr/bin/vmhgfs-fuse that this program was about to install already
exists. Overwrite? [no] no /* 输入 no */
INPUT: [no]
Initializing...
Making sure services for VMware Tools are stopped.
Stopping vmware-tools (via systemctl): [ OK ]
The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.
The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.
The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.
The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.
The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? [yes] yes /* 输入 yes */
INPUT: [yes]
The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)
Skipping configuring automatic kernel modules as no drivers were installed by
this installer.
Skipping rebuilding initrd boot image for kernel as no drivers to be included
in boot image were installed by this installer.
/* 在这里会等一段时间安装 下一个是最后一个 */
The configuration of VMware Tools 10.3.23 build-16594550 for Linux for this
running kernel completed successfully.
VMware Tools installed on top of open-vm-tools has not added anything of
significance or potential benefit. VMware Tools is not needed.
Would you like to recover the wasted disk space by uninstalling VMware Tools at
this time? (yes/no) [yes] no /* 一般来说最后一个一定要输入 no */
INPUT: [no]
Enjoy,
--the VMware team
[root@CentOS ~]#
虚拟机增强工具安装完成!
剩下的善后大家自己完成吧
无非是添加了块网卡、光驱读取的 ISO 文件、电脑里复制解压的一堆东西
安装成功后虚拟机就会支持铺满屏幕:
以及窗口缩放自适应:
剪贴板共享:
最重要的拖拽复制:
这样就不用通过网络或者 USB 设备来虚拟机实体机之间传输数据了!
忘了说 GUI 图形界面的 CentOS 7 自带 ntfs-3g 支持读取 ntfs 分区:
一次卸载 VMware Tools
[root@CentOS ~]# vm
vmcore-dmesg vmware-namespace-cmd
vmhgfs-fuse vmware-rpctool
vmmouse_detect vmware-toolbox-cmd
vmstat vmware-uninstall-tools.pl
vm-support vmware-user
vmtoolsd vmware-user-suid-wrapper
vmware-checkvm vmware-vgauth-cmd
vmware-config-tools.pl vmware-vmblock-fuse
vmware-hgfsclient vmware-xferlogs
[root@CentOS ~]# vmware-uninstall-tools.pl
Uninstalling the tar installation of VMware Tools.
Stopping services for VMware Tools
Stopping vmware-tools (via systemctl): [ OK ]
The removal of VMware Tools 10.3.23 build-16594550 for Linux completed
successfully. Thank you for having tried this software.
[root@CentOS ~]#
一次普通用户安装示例 最后一步选择 yes 也无伤大雅:
[lilian@CentOS vmware-tools-distrib]$ su root
密码:
[root@CentOS vmware-tools-distrib]# ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools packages
on this system and will not attempt to remove and replace these user-space
applications. It is recommended to use the open-vm-tools packages provided by
the operating system. If you do not want to use the existing installation of
open-vm-tools packages and use VMware Tools, you must uninstall the
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] yes
INPUT: [yes]
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
INPUT: [/usr/bin] default
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
INPUT: [/etc/rc.d] default
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
INPUT: [/etc/rc.d/init.d] default
In which directory do you want to install the daemon files?
[/usr/sbin]
INPUT: [/usr/sbin] default
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
INPUT: [/usr/lib/vmware-tools] default
The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] yes
INPUT: [yes]
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
INPUT: [/usr/share/doc/vmware-tools] default
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes] yes
INPUT: [yes]
The installation of VMware Tools 10.3.23 build-16594550 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] yes
INPUT: [yes]
You have chosen to install VMware Tools on top of an open-vm-tools package.
You will now be given the option to replace some commands provided by
open-vm-tools. Please note that if you replace any commands at this time and
later remove VMware Tools, it may be necessary to re-install the open-vm-tools.
The file /usr/bin/vmware-hgfsclient that this program was about to install
already exists. Overwrite? [no] no
INPUT: [no]
The file /usr/bin/vmhgfs-fuse that this program was about to install already
exists. Overwrite? [no] no
INPUT: [no]
Initializing...
Making sure services for VMware Tools are stopped.
Stopping vmware-tools (via systemctl): [ 确定 ]
The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.
The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.
The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.
The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.
The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? [yes] yes
INPUT: [yes]
The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)
Skipping configuring automatic kernel modules as no drivers were installed by
this installer.
Skipping rebuilding initrd boot image for kernel as no drivers to be included
in boot image were installed by this installer.
The configuration of VMware Tools 10.3.23 build-16594550 for Linux for this
running kernel completed successfully.
VMware Tools installed on top of open-vm-tools has not added anything of
significance or potential benefit. VMware Tools is not needed.
Would you like to recover the wasted disk space by uninstalling VMware Tools at
this time? (yes/no) [yes] yes
INPUT: [yes]
Uninstalling the tar installation of VMware Tools.
Stopping services for VMware Tools
Stopping vmware-tools (via systemctl): [ 确定 ]
The removal of VMware Tools 10.3.23 build-16594550 for Linux completed
successfully. Thank you for having tried this software.
[root@CentOS vmware-tools-distrib]#
CMS概述
并发标记清理垃圾回收(Concurrent Mark and Sweep GC)算法的主要目标是在GC过程中,减少暂停用户线程的次数以及在不得不暂停用户线程的请夸功能,尽可能短的暂停用户线程的时间。这对于交互式应用,比如web应用来说,是非常重要的。
CMS垃圾回收针对新生代和老年代采用不同的策略。相比同吞吐量垃圾回收,它要复杂的多。吞吐量垃圾回收在执
1,找到配置文件
vi /etc/sysconfig/iptables
2,添加端口开放,增加一行,开放18081端口
-A INPUT -m state --state NEW -m tcp -p tcp --dport 18081 -j ACCEPT
3,保存
ESC
:wq!
4,重启服务
service iptables
使用Android SDK Manager 更新了Anadroid SDK Tooks 之后,
打开eclipse提示 This Android SDK requires Android Developer Toolkit version 23.0.0 or above, 点击Check for Updates
检测一会后提示 No update were found