默认安装的Oracle Enterprise Linux 6,在用户登录以后,通常会有以下警告: Last login: Tue Jun 19 16:52:19 2012 from 192.168.2.1 -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) 并且在执行oerr等命令的时候,也会先产生警告,比如: $ oerr ora 10046 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = “UTF-8”, LANG = “en_US.UTF-8” are supported and installed…
Category: Operating System
How to use iperf to test network bandwith
测试Linux机器之间的网络互联带宽,有一个很简单的工具,iperf。 下载的是源码,编译过程如下: ./configure make make install 安装完毕以后,iperf的路径: # which iperf /usr/local/bin/iperf 然后在需要测试的两台Linux机器上,一台启动服务器模式。 # iperf -s ———————————————————— Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ———————————————————— 另外一台启动客户端模式,其中IP地址为启动服务器模式的机器的IP,稍等片刻,即可出现测试结果。 # iperf -c 192.168.0.19 ———————————————————— Client connecting to 192.168.0.19, TCP port 5001 TCP window size: 16.0 KByte (default) ———————————————————— [ 3] local 192.168.0.18 port 16265…
How to Install apk to Android Devices from Mac OS X
在Mac OS X中我们可以使用Android SDK直接将下载到电脑中的apk文件安装到Android设备中。 1. 下载Android SDK,可以从Android Developers网站直接下载,也可以通过MacPorts安装。我采取后一种方式。 $ sudo port install android Password: —> Fetching archive for android —> Attempting to fetch android-16_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/android —> Fetching android —> Attempting to fetch android-sdk_r16-macosx.zip from http://dl.google.com/android —> Attempting to fetch android-appbundles-r89422.tar.gz from http://distfiles.macports.org/android —> Verifying checksum(s) for android —> Extracting android —> Configuring android —>…