Different ??????
http://life.different.idv.tw/scottwu
<p>????????</p>
scottwu
2017-11-19T00:21:55Z
-
CentOS 6.3 setuptool??
http://life.different.idv.tw/scottwu/85.htm
<p>
yum install setuptool
</p>
<p>
???????????, ?????????.
</p>
<p>
??????
</p>
<p>
yum install system-config-network-tui
</p>
Linux
2012-11-29T10:45:31Z
scottwu
-
CentOS 6.3 NAT
http://life.different.idv.tw/scottwu/84.htm
<p>
????????NAT ??, ???????, ??????iptables ?????.
</p>
<p>
?????????iptables???
</p>
<p>
<img src="http://life.different.idv.tw/gallery/1/iptables.png" />
</p>
<p>
????? NAT??, ???? nat PREROUTING -> filter FORWARD -> nat POSTROUTING (mangle?????, ??)
</p>
<p>
?CentOS 6.3 ???firewall????????Forward? port
</p>
<p>
????????nat table??? MASQUERADE ????????forward???
</p>
<p>
?????????????
</p>
<p>
#vi /etc/sysctl.conf
</p>
<p>
?? net.ipv4.ip_forward = 1
</p>
<p>
#sysctl -p
</p>
<p>
#iptables -t nat -A POSTROUTING -s 192.168.xx.xx/24 -o eth1 -j MASQUERADE
</p>
<p>
??????icmp, udp 53, tcp ALL ?????????
</p>
<p>
#iptables -A FORWARD -p icmp -j ACCEPT<br />
#iptables -A FORWARD -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT <br />
#iptables -A FORWARD -m state --state NEW -m tcp -p tcp --dport 1:65535 -j ACCEPT
</p>
<p>
??FORWARD Policy???????????icmp, ????? icmp????.<br />
-A FORWARD -j REJECT --reject-with icmp-host-prohibited<br />
<br />
#iptables -L --line-numbers<br />
#iptables -D FORWARD 1
</p>
<p>
<br />
?????????????
</p>
<p>
#/etc/init.d/iptables save<br />
????????????<br />
#/etc/init.d/iptables restart<br />
</p>
<p>
icmp reject ??? 1?icmp-net-unreachable 2?icmp-host-unreachable 3? icmp-port-unreachable 4?icmp-proto-unreachable 5?icmp-net-prohibited 6?icmp-host-prohibited
</p>
Linux
2012-11-28T16:57:59Z
scottwu
-
??mysql????????mysql max memory
http://life.different.idv.tw/scottwu/82.htm
<p>
<a href="http://dev.mysql.com/doc/refman/5.1/en/memory-use.html">http://dev.mysql.com/doc/refman/5.1/en/memory-use.html</a>
</p>
<p>
SHOW VARIABLES LIKE 'innodb_buffer_pool_size';<br />
SHOW VARIABLES LIKE 'innodb_additional_mem_pool_size';<br />
SHOW VARIABLES LIKE 'innodb_log_buffer_size';<br />
SHOW VARIABLES LIKE 'thread_stack';<br />
SET @kilo_bytes = 1024;<br />
SET @mega_bytes = @kilo_bytes * 1024;<br />
SET @giga_bytes = @mega_bytes * 1024;<br />
SET @innodb_buffer_pool_size = 2 * @giga_bytes;<br />
SET @innodb_additional_mem_pool_size = 16 * @mega_bytes;<br />
SET @innodb_log_buffer_size = 8 * @mega_bytes;<br />
SET @thread_stack = 192 * @kilo_bytes;<br />
SELECT<br />
( @@key_buffer_size + @@query_cache_size + @@tmp_table_size<br />
+ @innodb_buffer_pool_size + @innodb_additional_mem_pool_size<br />
+ @innodb_log_buffer_size<br />
+ @@max_connections * (<br />
@@read_buffer_size + @@read_rnd_buffer_size + @@sort_buffer_size<br />
+ @@join_buffer_size + @@binlog_cache_size + @thread_stack<br />
) ) / @giga_bytes AS MAX_MEMORY_GB;
</p>
MySQL
2012-01-18T16:17:25Z
scottwu
-
??- VMware vSphere5 ???
http://life.different.idv.tw/scottwu/81.htm
<div id="content-header">
???NetAdmin
</div>
<div>
<a href="http://www.netadmin.com.tw/article_content.aspx?sn=1111010003">http://www.netadmin.com.tw/article_content.aspx?sn=1111010003</a>
</div>
<div id="content-publish">
2011/11/8
</div>
<div id="content-subtitle">
<h2>???????????</h2>
</div>
<div id="content-subject">
<h1>VMware vSphere 5?????</h1>
</div>
<div id="content-editor">
???
</div>
<div id="content-brief">
???????????????????????????????????????????VMware???????????????7?????vSphere 5?????????????????????????????????????VM?????????????????
</div>
<div id="content-text">
??????????????VMware???7?????vSphere 5????8?????????
<p>
?????????????????????????????????????????vSphere??????????????????????????????????????????vSphere 5?
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="350">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214521101.png" border="0" /></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>vSphere 5??????</span>
</p>
<p>
??vSphere for Enterprise???Standard?Enterprise?Enterprise Plus????????vSphere 4?Advanced Edition???for SMB?????????Essentials?Essentials Plus?????
</p>
<p>
?????????vRAM Licensing Model????????????????????????CPU?????????????????vSphere 5???vRAM Entitlements?
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214522601.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>? vSphere 5???????????????????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
vSpher 5?????????vRAM Entitlements????????vSphere Edition??????CPU?????vRAM????????????vRAM Pool????????????????????VMs????vRAM??????Pool???????????License???vRAM Pool????
</p>
<p>
?????vRAM limit per CPU???????????????????????????????????????????????????????vRAM Entitlements?????????????????????????vTax???
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214523301.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>? ?????vRAM Entitlement?????????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
VMware?????????????????????????vRAM????????VM?vRAM?????vRAM Pool???????96GB??????????License???
</p>
<p>
??????????vSphere Hypervisor???32GB?????????????????vRAM???????????VMware View??VMs????vRAM Entitlements????
</p>
<p>
<span>ESXi??????</span>
</p>
<p>
???ESXi Only?Image Builder???????????
</p>
<p>
<span>ESXi Only</span>
</p>
<p>
vSphere 5?????ESX??????ESXi?ESX????Service Console???COS??????????????ESXi?????Hypervisor?????????remote CLI??????????????????????ESXi??????????
</p>
<p>
ESXi?????ESX????????ESXi??????????ESXi????vSphere Hypervisor??????????????????????????????ESXi hosts??vCenter???????????????????????
</p>
<p>
<span>Image Builder</span>
</p>
<p>
vSphere 5?Image Builder????????ESXi?????????????????Server?????Installation Images????????????ESXi?
</p>
<p>
?????VIBs?VMware Installation Bundles???????????????Patchs?Drivers?????ESXi image???????????????Auto Deploy????????????????????ESXi host??????
</p>
<p>
<span>Auto Deploy Server</span>
</p>
<p>
Auto Deploy Server?????????????PXE Server?DHCP Server??TFTP Server??????????????????????PXE??????DHCP??IP???TFTP Server?????Image???????????????????
</p>
<p>
??????????????ESXi hosts???vCenter?????Host Profile?????ESXi host?????????????USB?SD??????????RAM???
</p>
<p>
???ESXi???Server??????????Stateless???????????ESXi Hypervisor?????????????????????????????????Reload?Image???????????????????ESXi???????????????????????????????????????
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214524201.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>?Auto Deploy???????????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>Firewall</span>
</p>
<p>
???????????vmnic?Virtual Switch????????????vmknic??????????????ESX Firewall?????????????vSphere Client???????Firewall?????ESX???ESXi????????command????????????????????????????ESXi???????CLI??????
</p>
<p>
<span>Shell</span>
</p>
<p>
????Command Line Interface???esxcli?????esxcfg Command??????4.1??TSM?Tech Support Mode????????????????????????????????
</p>
<p>
VMware?vSphere 5?????????CLI??????????????????????????????????
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214525001.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>?esxcli???????????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>SSD Swap Cache</span>
</p>
<p>
?????VM????????????????????????????????????????????VM???VMware??TPS?Memory Ballooning?Memory Compression?4.1???????????VMs??????????????????????????
</p>
<p>
????????????Memory???????????Hypervisor????Swapping???????????????????????????????????VM???????????????????????????VM?????
</p>
<p>
vSphere 5????????Swap?????SSD???SSD?????????????????VMkernel Swap??????
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="200">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214525801.png" border="0" /></td>
</tr>
<tr>
<td><span>?SSD Swap Cache???????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>?????VM</span>
</p>
<p>
??????VM?????????????????
</p>
<p>
<span>? Virtual Hardware 8?</span>?????????????????????????????32?Virtual CPUs??1TB???????????????Mission Critical Application???????????vSphere 4?Virtual Hardware Version 7???8?Virtual CPUs??????255GB??
</p>
<p>
<span>? ???3D?????????????????</span>
</p>
<p>
<span>? VM??USB 3.0????????EFI?</span>??????vSphere client?????USB??????VM??????USB????ESXi host?????EFI?Guest OS????Boot Options??EFI???BIOS?
</p>
<p>
<span>? ??Multicore vCPUs????????</span>??????????????CPU????Guest OS???????Virtual CPU?Virtual SMP????????????????????????VM????vCPU?????????????????????????MultiCore Virtual CPUs???VM???????????????CPU???????Cores?????4.1????????????????vSphere 5??????????
</p>
<p>
<span>? vNUMA?</span>????????????????CPU????????????????NUMA?????????????????????????????????????????????????Inter-connect?????vNUMA?????????NUMA?????Guest OS????NUMA?????????????????
</p>
<p>
<span>? Guest OS?????Mac OS X Server v10.6?Snow Leopard??</span>???Apple Xserve system 3.1????
</p>
<p>
<span>? ???VMware Tools?Virtual Hardware???</span>??vSphere 4?VM?????VMware Tools?Virtual Hardware????ESXi 5?host??????????????VM?????
</p>
<p>
<span>vCenter????????</span>
</p>
<p>
??vCenter???????????vSphere Web Client?vCenter Appliance?vCenter Server Heartbeat 6.4?????????
</p>
<p>
<span>vSphere Web Client</span>
</p>
<p>
??????Web Access?????????vCenter??VM?????????????????????????????vSwitch???vMotion??
</p>
<p>
??VMware?Adobe Flex????????Web Client????IE 7?Firefox 3.5??????????vCenter??Web?????????????????vSphere???????????????????
</p>
<p>
<span>vCenter Appliance</span>
</p>
<p>
VMware??????Linux???vCenter???vSphere 5???VA????????vCenter Appliance?????????????OVF?Import?ESXi?????????vCenter?????????????????Windows OS??????
</p>
<p>
???????Linux vCenter??Update Manager?vCenter Linked Mode????vCenter Server Heartbeat???DB2???????5?hosts?50?VMs?????Remote DB????Oracle?
</p>
<p>
<span>vCenter Server Heartbeat 6.4</span>
</p>
<p>
vCenter???vSphere???????VMware?????????????????vCenter?????????ESXi?VM?????????????????????
</p>
<p>
???vCenter Server?????????????????vCenter Server Heartbeat??????????????????????????????vCenter Downtime????
</p>
<p>
vCenter Server Heartbeat 6.4??Windows AD??Active?Passive Server???????????Virtual IP???vCenter??????????vSphere Client???Alerts?Events?
</p>
<p>
<span>?????????????</span>
</p>
<p>
????NetFlow?Port Mirror?Network I/O Control Enhancement?????????
</p>
<p>
<span>NetFlow</span>
</p>
<p>
vSphere 5????vDS?????NetFlow???????????????Collector????????????VMs?hosts?????Traffic???Intra-host???VM?VM??Inter-host VM Traffic?VM???host?VM???VM to Physical Traffic?VM?????????????NetFlow?????PortGroup Level?Port Level?Uplink Level?
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214530601.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>?NetFlow???????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>Port Mirror</span>
</p>
<p>
Port Mirror????????????????Switch Port??????????????????????Switch Port?
</p>
<p>
????????vSwitch port?Ingress?Egress???Traffic???????VM?vmknic?uplink port???????????????????????????NetFlow????vDS?????
</p>
<p>
<span>Network I/O Control Enhancement</span>
</p>
<p>
???????Network Traffic?????????????????????????????????????
</p>
<p>
NetIOC???????Network Resource Pool?????????????VM Traffic?Management Traffic?iSCSI Traffic?NFS Traffic?FT Traffic?vMotion Traffic?User-defined Traffic?Replication Traffic??????Network I/O Control??Limits?Shares??????
</p>
<p>
<span>??????????</span>
</p>
<p>
vSphere 5???????????????VMFS-5?Storage vMotion?Storage DRS?Storage I/O Control?FCoE Software Initiator?iSCSI Software Initiator Enhancements?vStorage API for Array Integration Enhancements???
</p>
<p>
<span>VMFS-5</span>
</p>
<p>
?????VMFS-3???????VMFS Volume??????64TB?????Extend????VMDK????2TB????Pass-through RDM????2TB?Unified Files Block Size???????????1MB file block size?
</p>
<p>
????VMFS-3???VMFS-5?????????????????VM?????????????????????????VMFS???????????????file block size??????????8k sub-blocks?????????????VMware???????VMFS-5 Volume???VM?????
</p>
<p>
<span>Storage vMotion</span>
</p>
<p>
Storage vMotion??VM?????????????????????????????????????????Snapshot?VM???Storage vMotion??????vSphere 5????????????Storage DRS????????
</p>
<p>
<span>Storage DRS</span>
</p>
<p>
??vSphere 5????????????????????DRS???Cluster??VM????????????????VM?????
</p>
<p>
?CPU?Memory?????????DRS?????VM????????????Storage DRS??????????????????????????
</p>
<p>
??????????????????????????????????I/O??????????????????VM Virtual Disk???????
</p>
<p>
Storage DRS??Initial Placement?Ongoing Balacing???????????Storage vMotion??????????????Datastore Cluster????VM??????????????????????????????I/O??????
</p>
<p>
<span>Storage I/O Control</span>
</p>
<p>
??????SIOC?????VM?Disk Shares?????ESX(i) Server??????????I/O queue??????????????Host Level??????????????
</p>
<p>
?vSphere 4.1?????SIOC????VM??Datastore????I/O Shares?Limits?????QoS???????vSphere 5????NFS Datastore????SIOC?
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214531401.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>???SIOC??????????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>FCoE Software Initiator</span>
</p>
<p>
vSphere 4?????????????FCoE Adapter?Fibre Channel over Ethernet???vSphere 5???????????FCoE Software Initiator?????????????????FCoE??????????????FCoE Adapter???????FCoE???????
</p>
<p>
<span>iSCSI Software Initiator Enhancements</span>
</p>
<p>
vSphere 4??iSCSI MPIO???Storage Multipathing?????Command Line??????iSCSI Port Binding??????vSphere??iSCSI?????????????
</p>
<p>
vSphere 5?????????????????????vSphere Client????GUI???????vSphere?iSCSI Multipathing?
</p>
<p>
<span>vStorage API for Array Integration Enhancements</span>
</p>
<p>
VAAI??vSphere 4.1???????????Storage vMotion?FT??????Fault Tolerence??VM??????eagerzeroedthick????VM provisioning???????CPU?Memory?????????????????????????
</p>
<p>
vSphere 5.0??VAAI???NFS Full Copy???????NFS???????VAAI??Storage Array?Offload????ESXi hosts???I/O???NFS?????VM?????????
</p>
<p>
<span>VASA</span>
</p>
<p>
vStorage API for Storage Awareness?????????????vCenter????????????????Storage??????????????????Storage DRS???VM??????????????
</p>
<p>
????????Storage?????????VASA?vCenter??????????????????????????????????????????
</p>
<p>
<span>Profile Driven Storage</span>
</p>
<p>
?????VM???????????VM files?Datastore?????????VM???????????Datastore?
</p>
<p>
??????????????LUNs???????????????????????????????????????????????????
</p>
<p>
?????????????????Datastore?????????????VM?Storage DRS?????VM??????????Storage Profile???????????VM??????????VM?Datastore???????
</p>
<p>
Profile Driven Storage??Storage DRS??????????????????????????????VM?????????????
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214532201.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>?Profile-Driven Storage???????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>??????????</span>
</p>
<p>
vSphere 5?????????????????vDR 2.0?vSphere Storage Appliance?vSphere HA????????????
</p>
<p>
<span>vDR 2.0</span>
</p>
<p>
VMware Data Recovery??VA???????????Appliance?????????????????????vDR?????64bit Virtual Appliance???E-mail Report?????????????????????vDR????vCenter?????????????????????vDR?ESXi???????????VMDK?NFS?CIFS???????????????????????
</p>
<p>
<span>vSphere Storage Appliance</span>
</p>
<p>
??????????????SAN????????????????Storage???HA??????????FC SAN?iSCSI?NFS??Shared Storage????????vMotion?vSphere HA?DRS????VSA????1.0?????????ESXi host?????Local??VMFS-5?NFS??????????ESXi hosts?????Shared Storage?
</p>
<p>
??VSA???2?Nodes?3?Nodes??????????????NFS Datastore??????????????host????????????????Shared Storage????????????VSA???SMB???????????????????????????????????????????????????????
</p>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="440">
<tbody>
<tr>
<td><img src="http://www.netadmin.com.tw/images/news/NP111101000311110214533001.png" border="0" width="440" /></td>
</tr>
<tr>
<td><span>?VSA?????????VMware???</span></td>
</tr>
</tbody>
</table>
</center>
<p>
<span>vSphere HA</span>
</p>
<p>
????????VMware????HA?????vSphere HA????Master host?????Slave hosts???????5?Primary hosts?????????????????????Primary hosts?????????????????
</p>
<p>
vSphere HA?Heartbeat????Network????Heartbeat Datastore?????????????vSphere HA???????DNS???????DNS???????????vSphere HA??????
</p>
<p>
<span>Fault Tolerance</span>
</p>
<p>
??vSphere HA?????VMs?????hosts?????????????VM?????????????????????Fault Tolerance?????????????????FT?vSphere 4??????????CPU?Guest OS???????????????????vSphere 5?FT??????????????
</p>
<p>
??FT?Primary VM?Secondary VM?????ESXi host??????????????????????????Support List??Windows?Linux??????FT?????????????????????????OS Level?????????????????????????????
</p>
<p>
<span>Application Monitoring API</span>
</p>
<p>
??Fault Tolerance??????MSCS?????????????Application-aware?????????????????????????????????????????Application Monitoring API??????????Application????????vSphere?????Guest OS??????????????
</p>
<p>
<span>SRM 5</span>
</p>
<p>
SRM?Site Recovery Manager?????????????????vCenter SRM Plug-in??????????????????????
</p>
<p>
??????????????Storage??SRM 5???vSphere Replication????Hypervisor?????????????????Host Based?????????????????Storage??????????????????????????????????????????
</p>
</div>
Linux
2011-12-17T16:37:52Z
scottwu
-
VMware nested guests 64bit VM ??
http://life.different.idv.tw/scottwu/80.htm
<p>
??????VMware??????nested VM, ??????, ????????VM->VM->VM??????????.
</p>
<p>
????????
</p>
<p>
??????????
</p>
<p>
??? ??? ??? ???<br />
ESXI5 vESXI5 Win2k8 Hyper-V ??????x64?CentOS VM
</p>
<p>
Intel VT-x nested 64 64bit ?????
</p>
<p>
?????????????????OS, ??hyper-v???????
</p>
<p>
??? ??? ??? ???<br />
ESXI5 vESXI5 vvESXI5 ??????32bit?CentOS VM
</p>
<p>
Intel VT-x nested 64 64bit ???? 32bit
</p>
<p>
10.10.100.10 10.10.100.20 10.10.100.30 10.10.100.51
</p>
<p>
??????:<br />
G6950 x1<br />
16G ECC RAM<br />
300G HDD
</p>
<p>
?????
</p>
<ol>
<li>??ESXI5</li>
<li>Configure a vSwitch and/or Port Group to have <strong>Promiscuous Mode</strong> enabled</li>
<li>Create a second Port Group named “Trunk” with VLAN ID <strong>All (4095)</strong> if you want to use VLANs on virtual hypervisors</li>
<li>Log in to Tech Support Mode (iLO or ssh) and make the following tweak to enable nested 64-bit guests
<pre>
echo 'vhv.allow = "TRUE"' >> /etc/vmware/config
</pre>
</li>
<pre>
Vsphere 5.1????vhv.enable = "true"
</pre>
<li>
<pre>
?????????????nested guest??
</pre>
</li>
</ol>
<pre>
?????
</pre>
<ol>
<li>????Guest OS: Linux / Red Hat Enterprise Linux 5 (64-bit)?VM</li>
<li>?????edit, ??????????other , ESXI5<br />
CPU/MMU Virtualization: Use Intel VT … EPT… ( bottom radio button)</li>
<li>??vESXI5 </li>
<li>??????vESXI5?????64bit?????</li>
</ol>
<p>
?????
</p>
<ol>
<li>???????????vvESXI5, ?? cpu??????virtualzation, ???????????VM??????</li>
<li>vvESXI5??????????????32bit????????
</li>
</ol>
<pre>
<a href="http://www.vcritical.com/2011/07/vmware-vsphere-can-virtualize-itself/#comment-12442">http://www.vcritical.com/2011/07/vmware-vsphere-can-virtualize-itself/#comment-12442</a>
</pre>
<pre>
<a href="http://www.virtuallyghetto.com/2011/07/how-to-enable-support-for-nested-64bit.html">http://www.virtuallyghetto.com/2011/07/how-to-enable-support-for-nested-64bit.html</a>
<a href="http://tw.myblog.yahoo.com/max6886/article?mid=206">http://tw.myblog.yahoo.com/max6886/article?mid=206</a>
</pre>
<pre>
<h3 style="color: #cc0000">Nesting "Other" Hypervisors</h3><br />
For those of you
who feel inclined to run other hypervisors such as Hyper-V, you can do so with
latest release of ESXi 5.1. The process if very straight forward just like
running nested ESXi host.<br />
<br />
<strong style="color: #cc0000">Step 1</strong> - Create a
Virtual Hardware 9 VM and select the appropriate guestOS. In this example, I
selected <strong>Windows Server 2012 (64-bit)</strong> as the guestOS version. <br />
<br />
<strong style="color: #cc0000">Step 2</strong> - Enable VHV under the CPU section if you wish
to create and run nested 64-bit VMs under Hyper-V<br />
<br />
<strong style="color: #cc0000">Step 3</strong> - You will need to add one additional .vmx
parameter which tells the underlying guestOS (Hyper-V) that it is not running as
a virtual guest which in fact it really is. The parameter is
<strong><em>hypervisor.cpuid.v0 = FALSE</em></strong>
</pre>
Linux
2011-12-17T13:27:05Z
scottwu
-
SMC PBX10 IP PBX ? SMP DSP200??
http://life.different.idv.tw/scottwu/79.htm
<p>
?????????SMC?IP PBX PBX10, ???????????????, ????????????, ???????.
</p>
<p>
??????
</p>
<p>
1. ??????, ????????? IP PBX???IP, ???????IP . ???????, ?????????????, ?????pptp?VPN, ??????.
</p>
<p>
2. ?????????, ????FXO 1, 2 ??
</p>
<p>
3. ???????????????
</p>
<p>
????????, ?????????????????????
</p>
<p>
Device , ???? Device ID, ????extension number???.
</p>
<p>
?????autoconfig????edit device, ????Vendor Pefix , ????dsp200, MAC address ????mac??. DTMF????SIP Info, ???RFC2833?????????.
</p>
<p>
Call Route , ????????????, ??????????. ??????????.
</p>
<p>
default, 9. , strip digits 1, ????9?????? 909xxxxxxxx ??????????.
</p>
<p>
Trunk ????????????, ???????????, ???1/2???????, Analog PSTN Trunk Management ????Type= FXO Ports 1,2??? , DID type ? None DID, ??????ivr list???, ????????????. Usergroup ???????group
</p>
<p>
4. ACD Automatic Call Distribution ??<br />
????Agent login/logout???, ????????????????????, ??????????????, ????????.<br />
??????????<br />
??????, ???????????, ??????????????
</p>
<p>
5. ????ivr????, ?????????. 8Hz 16bits mono wav??
</p>
life
2011-11-10T12:23:15Z
scottwu
-
Apache2 ??mod_rewrite?????????????????
http://life.different.idv.tw/scottwu/78.htm
<p>
</p>
<p>
<a href="http://www.howtoforge.com/apache2-how-to-redirect-users-to-mobile-or-normal-web-site-based-on-device-using-mod_rewrite">http://www.howtoforge.com/apache2-how-to-redirect-users-to-mobile-or-normal-web-site-based-on-device-using-mod_rewrite</a>
</p>
<p>
??mod_rewrite?????????????????
</p>
<p>
</p>
<p>
Since the massive rise of smartphones and tablets like the iPhone, iPad, Android phones and tablets, BlackBerries, etc. you might have considered creating a mobile version of your web site. This tutorial explains how to configure Apache to serve the mobile version of your web site if the visitor uses a mobile device, and the normal version if the visitor uses a normal desktop PC. This can be achieved with Apache's rewrite module.
</p>
<p>
I do not issue any guarantee that this will work for you!
</p>
<p>
</p>
<h3>1 Preliminary Note</h3>
<p>
In this tutorial, my "normal" web site is accessible under <span><em><span style="font-family: Courier New">http://www.example.com</span></em></span> and <span><em><span style="font-family: Courier New">http://example.com</span></em></span>, while my mobile site is called <span><em><span style="font-family: Courier New">http://m.example.com</span></em></span>. These vhosts already exist on my system, so I'm not going to cover how to set them up.
</p>
<p>
</p>
<h3>2 Enabling mod_rewrite</h3>
<p>
First you have to make sure that the Apache module mod_rewrite is enabled. On Debian/Ubuntu, you can enable it like this:
</p>
<p class="command">
a2enmod rewrite
</p>
<p>
Restart Apache afterwards - for Debian/Ubuntu, the command is:
</p>
<p class="command">
/etc/init.d/apache2 restart
</p>
<p>
</p>
<h3>3 Configuring Apache To Allow Rewrite Rules In .htaccess Files</h3>
<p>
My "normal" web site <span><em><span style="font-family: Courier New">www.example.com</span></em></span>/<span><em><span style="font-family: Courier New">example.com</span></em></span> has the vhost configuration file <span><em><span style="font-family: Courier New">/etc/apache2/sites-available/www.example.com.vhost</span></em></span> and the document root <span><em><span style="font-family: Courier New">/var/www/www.example.com/web</span></em></span>.
</p>
<p>
My mobile site <span><em><span style="font-family: Courier New">m.example.com</span></em></span> has the vhost configuration file <span><em><span style="font-family: Courier New">/etc/apache2/sites-available/m.example.com.vhost</span></em></span> and the document root <span><em><span style="font-family: Courier New">/var/www/www.example.com/mobile</span></em></span>.
</p>
<p>
I want to place the rewrite rules for each site in an <span><em><span style="font-family: Courier New">.htaccess</span></em></span> file (although it is also possible to place the rewrite rules directly in the vhost configuration file). Therefore I must first modify our vhost configurations so that both <span><em><span style="font-family: Courier New">.htaccess</span></em></span> files are allowed to contain rewrite directives. We can do this with the line <span><em><span style="font-family: Courier New">AllowOverride All</span></em></span> (which allows <span><em><span style="font-family: Courier New">.htaccess</span></em></span> to override all settings in the vhost configuration):
</p>
<p class="command">
vi /etc/apache2/sites-available/www.example.com.vhost
</p>
<p>
<table align="center" bgcolor="#cccccc" border="1" cellpadding="2" cellspacing="0" width="90%">
<tbody>
<tr>
<td>
<pre>
[...]
</pre>
<pre>
<Directory /var/www/www.example.com/web/>
</pre>
<pre>
AllowOverride All </Directory>[...]
</pre>
</td>
</tr>
</tbody>
</table>
</p>
<p class="command">
vi /etc/apache2/sites-available/m.example.com.vhost
</p>
<p>
<table align="center" bgcolor="#cccccc" border="1" cellpadding="2" cellspacing="0" width="90%">
<tbody>
<tr>
<td>
<pre>
<Directory /var/www/www.example.com/mobile/>
AllowOverride All </Directory>[...]
</pre>
</td>
</tr>
</tbody>
</table>
</p>
<p>
Restart Apache afterwards:
</p>
<div align="center" id="adrectangleb_flex" style="width: 300px; height: 252px">
<div align="center" id="adrectangleb" style="width: 300px; height: 252px">
</div>
</div>
<div align="center" id="adibm300x600_flex" style="width: 300px; height: 5px">
<div align="center" id="adibm300x600" style="width: 0px; height: 5px">
</div>
</div>
<p class="command">
/etc/init.d/apache2 restart
</p>
<p>
</p>
<h3>4 Creating Rewrite Rules</h3>
<p>
Now let's create the rewrite rules for the "normal" web site <span><em><span style="font-family: Courier New">www.example.com</span></em></span>/<span><em><span style="font-family: Courier New">example.com</span></em></span> that will redirect all users of mobile devices to the mobile version <span><em><span style="font-family: Courier New">m.example.com</span></em></span> - I focus on the relevant devices/user agents here which are Android, Blackberry, googlebot-mobile (Google's mobile search bot), IE Mobile, iPad, iPhone, iPod, Opera Mobile, PalmOS, and WebOS.
</p>
<p>
The <span><em><span style="font-family: Courier New">/var/www/www.example.com/web/.htaccess</span></em></span> file looks as follows:
</p>
<p class="command">
vi /var/www/www.example.com/web/.htaccess
</p>
<p>
<table align="center" bgcolor="#cccccc" border="1" cellpadding="2" cellspacing="0" width="90%">
<tbody>
<tr>
<td>
<pre>
<IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos" [NC]RewriteRule ^$ http://m.example.com/ [L,R=302]</IfModule>
</pre>
</td>
</tr>
</tbody>
</table>
</p>
<p>
For our mobile web site <span><em><span style="font-family: Courier New">m.example.com</span></em></span>, the rewrite rules that redirect all users that don't use a mobile device to our "normal" web site <span><em><span style="font-family: Courier New">www.example.com</span></em></span>/<span><em><span style="font-family: Courier New">example.com</span></em></span> look as follows - I've simply negated the <span><em><span style="font-family: Courier New">RewriteCond</span></em></span> condition from the previous <span><em><span style="font-family: Courier New">.htaccess</span></em></span> file:
</p>
<p class="command">
vi /var/www/www.example.com/mobile/.htaccess
</p>
<p>
<table align="center" bgcolor="#cccccc" border="1" cellpadding="2" cellspacing="0" width="90%">
<tbody>
<tr>
<td>
<pre>
<IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{HTTP_USER_AGENT} "!(android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos)" [NC]RewriteRule ^$ http://www.example.com/ [L,R=302]</IfModule>
</pre>
</td>
</tr>
</tbody>
</table>
</p>
<p>
That's it! Now you can do some testing, e.g. visit <span><em><span style="font-family: Courier New">m.example.com</span></em></span> with a normal desktop browser:
</p>
<p>
<img src="http://static.howtoforge.com/images/apache_redirect_users_to_mobile_or_normal_website_based_on_device_using_mod_rewrite/1.png" width="228" height="90" />
</p>
<p>
If all goes well, you should be redirected to <span><em><span style="font-family: Courier New">www.example.com</span></em></span>:
</p>
<p>
<img src="http://static.howtoforge.com/images/apache_redirect_users_to_mobile_or_normal_website_based_on_device_using_mod_rewrite/2.png" width="372" height="163" />
</p>
<p>
Now test with a mobile device (I use an Android phone here) and go to <span><em><span style="font-family: Courier New">www.example.com</span></em></span>:
</p>
<p>
<img src="http://static.howtoforge.com/images/apache_redirect_users_to_mobile_or_normal_website_based_on_device_using_mod_rewrite/3.png" width="363" height="603" />
</p>
<p>
You should be redirected to <span><em><span style="font-family: Courier New">m.example.com</span></em></span>:
</p>
<p>
<img src="http://static.howtoforge.com/images/apache_redirect_users_to_mobile_or_normal_website_based_on_device_using_mod_rewrite/4.png" width="364" height="604" />
</p>
<p>
</p>
Linux
2011-09-07T15:24:18Z
scottwu
-
??Linux VM ????eth0???????
http://life.different.idv.tw/scottwu/77.htm
<span>
<p class="MsoNormal" style="text-indent: 24pt; margin: 0cm 0cm 0pt">
<span style="font-size: small"><span style="font-family: '????', 'serif'">?Virtualbox????centos6, ?????????</span><span><span style="font-family: Calibri">centos6 VM</span></span><span style="font-family: '????', 'serif'">????????????????????</span><span><span style="font-family: Calibri">eth0</span></span><span style="font-family: '????', 'serif'">??????. ???????VM??????????mac.</span></span>
</p>
<span><span style="font-family: Calibri; font-size: small"> </span></span>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">
<span style="font-family: '????', 'serif'"><span style="font-size: small"></span></span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">
<span style="font-family: '????', 'serif'"><span style="font-size: small">??????????????, ???????</span></span>
</p>
<p class="MsoNormal" style="text-indent: 6pt; margin: 0cm 0cm 0pt">
<span style="font-size: small"><span><span style="font-family: Calibri">1.</span></span><span style="font-family: '????', 'serif'">??????????????</span><span><span style="font-family: Calibri">dmesg</span></span><span style="font-family: '????', 'serif'">????????????</span></span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">
<span><span style="font-size: small"><span style="font-family: Calibri"><span> </span><span> </span>udev: renamed network interface eth0 to eth1</span></span></span>
</p>
<span><span style="font-family: Calibri; font-size: small"> </span></span>
<p class="MsoNormal" style="text-indent: 6pt; margin: 0cm 0cm 0pt">
<span style="font-size: small"><span><span style="font-family: Calibri">2.</span></span><span style="font-family: '????', 'serif'">??</span><span><span style="font-family: Calibri">/proc/net/dev</span></span><span style="font-family: '????', 'serif'">????????</span><span><span style="font-family: Calibri">eth1</span></span></span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">
<span><span style="font-size: small"><span style="font-family: Calibri"><span> </span><span> </span>eht1:<span> 3</span>0634<span> </span>820<span> </span>0<span> </span>0<span> </span>0<span> </span>0<span> </span>0<span> </span>0<span> </span>4401<span> </span>36<span> </span>0<span> </span>0<span> </span>0<span> </span>0<span> </span>0<span> </span>0</span></span></span>
</p>
<span><span style="font-family: Calibri; font-size: small"> </span></span>
<p class="MsoNormal" style="text-indent: 6pt; margin: 0cm 0cm 0pt">
<span style="font-size: small"><span><span style="font-family: Calibri">3.</span></span><span style="font-family: '????', 'serif'">??</span><span><span style="font-family: Calibri">lspci</span></span><span style="font-family: '????', 'serif'">???????????</span></span>
</p>
<p class="MsoNormal" style="text-indent: 12pt; margin: 0cm 0cm 0pt">
<span><span style="font-family: Calibri; font-size: small">02:01.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (ewv 10)</span></span>
</p>
<span><span style="font-family: Calibri; font-size: small"> </span></span>
<p class="MsoNormal" style="text-indent: 24pt; margin: 0cm 0cm 0pt">
<span style="font-size: small"><span style="font-family: '????', 'serif'">???????????????????</span><span><span style="font-family: Calibri">eth0</span></span><span style="font-family: '????', 'serif'">??????</span><span><span style="font-family: Calibri">eth0</span></span><span style="font-family: '????', 'serif'">????????????</span></span>
</p>
<p class="MsoNormal" style="text-indent: 12pt; margin: 0cm 0cm 0pt">
<span><span style="font-family: Calibri; font-size: small">ifup eth0</span></span>
</p>
<p class="MsoNormal" style="text-indent: 12pt; margin: 0cm 0cm 0pt">
<span><span style="font-family: Calibri; font-size: small">Device eth0 does not seem to be present, delaying initialization.</span></span>
</p>
<span><span style="font-family: Calibri; font-size: small"> </span></span>
<p class="MsoNormal" style="text-indent: 24pt; margin: 0cm 0cm 0pt">
<span style="font-size: small"><span style="font-family: '????', 'serif'">??????????????????</span><span><span style="font-family: Calibri">http://blog.xuite.net/happyman/tips/16199196</span></span><span style="font-family: '????', 'serif'">??????????????????????</span><span><span style="font-family: Calibri">udev: renamed network interface eth0 to eth1</span></span><span style="font-family: '????', 'serif'">??????????</span><span><span style="font-family: Calibri">MAC Address</span></span><span style="font-family: '????', 'serif'">????</span><span><span style="font-family: Calibri">eth0</span></span><span style="font-family: '????', 'serif'">????</span><span><span style="font-family: Calibri">udev</span></span><span style="font-family: '????', 'serif'">????????</span><span><span style="font-family: Calibri">eth1</span></span><span style="font-family: '????', 'serif'">???????towns??????</span><span><span style="font-family: Calibri">/etc/sysconfig/network-scripts/ifcfg-eth0</span></span><span style="font-family: '????', 'serif'">???????????????????????????????towns??</span><span><span style="font-family: Calibri">VM</span></span><span style="font-family: '????', 'serif'">??????“??</span><span><span style="font-family: Calibri">Fedora 10</span></span><span style="font-family: '????', 'serif'">?</span><span><span style="font-family: Calibri">VM</span></span><span style="font-family: '????', 'serif'">”?????</span><span><span style="font-family: Calibri">MAC Address</span></span><span style="font-family: '????', 'serif'">?????????????????????????</span></span>
</p>
<span><span style="font-family: Calibri; font-size: small"> </span></span>
<p class="MsoNormal" style="text-indent: 24pt; margin: 0cm 0cm 0pt">
<span style="font-size: small"><span style="font-family: '????', 'serif'">??????</span><span><span style="font-family: Calibri">/etc/udev/rules.d/70-persistent-net.rules</span></span><span style="font-family: '????', 'serif'">???????????</span><span><span style="font-family: Calibri">server</span></span><span style="font-family: '????', 'serif'">??????????</span><span><span style="font-family: Calibri">MAC Address</span></span><span style="font-family: '????', 'serif'">????</span></span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">
<span style="font-size: small"><span style="font-family: '????', 'serif'"></span></span>
</p>
<span><span style="font-family: Calibri; font-size: small"> </span></span>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">
<span style="font-size: small"><span style="font-family: '????', 'serif'">??Centos6 </span><span style="font-family: '????', 'serif'">??????</span><span><span style="font-family: Calibri">70-persistent-net.rules</span></span><span style="font-family: '????', 'serif'">?????</span><span><span style="font-family: Calibri">ubuntu</span></span><span style="font-family: '????', 'serif'">????????????????</span></span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt">
<span style="font-size: small"><span style="font-family: '????', 'serif'"></span></span>
</p>
</span>
Linux
2011-08-18T16:48:06Z
scottwu
-
Windows 7 ??SSD ?????
http://life.different.idv.tw/scottwu/76.htm
<span style="font-size: 130%"><span style="font-size: medium">??? SSD ????, ??????????, SSD ??????????????, ?????? Windows 7 ????, ????? XP ??????????????(???????? TRIM ??)???????, ?? Windows 7 ???????? SSD(????), ?????????????????, SSD ????????????????<br />
<br />
??????????? SSD ??????, ?? SSD ???????????????(TRIM/GC)????????, ??? HDD ?????????<br />
<br />
<strong>Windows 7 SSD ??????:</strong><br />
</span>
<ul>
<li><strong>Disk alignment ?? (SSD)</strong><br />
??? WinHEC 2008 ????? <a href="http://download.microsoft.com/download/F/A/7/FA70E919-8F82-4C4E-8D02-97DB3CF79AD5/COR-T558_Shu_Taiwan.pdf"><span style="color: #448888">Windows 7 Enhancements for Solid-State Drives</span></a> ????? SSD ? 4KB page size(block) alignment ????????(NTFS ???)???????; ?????? SSD ? NTFS ?????, ??????? 4KB page ???????????? block ????, ???????????? ~20% ? ~40% ??(???), ??? SSD align ??, ???? disk align ??(?? Paragon Alignment Tool)?????? SSD ?? partition align ?????, ???????????<a href="http://2.bp.blogspot.com/_psz7_ogUdbQ/TD1q6rG0VSI/AAAAAAAAA44/947-jgOMLrM/s1600/w7_ssd_align.png"><img src="http://2.bp.blogspot.com/_psz7_ogUdbQ/TD1q6rG0VSI/AAAAAAAAA44/947-jgOMLrM/s320/w7_ssd_align.png" border="0" /></a>??? SSD ???????????????, ????????????????????????</li><br />
<li><strong>AHCI (SSD/HDD)</strong><br />
AHCI ??????? SSD ?????? AS SSD ??? 4KQD32 ?? ~400%??(NCQ ???????????), ??? SSD ?????(????? Intel RST AHCI)??, ?? AHCI ???????; ?? OS ???? IDE ????, ??? Windows 7 ???? registry ??(????????), ???????? BIOS ?? AHCI?<br />
<br />
<em>?? Windows 7 ???? AHCI:</em><br />
?????????? regedit ??????<br />
??<br />
<code>[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci]</code><br />
??<br />
? start ??? 3 ??? 0<a href="http://1.bp.blogspot.com/_psz7_ogUdbQ/TEfmkALTbUI/AAAAAAAAA7A/geg1JbOBsv4/s1600/msahci_service.png"></a>???????? <a href="http://support.microsoft.com/kb/922976"><span style="color: #448888">KB922976</span></a></li><br />
<li><strong>TRIM (SSD)</strong><br />
Windows 7 ?? TRIM ??????? SSD, ???? Block?Page ? Cell ??????????????, ???????????????????? pre-erase ? block ???????(burst write)????, TRIM ????? SSD ?????? block/cell ??????? invalid, ????????, ?????????????????????<a href="http://3.bp.blogspot.com/_psz7_ogUdbQ/TD1ry68AdRI/AAAAAAAAA5I/LoTvhpDkidc/s1600/w7_ssd_trim.png"><img src="http://3.bp.blogspot.com/_psz7_ogUdbQ/TD1ry68AdRI/AAAAAAAAA5I/LoTvhpDkidc/s320/w7_ssd_trim.png" border="0" /></a>???? TRIM ??, ?? OS????? ? SSD ????, ?? OS ???? TRIM ???? Windows 7, Windows Server 2008 R2 ? Linux(kernel 2.6.33), ? Windows 7 ?? Microsoft generic AHCI/ATA ???? ? Intel ? RST 9.6 ??? TRIM, ???? SSD ???????? TRIM, ???????? firmware ????, ???? SSD ????????? TRIM ??, ????? SSD ??? GC(Garbage Collection)????(??????????, ?? Intel X25-M G1, ? JMF612 ?????), ?? SSD ?????????<br />
<br />
<em>Windows 7 ?? TRIM ????:</em><br />
?????????? cmd ??????<br />
????:<br />
<code>fsutil behavior query DisableDeleteNotify</code><br />
?? <code>DisableDeleteNotify</code> = 0 ??? OS ? TRIM ?????</li><br />
<li><strong>Superfetch/Prefetch (SSD)</strong><br />
Superfetch ??????????????????????, ????? HDD ??????????, ? SSD ?????????, Superfetch/Prefetch ??????????????, SSD ??????, ?? Superfetch/Prefetch ?????; Windows 7 ? services ???? Superfetch ???????, ??????? <code>c:\windows\prefetch</code> ?????????<br />
<br />
<em>?? Superfetch ??:</em><br />
?????????? services.msc ??<br />
?? Superfetch ??<br />
?? ? "??" ?? "??"?"??" ??? "??"<a href="http://3.bp.blogspot.com/_psz7_ogUdbQ/TEfnWlXXYmI/AAAAAAAAA7I/Vh3DlG2qN80/s1600/superfetch_disable.png"></a><br />
?? Superfetch ????, ?????? Prefetch ? ReadyBoost ???</li><br />
<li><strong>Defragment (SSD)</strong><br />
?????????????????, defragment(????)?????? HDD ???????????????????, ????????? SSD ????????????????<br />
Windows 7 ? disk defragment(????)?????, ????????????(?????? SSD ?????????)<br />
<br />
<em>??????????:</em><br />
?????????? dfrgui.exe(disk defragment)<br />
? "????" ?????? "?????"<a href="http://3.bp.blogspot.com/_psz7_ogUdbQ/TEfoDbfseYI/AAAAAAAAA7Q/g0DOeOemFRY/s1600/autodefrag_disabled.png"></a></li>
</ul>
<br />
<strong>Windows 7 SSD/HDD ????????:</strong><br />
<ul>
<li><strong>Windows Search Indexing</strong><br />
Windows 7 ? Search Indexing ????????????, ??????????????????????, ????????????????, ??????????????????????, ???????????, ? Search Indexing ???????? background ???, ? SSD ??????????, ? HDD ??????????? idle ??? spin down?<br />
<br />
<em>???? Windows Search ?? Indexing:</em><br />
?????????? services.msc ??<br />
?? Windows Search ??<br />
?? ? "??(????)" ?? "??" ??? "??"<br />
<a href="http://4.bp.blogspot.com/_psz7_ogUdbQ/TEfolmQU2jI/AAAAAAAAA7Y/HyJCgc5FUsc/s1600/windows_search_disable.png"></a>???? Search Indexing ?????? Search ??, ?????????????????</li><br />
<li><strong>LastAliveStamp(Heartbeat)</strong><br />
???! ?????????????????, Windows 2003 ? 2000 ???????????(2000 pro ? xp ? 0), ?? dirty shutdown event ?? last alive time ??; ? Windows 7(Vista)??????????<br />
<code>C:\Windows\ServiceProfiles\LocalService\AppData\Local\lastalive1.dat</code> ? <code>lastalive0.dat</code><br />
??, ?????????????, ???...OS ????????????? idle ??, ?????(????)?? Windows 7 ??????????? XP ?????????<br />
<br />
<em>?????? dirty shutdown event ??????? TimeStampInterval ??:</em><br />
?????????? regedit ??????<br />
?? <code>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability]</code><br />
?? <code>TimeStampInterval</code> ??? 1 ?? 0<br />
<code>"TimeStampInterval"=dword:00000000<br />
</code><a href="http://2.bp.blogspot.com/_psz7_ogUdbQ/TEfpHbPHhmI/AAAAAAAAA7g/cnw4UtU9Rvs/s1600/timestampinterval.png"></a>??????</li><br />
<li><strong>Windows Customer Experience Improvement Program</strong><br />
Microsoft ????????(CEIP), ???????????, ??????????????????; ? Windows 7 ??????????????, ????????????????, ????????????; ??????????????, ?????????????????, ????????????????????????, ???????????????????????? background ???????, ????????????(??????????)?<br />
<br />
<em>?? Windows 7 ?????????</em><br />
?????????? gpedit.msc ?????????<br />
?? ?????? -> ?? -> ???????? -> ????????<br />
? "?? Windows ????????" ??? "??"<a href="http://2.bp.blogspot.com/_psz7_ogUdbQ/TEfrLOB0bXI/AAAAAAAAA7w/vHJzmdTLTn0/s1600/ceip.png"></a><br />
<a href="http://3.bp.blogspot.com/_psz7_ogUdbQ/TEfrKt0jRfI/AAAAAAAAA7o/gbv19q3J-00/s1600/ceip_disable.png"></a>??? Windows ?????????????????? CEIP, ?????????????, ????? CEIP ????????<br />
<br />
<em>?? CEIP ????</em><br />
?????????? taskschd.msc ?????<br />
?? ???????? -> Microsoft -> Windows -> Customer Experience Improvement Program<br />
????????? Consolidator KernelCeipTask UsbCeip ??<a href="http://1.bp.blogspot.com/_psz7_ogUdbQ/TEfr95e03QI/AAAAAAAAA74/QGlNZOTjeYA/s1600/w7_schedule_ceip.png"></a><br />
<em>?? RAC ?????????(CEIP ??)</em><br />
?????????? taskschd.msc ?????<br />
?? ???????? -> Microsoft -> Windows -> RAC<br />
??????? RacTask ??<a href="http://3.bp.blogspot.com/_psz7_ogUdbQ/TEfr-T4Ep9I/AAAAAAAAA8A/e-821MbCMjk/s1600/w7_schedule_rac.png"></a></li><br />
<li><strong>ReadyBoot tracing log</strong><br />
Windows 7(? Vista)????? bootup ???????? tracing ????, ??? ReadyBoot tracing ??? <code>c:\windows\prefetch\readyboot\readyboot.etl</code> ?????? 20MB, ????????, ?????? tracing log ?????????????, ?????? bootup ????, ???????????? tracing log?<br />
<br />
<em>?? ReadyBoot tracing:</em><br />
?????????? perfmon ?????<br />
?? ????????? --> ?????????? --> ?? ReadyBoot<br />
? ReadyBoot ? "??????" ??????? "???"(Enabled), ?? "??" ??<a href="http://3.bp.blogspot.com/_psz7_ogUdbQ/TEfstMEJfWI/AAAAAAAAA8I/k1jOfkKT2nE/s1600/readyboot_tracing.png"></a><br />
<a href="http://1.bp.blogspot.com/_psz7_ogUdbQ/TEfstmqB44I/AAAAAAAAA8Q/gsA_cn-_j1Q/s1600/readyboot_disable.png"></a>??? readyboot.etl ???????, ?????????????? ReadyBoot tracing?</li><br />
<li><strong>pagefile.sys</strong><br />
???? pagefile.sys ?????????????????????, ????! ??????????????????????????????????; ????? SSD ????, pagefile.sys ???????????????, ??? SSD ??????, ?????? RAMDISK(?? Superspeed RAMDISK)?????? HDD ????? pagefile.sys?</li><br />
<li><strong>Windows Temp</strong><br />
Windows ???????, ??????????????????, ???????????, ?????? Temp ?????? RAMDISK, ?????? SSD(? HDD) ????????????, ???????????????????????????</li><br />
<li><strong>UserProfile</strong><br />
?????????????????????(????), ?????????????????, ???(???)???????????????????<br />
<br />
??: <a href="http://moonwulk.blogspot.com/2010/06/windows-7-userprofile.html"><span style="color: #448888">????? Windows 7 ????? UserProfile ??????</span></a></li><br />
<li><strong>hiberfil.sys</strong><br />
Windows 7 ????????????? ACPI ??, ?????????Hibernate ??, ??????????????????????? <code>C:\hiberfil.sys</code>, ?? 4GB ?????? 2.5GB ?????, ??????????? notebook, ????????????????????????? SSD ???, ???????????????????, ?? Windows 7 ??????Sleep ??(?? XP ? Standby)??????????????<br />
<br />
<em>??????:</em><br />
???????? ?? cmd ??????<br />
??????????<br />
<code>powercfg -h off</code></li><br />
<li><strong>IPv6 & IP Helper Service</strong><br />
? Vista ??????? OS ?? IPv6(????????6), ???????????? IPsec ??????, Windows 7 ????? IPv6 ?????? HomeGroup ????, ? IPv6 ? HomeGroup(????)??????, ??? HomeGroup ??????? IPv6; ????????????????????????????????? IPv6(??? ISP ?????), ??/??????????????????????, IPv6 ??????????????, ????????????????(???, ???, switch, ???, ???, ADSL??)???????? IPv6, Windows 7 ? HomeGroup ????? Windows 7 ?????, ??????????????????????(Windows File & Printer Sharing), ?? IPv6 ????????????(???????????????? IPv4 ? IPv6), ?????? HomeGroup ??????????, ???? IPv6 ???????<br />
<br />
???????? <a href="http://support.microsoft.com/kb/929852/en-us"><span style="color: #448888">KB929852</span></a><br />
<br />
<em>?? Windows 7 ?? IPv6:</em><br />
?????????? regedit ??????<br />
????<br />
<code>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]</code><br />
????<br />
<code>"DisabledComponents"=dword:ffffffff</code><br />
<a href="http://1.bp.blogspot.com/_psz7_ogUdbQ/TEfucDEH7lI/AAAAAAAAA8Y/lhTVb7Ebr_M/s1600/ipv6_disable.png"><img src="http://1.bp.blogspot.com/_psz7_ogUdbQ/TEfucDEH7lI/AAAAAAAAA8Y/lhTVb7Ebr_M/s320/ipv6_disable.png" border="0" /></a><br />
<em>?? IP-Helper ??:</em><br />
IPv6 ????, ????? IPv6 ???????? IPv6 ?????(?? ??? IPv6 ????? IPv4 ???), ??????? background ???????????, ?? Resource Monitor ??????????????, ??? IPv6 ?? IP-Helper ????, ????????????<br />
?????????? services.msc ??<br />
?? IP-Helper<br />
?? ? "??" ?? "??" ??? "??"<a href="http://4.bp.blogspot.com/_psz7_ogUdbQ/TEfucU7ZOcI/AAAAAAAAA8g/4u-rmkfPGP0/s1600/ip_helper_disable.png"></a><br />
???????? IPv6 ??<a href="http://1.bp.blogspot.com/_psz7_ogUdbQ/TEfuc13oBnI/AAAAAAAAA8o/_zTAFfoxl8o/s1600/ipv6_off.png"></a></li><br />
<li><strong>DisablePagingExecutive</strong><br />
??????? Kernel ? ???? ???????, ????? Windows ???????????????? Kernel ? ???? ??? swap ? pagefile ??, ?????????????????; ??, ?????(???DIY)??????????? 2GB(?? 4GB) ??, ??????????????, ????????????????, ?? kernel ? driver ??? page swap ???????????, ?? page swap ? IO ??, ?? OS ????????? paging ????<br />
<blockquote>
Description<br />
Specifies whether user-mode and kernel-mode drivers and kernel-mode system code can be paged to disk when not in use.<br />
0 Drivers and the kernel can be paged to disk as needed.<br />
1 Drivers and the kernel must remain in physical memory.
</blockquote>
<br />
?????? 2GB(?? 4GB) ???????<br />
<em>???? kernel paging ??:</em><br />
?????????? regedit ??????<br />
??<br />
<code>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]</code><br />
?? <code>DisablePagingExecutive</code> ??? 0 ?? 1<br />
<code>"DisablePagingExecutive"=dword:00000001</code><br />
<br />
??????<br />
<br />
?? TechNET ???? <a href="http://technet.microsoft.com/en-us/library/cc959492.aspx"><span style="color: #448888">DisablePagingExecutive</span></a></li>
</ul>
<ul>
???: <a href="http://moonwulk.blogspot.com/2010/07/windows-7-ssd.html">http://moonwulk.blogspot.com/2010/07/windows-7-ssd.html</a><br />
</ul>
</span>
Windows
2011-05-31T16:35:47Z
scottwu
-
???????Linux???????
http://life.different.idv.tw/scottwu/75.htm
<p>
???????Linux???????
</p>
<p>
<br />
????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????? ????????????????????????????web??????????????Linux?????????????????????Linux?????????????????<br />
</p>
<p>
FAI: <a href="http://fai-project.org/download/">http://fai-project.org/download/</a>
</p>
<p>
FAI (Fully Automatic Installation) ??????? Linux ????????????????????????????????? chroot ?????????????????????
</p>
<p>
</p>
<p>
M23 <a href="http://sourceforge.net/projects/m23/files/">http://sourceforge.net/projects/m23/files/</a>
</p>
<p>
m23 ??????????????? Debian Linux??? m23 ???????????????????????????????????
</p>
<p>
xCAT <a href="http://xcat.sourceforge.net/yum/download.html">http://xcat.sourceforge.net/yum/download.html</a>
</p>
<p>
xCAT (Extreme Cloud Administration Toolkit) ?????????????????????????????????????????????xCAT ???? IBM xSeries ?? Linux Cluster ????????????????????????????????????????????????????
</p>
<p>
Spacewalk ???Linux?Solaris??????????
</p>
<p>
<a href="http://spacewalk.redhat.com/download.html">http://spacewalk.redhat.com/download.html</a>
</p>
<p>
</p>
<p>
Cobbler ???????? Linux ?????????? Linux ???????????????????????????????????????
</p>
<p>
<a href="https://fedorahosted.org/cobbler/wiki/DownloadInstructions">https://fedorahosted.org/cobbler/wiki/DownloadInstructions</a>
</p>
<p>
</p>
<p>
openQRM???????????????????????????????????????Nagios?VMware?openQRM????????????????????????????????????????????
</p>
<p>
<a href="http://www.openqrm.com/?q=node/110">http://www.openqrm.com/?q=node/110</a>
</p>
<p>
</p>
<p>
</p>
<p>
??????? Linux????(<a href="http://www.linuxidc.com/">www.linuxidc.com</a>) ?????<a href="http://www.linuxidc.com/Linux/2010-10/29488.htm">http://www.linuxidc.com/Linux/2010-10/29488.htm</a>
</p>
Linux
2011-05-31T13:21:00Z
scottwu