﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>语源科技BlogJava-himalayas</title><link>http://www.blogjava.net/himalayas/</link><description /><language>zh-cn</language><lastBuildDate>Sun, 03 May 2026 08:14:48 GMT</lastBuildDate><pubDate>Sun, 03 May 2026 08:14:48 GMT</pubDate><ttl>60</ttl><item><title>install jar to repository</title><link>http://www.blogjava.net/himalayas/archive/2014/06/12/414667.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Thu, 12 Jun 2014 09:23:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2014/06/12/414667.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/414667.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2014/06/12/414667.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/414667.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/414667.html</trackback:ping><description><![CDATA[<div>mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=6.0.0 -Dpackaging=jar -Dfile=C:\ojdbc6.jar</div><img src ="http://www.blogjava.net/himalayas/aggbug/414667.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2014-06-12 17:23 <a href="http://www.blogjava.net/himalayas/archive/2014/06/12/414667.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>python logging 基于配置文件的使用方式</title><link>http://www.blogjava.net/himalayas/archive/2012/12/17/393082.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Mon, 17 Dec 2012 02:07:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2012/12/17/393082.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/393082.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2012/12/17/393082.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/393082.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/393082.html</trackback:ping><description><![CDATA[<div>配置文件名 log4p.conf<br /><br />[loggers]</div><div>keys=root</div><div></div><div>[handlers]</div><div>keys=TimeHandler_info,TimeHandler_debug,TimeHandler_error</div><div></div><div>[formatters]</div><div>keys=simpleFormatter</div><div></div><div>[logger_root]</div><div>level=DEBUG</div><div>handlers=TimeHandler_info,TimeHandler_debug,TimeHandler_error</div><div></div><div>[handler_TimeHandler_info]</div><div>class=logging.handlers.TimedRotatingFileHandler</div><div>level=INFO</div><div>formatter=simpleFormatter</div><div>args=('/tmp/workengine/logs/workengine-info.log','H',6, 'w')</div><div></div><div>[handler_TimeHandler_debug]</div><div>class=logging.handlers.TimedRotatingFileHandler</div><div>level=DEBUG</div><div>formatter=simpleFormatter</div><div>args=('/tmp/workengine/logs/workengine-debug.log','H',6 ,'w')</div><div></div><div>[handler_TimeHandler_error]</div><div>class=logging.handlers.TimedRotatingFileHandler</div><div>level=ERROR</div><div>formatter=simpleFormatter</div><div>args=('/tmp/workengine/logs/workengine-error.log','D',1, 'w')</div><div></div><div></div><div>[formatter_simpleFormatter]</div><div>format=%(asctime)s %(levelname)-5s %(lineno)d %(message)s<br /><br />加载配置：<br />注意：在项目进程入口的地方加入这一句就可以了，如果系统有命令行的方式调用py脚本，要在被调脚本开始的地方重新加入本行<br /><div>logging.config.fileConfig("log4p.conf")<br /><br />使用：<br /><div>logger=logging.getLogger()</div><div>logger.info("info")</div><div>logger.error("error")</div><div>logger.debug("debug")</div></div></div><img src ="http://www.blogjava.net/himalayas/aggbug/393082.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2012-12-17 10:07 <a href="http://www.blogjava.net/himalayas/archive/2012/12/17/393082.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql 5.5.19 主从配置+读写分离</title><link>http://www.blogjava.net/himalayas/archive/2012/01/10/368205.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Tue, 10 Jan 2012 06:00:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2012/01/10/368205.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/368205.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2012/01/10/368205.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/368205.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/368205.html</trackback:ping><description><![CDATA[<div><div><span style="color: #00ff00; ">master:10.13.120.236</span></div><div><span style="color: #00ff00; ">slave:10.13.120.233</span></div><div><span style="color: #ff0000; ">步骤一：安装master</span></div><div>下载mysql-5.1.60-linux-x86_64-glibc23.tar.gz&nbsp;放到/home/a/soft/下</div><div>shell&gt;sudo groupadd mysql&nbsp;</div><div>shell&gt;sudo useradd -r -g mysql mysql&nbsp;</div><div>shell&gt;cd /home/a/soft/&nbsp;</div><div>shell&gt;tar zxvf mysql-5.1.60-linux-x86_64-glibc23.tar.gz</div><div>shell&gt;cd /usr/local/&nbsp;</div><div>shell&gt;sudo ln -s /home/a/soft/mysql-5.1.60-linux-x86_64-glibc23 mysql&nbsp;</div><div>shell&gt; cd mysql&nbsp;</div><div>shell&gt;sudo chown -R mysql .&nbsp;</div><div>shell&gt;sudo chgrp -R mysql .&nbsp;</div><div>shell&gt;sudo scripts/mysql_install_db --user=mysql&nbsp;</div><div>shell&gt;sudo chown -R root .&nbsp;</div><div>shell&gt;sudo chown -R mysql data&nbsp;</div><div># Next command is optional&nbsp;</div><div>shell&gt;sudo cp support-files/my-medium.cnf /etc/my.cnf&nbsp;</div><div>shell&gt;sudo bin/mysqld_safe --user=mysql &amp;&nbsp;</div><div># Next command is optional&nbsp;</div><div>shell&gt;sudo cp support-files/mysql.server /etc/init.d/mysql.server</div><div></div><div>#配置my.cnf</div><div>####################################</div><div>binlog-do-db=phpdb</div><div>binlog-ignore-db=mysql</div><div>log-bin=/usr/local/mysql/log/updatelog</div><div>log-slave-updates</div><div>slave-skip-errors=all</div><div>#####################################</div><div></div><div>$sudo service mysql.server start</div><div>$mysql -uroot -p</div><div>改变当前数据库为mysql：</div><div>mysql&gt;use mysql</div><div>设置从本地主机登录的root帐号密码：</div><div>mysql&gt;set password for root@localhost=password('root');</div><div>删除匿名帐号：&nbsp;</div><div>mysql&gt;delete from user where user='';</div><div>删除密码为空的帐号：</div><div>mysql&gt;delete from user where password='';</div><div>删除允许非localhost主机登录的帐号：</div><div>mysql&gt;delete from user where host&lt;&gt;'localhost';</div><div>执行下面的命令使更改生效：</div><div>mysql&gt;flush privileges;&nbsp;</div><div>mysql&gt;update user set host = '%' where user = 'root';</div><div>mysql&gt;create database phpdb;</div><div>mysql&gt;use phpdb;</div><div>mysql&gt;create table person(id int(10) primary key auto_increment,name varchar(100) not null);</div><div>#dump主库数据</div><div>mysql&gt;flush tables with read lock;</div><div>$mysqldump -h127.0.0.1 -p3306 -uroot -p phpdb &gt; /mnt/phpdb.sql&nbsp;</div><div>（/mnt目录是我自己做的NFS，就是方便不同机器间使用文件，不用nfs也可以）</div><div>mysql&gt; unlock tables;</div><div>mysql&gt;use mysql</div><div>mysql&gt;GRANT REPLICATION SLAVE ON *.* TO 'slave1_user'@'10.13.120.233' IDENTIFIED BY 'root';</div><div></div><div>$sudo service mysql.server restart</div><div>mysql&gt; show master status;</div><div>+------------------+----------+--------------+------------------+</div><div>| File &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | Position | Binlog_Do_DB | Binlog_Ignore_DB |</div><div>+------------------+----------+--------------+------------------+</div><div>| mysql-bin.000006 | &nbsp; &nbsp; 2366 | phpdb &nbsp; &nbsp; &nbsp; &nbsp;| mysql &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</div><div>+------------------+----------+--------------+------------------+</div><div>1 row in set (0.00 sec)</div><div><br /><span style="color: #ff0000; ">步骤二：安装slave</span></div><div></div><div>下载mysql-5.1.60-linux-x86_64-glibc23.tar.gz&nbsp;放到/home/a/soft/下</div><div>shell&gt;sudo groupadd mysql&nbsp;</div><div>shell&gt;sudo useradd -r -g mysql mysql&nbsp;</div><div>shell&gt;cd /home/a/soft/&nbsp;</div><div>shell&gt;tar zxvf mysql-5.1.60-linux-x86_64-glibc23.tar.gz</div><div>shell&gt;cd /usr/local/&nbsp;</div><div>shell&gt;sudo ln -s /home/a/soft/mysql-5.1.60-linux-x86_64-glibc23 mysql&nbsp;</div><div>shell&gt; cd mysql&nbsp;</div><div>shell&gt;sudo chown -R mysql .&nbsp;</div><div>shell&gt;sudo chgrp -R mysql .&nbsp;</div><div>shell&gt;sudo scripts/mysql_install_db --user=mysql&nbsp;</div><div>shell&gt;sudo chown -R root .&nbsp;</div><div>shell&gt;sudo chown -R mysql data&nbsp;</div><div># Next command is optional&nbsp;</div><div>shell&gt;sudo cp support-files/my-medium.cnf /etc/my.cnf&nbsp;</div><div>shell&gt;sudo bin/mysqld_safe --user=mysql &amp;&nbsp;</div><div># Next command is optional&nbsp;</div><div>shell&gt;sudo cp support-files/mysql.server /etc/init.d/mysql.server</div><div></div><div>#配置my.cnf</div><div>#####################################################</div><div>server-id &nbsp; &nbsp; &nbsp; = 2</div><div>#master-host &nbsp; &nbsp; = &nbsp; mysql_master</div><div>#master-user &nbsp; &nbsp; = &nbsp; slave1_user</div><div>#master-password = &nbsp; root</div><div>#master-port &nbsp; &nbsp; = 3306</div><div>#master-connect-retry=60</div><div>replicate-ignore-db=mysql</div><div>replicate-do-db=phpdb</div><div>log-slave-update</div><div>slave-skip-errors=all</div><div>#####################################################</div><div></div><div>$sudo service mysql.server start</div><div>$mysql -uroot -p</div><div>改变当前数据库为mysql：</div><div>mysql&gt;use mysql</div><div>设置从本地主机登录的root帐号密码：</div><div>mysql&gt;set password for root@localhost=password('root');</div><div>删除匿名帐号：&nbsp;</div><div>mysql&gt;delete from user where user='';</div><div>删除密码为空的帐号：</div><div>mysql&gt;delete from user where password='';</div><div>删除允许非localhost主机登录的帐号：</div><div>mysql&gt;delete from user where host&lt;&gt;'localhost';</div><div>执行下面的命令使更改生效：</div><div>mysql&gt;flush privileges;&nbsp;</div><div>mysql&gt;update user set host = '%' where user = 'root';</div><div>mysql&gt;create database phpdb;</div><div>mysql&gt;use phpdb;</div><div></div><div>$mysqldump -h127.0.0.1 -p3306 -uroot -p phpdb &lt; /mnt/phpdb.sql &nbsp; <br />（mysql&gt;source /mnt/phpdb.sql）</div><div>mysql&gt;change master to master_host='10.13.120.236',&nbsp;</div><div>mysql&gt;master_user='slave1_user',&nbsp;</div><div>mysql&gt;master_password='root',</div><div>mysql&gt;master_port=3306,</div><div>mysql&gt;master_connect_retry=60,</div><div>mysql&gt;MASTER_LOG_FILE='mysql-bin.000006',</div><div>mysql&gt;MASTER_LOG_POS=107;</div><div></div><div>mysql&gt;slave start;</div><div></div><div>mysql&gt; show slave status\G;</div><div>*************************** 1. row ***************************</div><div>Slave_IO_State: Waiting for master to send event</div><div>Master_Host: 10.13.120.236</div><div>Master_User: slave1_user</div><div>Master_Port: 3306</div><div>Connect_Retry: 60</div><div><span style="color: #ff0000; ">Master_Log_File: mysql-bin.000006</span></div><div><span style="color: #ff0000; ">Read_Master_Log_Pos: 2366</span></div><div>Relay_Log_File: canggu-OptiPlex-760-relay-bin.000002</div><div>Relay_Log_Pos: 2512</div><div>Relay_Master_Log_File: mysql-bin.000006</div><div><span style="color: #ff0000; ">Slave_IO_Running: Yes</span></div><div><span style="color: #ff0000; ">Slave_SQL_Running: Yes</span></div><div>Replicate_Do_DB: phpdb</div><div>Replicate_Ignore_DB: mysql</div><div>Replicate_Do_Table:&nbsp;</div><div>Replicate_Ignore_Table:&nbsp;</div><div>Replicate_Wild_Do_Table:&nbsp;</div><div>Replicate_Wild_Ignore_Table:&nbsp;</div><div>Last_Errno: 0</div><div>Last_Error:&nbsp;</div><div>Skip_Counter: 0</div><div>Exec_Master_Log_Pos: 2366</div><div>Relay_Log_Space: 2682</div><div>Until_Condition: None</div><div>Until_Log_File:&nbsp;</div><div>Until_Log_Pos: 0</div><div>Master_SSL_Allowed: No</div><div>Master_SSL_CA_File:&nbsp;</div><div>Master_SSL_CA_Path:&nbsp;</div><div>Master_SSL_Cert:&nbsp;</div><div>Master_SSL_Cipher:&nbsp;</div><div>Master_SSL_Key:&nbsp;</div><div>Seconds_Behind_Master: 0</div><div>Master_SSL_Verify_Server_Cert: No</div><div>Last_IO_Errno: 0</div><div>Last_IO_Error:&nbsp;</div><div>Last_SQL_Errno: 0</div><div>Last_SQL_Error:&nbsp;</div><div>Replicate_Ignore_Server_Ids:&nbsp;</div><div><span style="color: #ff0000; ">Master_Server_Id: 1</span></div><div>1 row in set (0.00 sec)</div><div></div><div>ERROR:&nbsp;</div><div>No query specified<br /><br /></div><div>mysql&gt;slave stop;</div><div>mysql&gt;change master to master_host='10.13.120.236',&nbsp;</div><div>master_user='slave1_user',&nbsp;<br />master_password='root',<br />master_port=3306,<br />master_connect_retry=60,<br /><span style="color: #ff0000; ">MASTER_LOG_FILE='mysql-bin.000006',<br /></span><span style="color: #ff0000; ">MASTER_LOG_POS=107;</span></div><div><span style="color: #ff0000; "><br /><br />配置读写分离<br /><br />下载</span>mysql-proxy-0.8.2-linux-glibc2.3-x86-32bit.tar.gz<span style="color: #ff0000; "><br /></span><span style="color: #ff0000; ">解压并cp到/usr/local/mysql-proxy<br />在</span>/usr/local/mysql-proxy/bin下创建文件mysql-proxy.cnf添加如下内容：<br />[mysql-proxy]<div><div>daemon=true</div><div>admin-address=127.0.0.1:4041</div><div>proxy-address=:3306</div><div>admin-username=admin</div><div>admin-password=admin</div><div>admin-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/admin-sql.lua</div><div>proxy-read-only-backend-addresses=10.13.120.233:3306</div><div>proxy-backend-addresses=10.13.120.236:3306</div><div>proxy-lua-script=/usr/local/mysql-proxy/share/doc/mysql-proxy/rw-splitting.lua</div><div>log-file=/usr/local/mysql-proxy/logs/log-debug.log</div><div>log-level=debug</div></div><div><br /><br />启动代理：<br />/usr/local/mysql-proxy/bin/mysql-proxy &nbsp;--daemon&nbsp;--defaults-file=mysql-proxy.cnf</div><span style="color: #ff0000; "><br /><br /><br /><br /></span></div></div><img src ="http://www.blogjava.net/himalayas/aggbug/368205.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2012-01-10 14:00 <a href="http://www.blogjava.net/himalayas/archive/2012/01/10/368205.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu11+  配置NFS（服务器 + 客户端）</title><link>http://www.blogjava.net/himalayas/archive/2012/01/09/368130.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Mon, 09 Jan 2012 05:02:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2012/01/09/368130.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/368130.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2012/01/09/368130.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/368130.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/368130.html</trackback:ping><description><![CDATA[NFS服务器 &nbsp;10.13.120.232<br />NFS客户端 &nbsp; &nbsp;10.13.120.233 &nbsp; &nbsp;10.13.120.236 &nbsp; &nbsp;......<br /><br /><div>------------------步骤一：NFS服务器配置------------------<br /><br /><div>$sudo apt-get install nfs-kernel-server<br />$sudo mkdir /home/a/nfsroot<br />$sudo chmod 777 /home/a/nfsroot<br /><br />$sudo vim /etc/exports&nbsp; &nbsp;<br />#添加如下内容：<div>/home/a/nfsroot &nbsp;*(rw,sync,no_root_squash)</div><br />$sudo vim /etc/hosts.deny<br />#添加如下内容<br /><div><div>portmap:ALL</div><div>lockd:ALL</div><div>mountd:ALL</div><div>rquotad:ALL</div><div>statd:ALL</div></div><div><br /><br />$sudo vim /etc/hosts.allow<br />#添加如下内容<br /><div><div>portmap: 10.13.120.</div><div>lockd: 10.13.120.</div><div>rquotad: 10.13.120.</div><div>mountd: 10.13.120.</div><div>statd: 10.13.120.</div></div><div><br />$sudo dpkg-reconfigure portmap</div>选择 &nbsp;：NO<br /><br /><div>$sudo /etc/init.d/nfs-kernel-server restart</div><div>$sudo /etc/init.d/portmap restart<br /><br />#在服务器上本地挂载测试&nbsp;</div><div>$sudo mount localhost:/home/a/nfsroot &nbsp;/mnt</div><div><div>$ df /mnt</div><div>文件系统 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1K-块 &nbsp; &nbsp; &nbsp; &nbsp;已用 &nbsp; &nbsp; 可用 已用% 挂载点</div><div>localhost:/home/a/nfsroot</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;147794432 &nbsp;47781888 &nbsp;92505088 &nbsp;35% /mnt</div></div>-----------------------步骤二：NFS客户端配置--------------------------------<br /><br /><div>$ sudo apt-get install nfs-common</div><div>$ sudo &nbsp;mount -t nfs 10.13.120.232:/home/a/nfsroot /mnt</div><div><div><br />$ df /mnt</div><div>文件系统 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1K-块 &nbsp; &nbsp; &nbsp; &nbsp;已用 &nbsp; &nbsp; 可用 已用% 挂载点</div><div>10.13.120.232:/home/a/nfsroot</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;147794432 &nbsp;47781888 &nbsp;92504576 &nbsp;35% /mnt</div></div></div></div></div><img src ="http://www.blogjava.net/himalayas/aggbug/368130.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2012-01-09 13:02 <a href="http://www.blogjava.net/himalayas/archive/2012/01/09/368130.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql-5.1.60-linux-x86_64-glibc23  安装</title><link>http://www.blogjava.net/himalayas/archive/2012/01/01/367700.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Sun, 01 Jan 2012 08:02:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2012/01/01/367700.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/367700.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2012/01/01/367700.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/367700.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/367700.html</trackback:ping><description><![CDATA[<div><pre style="margin-top: 0px; margin-bottom: 0px; padding: 2px; border-width: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; font-family: 'Courier New', Courier, fixed, monospace; max-width: 720px; line-height: 20px; background-color: #ffffff;">下载<strong style="background-color: transparent; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><div style="display: inline !important; ">mysql-5.1.60-linux-x86_64-glibc23</div></code></strong><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">.tar.gz放到<strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">/home/a/soft/下</code></em></code></strong><br /></code></strong></code></strong>shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">groupadd mysql</code></strong> <br />shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">useradd -r -g mysql mysql</code></strong> <br />shell&gt;<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">cd </code></strong><strong style="background-color: transparent; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">/home/a/soft/</code></em></code></strong> <br />shell&gt;<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">tar zxvf <strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><div style="display: inline !important; ">mysql-5.1.60-linux-x86_64-glibc23</div></code></strong><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">.tar.gz<br /></code></strong><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><div style="display: inline !important; "><pre style="font-weight: normal; margin-top: 0px; margin-bottom: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: 'Courier New', Courier, fixed, monospace; max-width: 720px; display: inline !important; ">shell&gt;cd /usr/local/</pre></div></code></strong><span style="font-size: 13px; "> </span><br /></code></strong>shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">ln -s <em>/home/a/soft/</em><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><div style="display: inline !important; "><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "><div style="display: inline !important; ">mysql-5.1.60-linux-x86_64-glibc23</div></code></strong><strong style="background-color: transparent; font-size: 13px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; "> mysql</code></strong><span style="font-size: 13px; "> <br /></span></code></strong></div></code></strong></code></strong>shell&gt; <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">cd mysql</code></strong> <br />shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; background-color: inherit; ">chown -R mysql .</code></strong> <br />shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-weight: bold; background-color: transparent; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; background-color: inherit; ">chgrp -R mysql .</code></strong> <br />shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">scripts/mysql_install_db --user=mysql</code></strong> <br />shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">chown -R root .</code></strong> <br />shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">chown -R mysql data</code></strong> <br />shell&gt;sudo <strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; "><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">cp support-files/my-medium.cnf /etc/my.cnf</code></strong> <br />#配置/etc/my.cnf<br />     ......<br /><span style="color: #333333; font-family: Arial; font-size: 14px; line-height: 26px; white-space: normal;">shell&gt;sudo <strong>./scripts/mysql_install_db --user=mysql</strong></span><br />shell&gt;sudo <strong style="margin: 0px; padding: 0px; border-width: 0px; outline: 0px; vertical-align: baseline; font-weight: bold; background-color: transparent;"><code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; color: inherit; font-family: 'Courier New', Courier, fixed, monospace; ">cp support-files/mysql.server /etc/init.d/mysql.server<br />$sudo service mysql.server start<br /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">$mysql -uroot -p</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">改变当前数据库为mysql：</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">mysql&gt;use mysql</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">设置从本地主机登录的root帐号密码：</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">mysql&gt;set password for root@localhost=password('root');</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">删除匿名帐号：&nbsp;</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">mysql&gt;delete from user where user='';</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">删除密码为空的帐号：</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">mysql&gt;delete from user where password='';</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">删除允许非localhost主机登录的帐号：</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">mysql&gt;delete from user where host&lt;&gt;'localhost';</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">执行下面的命令使更改生效：</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">mysql&gt;flush privileges;&nbsp;</div><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 19px; white-space: normal; background-color: #28557e;">mysql&gt;update user set host = '%' where user = 'root';</div></code></strong></pre></div><img src ="http://www.blogjava.net/himalayas/aggbug/367700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2012-01-01 16:02 <a href="http://www.blogjava.net/himalayas/archive/2012/01/01/367700.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux常用几种打包、压缩、解压命令，（备用）</title><link>http://www.blogjava.net/himalayas/archive/2011/12/19/366761.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Mon, 19 Dec 2011 07:22:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2011/12/19/366761.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/366761.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2011/12/19/366761.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/366761.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/366761.html</trackback:ping><description><![CDATA[<div><pre id="best-answer-content"  mb10"="" style="margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 22px; background-color: #fffcf6;">01-.tar格式 <br />解包：[＊＊＊＊＊＊＊]$ tar xvf FileName.tar <br />打包：[＊＊＊＊＊＊＊]$ tar cvf FileName.tar DirName（注：tar是打包，不是压缩！） <br /> 02-.gz格式 <br />解压1：[＊＊＊＊＊＊＊]$ gunzip FileName.gz <br />解压2：[＊＊＊＊＊＊＊]$ gzip -d FileName.gz <br />压 缩：[＊＊＊＊＊＊＊]$ gzip FileName  <br />03-.tar.gz格式 <br />解压：[＊＊＊＊＊＊＊]$ tar zxvf FileName.tar.gz <br />压缩：[＊＊＊＊＊＊＊]$ tar zcvf FileName.tar.gz DirName  <br />04-.bz2格式 解压1：[＊＊＊＊＊＊＊]$ bzip2 -d FileName.bz2 <br />解压2：[＊＊＊＊＊＊＊]$ bunzip2 FileName.bz2 <br />压 缩： [＊＊＊＊＊＊＊]$ bzip2 -z FileName  <br />05-.tar.bz2格式 <br />解压：[＊＊＊＊＊＊＊]$ tar jxvf FileName.tar.bz2 <br />压缩：[＊＊＊＊＊＊＊]$ tar jcvf FileName.tar.bz2 DirName  <br />06-.bz格式 <br />解压1：[＊＊＊＊＊＊＊]$ bzip2 -d FileName.bz <br />解压2：[＊＊＊＊＊＊＊]$ bunzip2 FileName.bz <br /> 07-.tar.bz格式 <br />解压：[＊＊＊＊＊＊＊]$ tar jxvf FileName.tar.bz  <br />08-.Z格式<br /> 解压：[＊＊＊＊＊＊＊]$ uncompress FileName.Z <br />压缩：[＊＊＊＊＊＊＊]$ compress FileName  <br />09-.tar.Z格式 <br />解压：[＊＊＊＊＊＊＊]$ tar Zxvf FileName.tar.Z <br />压缩：[＊＊＊＊＊＊＊]$ tar Zcvf FileName.tar.Z DirName  <br />10-.tgz格式 解压：[＊＊＊＊＊＊＊]$ tar zxvf FileName.tgz  <br />11-.tar.tgz格式 <br />解压：[＊＊＊＊＊＊＊]$ tar zxvf FileName.tar.tgz <br />压缩：[＊＊＊＊＊＊＊]$ tar zcvf FileName.tar.tgz FileName  <br />12-.zip格式 <br />解压：[＊＊＊＊＊＊＊]$ unzip FileName.zip <br />压缩：[＊＊＊＊＊＊＊]$ zip FileName.zip DirName <br /> 13-.lha格式 解压：[＊＊＊＊＊＊＊]$ lha -e FileName.lha <br />压缩：[＊＊＊＊＊＊＊]$ lha -a FileName.lha FileName  <br />14-.rar格式 <br />解压：[＊＊＊＊＊＊＊]$ rar a FileName.rar <br />压缩：[＊＊＊＊＊＊＊]$ rar e FileName.rar   <br />15-.war格式<br />解压：unzip project.war -d project<br /><br /></pre></div><img src ="http://www.blogjava.net/himalayas/aggbug/366761.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2011-12-19 15:22 <a href="http://www.blogjava.net/himalayas/archive/2011/12/19/366761.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MYSQL字段int/bigint类型查询返回的结果不同（bug）</title><link>http://www.blogjava.net/himalayas/archive/2011/11/30/365162.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Wed, 30 Nov 2011 01:49:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2011/11/30/365162.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/365162.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2011/11/30/365162.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/365162.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/365162.html</trackback:ping><description><![CDATA[<div><div>项目组的同学进来在使用mysql的时候发现了一个问题，具体内容如下：<br />MYSQL 版本 ： Server version: 5.1.48-log Source distribution<br /><img src="http://www.blogjava.net/images/blogjava_net/himalayas/mysql_bug.jpg" width="387" height="599" alt="" /><br /><br /><div><p style="margin-left:15.75pt"><strong><span style="font-size:14.0pt; font-family:宋体">咨询了</span></strong><strong><span style="font-size:14.0pt">DBA</span></strong><strong><span style="font-size:14.0pt;font-family:宋体">，我们发现在</span></strong><strong><span style="font-size:14.0pt">mysql</span></strong><strong><span style="font-size:14.0pt; font-family:宋体">进行值比较的时候</span></strong></p>  <p style="margin-left:15.75pt"><strong><span style="font-size:14.0pt;color:red">int</span></strong><strong><span style="font-size: 14.0pt;font-family:宋体;color:red">：使用</span></strong><strong><span style="font-size:14.0pt;color:red">decimal</span></strong><strong><span style="font-size: 14.0pt;font-family:宋体;color:red">类型比较（支持浮点数的比较）</span></strong></p>  <table border="0" cellspacing="0" cellpadding="0" style="margin-left:15.75pt;border-collapse:collapse;">  <tbody><tr>   <td width="590" valign="top" style="width:442.8pt;border:solid black 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt">   <p><strong>Arg_comparator::compare_decimal </strong></p>   <p><strong>Arg_comparator::compare_decimal   (this=0x121cc2b8) at item_cmpfunc.cc:1378</strong></p>   <p><strong>1378&nbsp;&nbsp;&nbsp; int   Arg_comparator::compare_decimal()</strong></p>   </td>  </tr> </tbody></table>  <p style="margin-left:15.75pt"><strong><span style="font-size:14.0pt">&nbsp;</span></strong></p>  <p style="margin-left:15.75pt"><strong><span style="font-size:14.0pt;color:red">bigint</span></strong><strong><span style="font-size: 14.0pt;font-family:宋体;color:red">：使用</span></strong><strong><span style="font-size:14.0pt;color:red">int</span></strong><strong><span style="font-size: 14.0pt;font-family:宋体;color:red">类型比较</span></strong></p>  <table border="0" cellspacing="0" cellpadding="0" style="margin-left:15.75pt;border-collapse:collapse;">  <tbody><tr>   <td width="590" valign="top" style="width:442.8pt;border:solid black 1.0pt;   padding:0cm 5.4pt 0cm 5.4pt">   <p><strong>Arg_comparator::compare_int_signed </strong></p>   <p><strong>Arg_comparator::compare_int_signed   (this=0x121cc2b8) at item_cmpfunc.cc:1457</strong></p>   <p><strong>1457&nbsp; int   Arg_comparator::compare_int_signed()</strong></p>   </td>  </tr> </tbody></table></div></div></div><img src ="http://www.blogjava.net/himalayas/aggbug/365162.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2011-11-30 09:49 <a href="http://www.blogjava.net/himalayas/archive/2011/11/30/365162.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>临时解决 cat 打开中文乱码</title><link>http://www.blogjava.net/himalayas/archive/2011/11/28/364973.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Mon, 28 Nov 2011 03:24:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2011/11/28/364973.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/364973.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2011/11/28/364973.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/364973.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/364973.html</trackback:ping><description><![CDATA[<div>cat test.txt | iconv -f GBK -t UTF-8</div><img src ="http://www.blogjava.net/himalayas/aggbug/364973.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2011-11-28 11:24 <a href="http://www.blogjava.net/himalayas/archive/2011/11/28/364973.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>取消SSH登录  输入密码的问题（问题已解决）</title><link>http://www.blogjava.net/himalayas/archive/2011/11/24/364723.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Thu, 24 Nov 2011 05:51:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2011/11/24/364723.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/364723.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2011/11/24/364723.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/364723.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/364723.html</trackback:ping><description><![CDATA[我的OS 是 Fedora16  我需要设置 ssh localhost 的时候不需要输入密码：
<br />我的设置方式为：
<br />ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
<br />
cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys
<br />这种方式在ubuntu11+下是有效的
但是在Fedora16 下  我  ssh  localhost的时候 还是要求必须要输入密码，请问我如何搞啊？<br /><br /><span style="color: red;">问题已经解决：（解决办法）</span><br /><div>$ vi /etc/ssh/sshd_config<br /> 	&nbsp;&nbsp;&nbsp; 找到以下内容，并去掉注释符&#8221;#&#8220;<br /> 	&nbsp;&nbsp;&nbsp; RSAAuthentication yes<br /> 	&nbsp;&nbsp;&nbsp; PubkeyAuthentication yes<br /> 	&nbsp;&nbsp;&nbsp; AuthorizedKeysFile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ssh/authorized_keys</div><br /><div>$ chmod 600 ~/.ssh/authorized_keys</div><img src ="http://www.blogjava.net/himalayas/aggbug/364723.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2011-11-24 13:51 <a href="http://www.blogjava.net/himalayas/archive/2011/11/24/364723.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu11+、fedora15+配置JDK</title><link>http://www.blogjava.net/himalayas/archive/2011/11/22/364588.html</link><dc:creator>himalayas</dc:creator><author>himalayas</author><pubDate>Tue, 22 Nov 2011 11:43:00 GMT</pubDate><guid>http://www.blogjava.net/himalayas/archive/2011/11/22/364588.html</guid><wfw:comment>http://www.blogjava.net/himalayas/comments/364588.html</wfw:comment><comments>http://www.blogjava.net/himalayas/archive/2011/11/22/364588.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/himalayas/comments/commentRss/364588.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/himalayas/services/trackbacks/364588.html</trackback:ping><description><![CDATA[假设将 JDK 安装到/usr/local/java 路径下：<br />$ sudo update-alternatives --install /usr/bin/java java  /usr/local/java/bin/java 300
<br />
$ sudo update-alternatives --install /usr/bin/javac javac   /usr/local/java/bin/javac 300
<br />
$ sudo update-alternatives --config java<img src ="http://www.blogjava.net/himalayas/aggbug/364588.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/himalayas/" target="_blank">himalayas</a> 2011-11-22 19:43 <a href="http://www.blogjava.net/himalayas/archive/2011/11/22/364588.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>