??xml version="1.0" encoding="utf-8" standalone="yes"?>四川福彩快乐12:BlogJava - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/置身浩瀚的沙漠,方向最为重要,希望此blog能向大漠驼铃一样,给我方向和指引?lt;br/> Java,Php,Shell,Python,服务器运?大数据,SEO, 网站开发、运?云服务技术支持,IM服务供应? FreeSwitch搭建,技术支持等. 技术讨论QQ群:428622099zh-cnTue, 16 Oct 2018 04:01:00 GMTTue, 16 Oct 2018 04:01:00 GMT60直播产品技术架构(系列文章? - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/archive/2018/09/19/433388.html草原上的骆驼草原上的骆驼Wed, 19 Sep 2018 08:37:00 GMT//www.ot7t.com.cn/nkjava/archive/2018/09/19/433388.html//www.ot7t.com.cn/nkjava/comments/433388.html//www.ot7t.com.cn/nkjava/archive/2018/09/19/433388.html#Feedback0//www.ot7t.com.cn/nkjava/comments/commentRss/433388.html//www.ot7t.com.cn/nkjava/services/trackbacks/433388.html网站的架构图近期会放出,是一系列的文章,请大家关注?br />

草原上的骆驼 2018-09-19 16:37 发表评论
]]>
CentOS7安装最新的PHP7.2 PHP_FPM更新 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/archive/2018/08/01/433312.html草原上的骆驼草原上的骆驼Tue, 31 Jul 2018 18:32:00 GMT//www.ot7t.com.cn/nkjava/archive/2018/08/01/433312.html//www.ot7t.com.cn/nkjava/comments/433312.html//www.ot7t.com.cn/nkjava/archive/2018/08/01/433312.html#Feedback0//www.ot7t.com.cn/nkjava/comments/commentRss/433312.html//www.ot7t.com.cn/nkjava/services/trackbacks/433312.html
sudo yum install epel-release
sudo yum install nginx
sudo systemctl start nginx
sudo systemtl enable nginx 
2.MariaDB
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo mysql_secure_installation

3.PHP-FPM
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install yum install  php72w-cli.x86_64 php72w-common.x86_64 php72w-gd.x86_64 php72w-ldap.x86_64 php72w-mbstring.x86_64 php72w-mcrypt.x86_64 php72w-mysql.x86_64 php72w-pdo.x86_64


yum install php72w-fpm


systemctl enable php-fpm
4.TEST
 Test your php page

草原上的骆驼 2018-08-01 02:32 发表评论
]]>
CentOS安装Composer - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/archive/2017/11/23/432912.html草原上的骆驼草原上的骆驼Wed, 22 Nov 2017 22:07:00 GMT//www.ot7t.com.cn/nkjava/archive/2017/11/23/432912.html//www.ot7t.com.cn/nkjava/comments/432912.html//www.ot7t.com.cn/nkjava/archive/2017/11/23/432912.html#Feedback0//www.ot7t.com.cn/nkjava/comments/commentRss/432912.html//www.ot7t.com.cn/nkjava/services/trackbacks/432912.html
cd /tmp

下载文件
curl -sS https://getcomposer.org/installer | php

移动到可执行目录
mv composer.phar /usr/local/bin/composer



草原上的骆驼 2017-11-23 06:07 发表评论
]]>
来自身份不明开发者? 或者文件已损坏,打不开.XX is damaged and can't be opened. You should move it to the Trash. - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/archive/2017/08/06/432726.html草原上的骆驼草原上的骆驼Sun, 06 Aug 2017 14:43:00 GMT//www.ot7t.com.cn/nkjava/archive/2017/08/06/432726.html//www.ot7t.com.cn/nkjava/comments/432726.html//www.ot7t.com.cn/nkjava/archive/2017/08/06/432726.html#Feedback0//www.ot7t.com.cn/nkjava/comments/commentRss/432726.html//www.ot7t.com.cn/nkjava/services/trackbacks/432726.html解决很简单?br />进入系统与偏好设?》安全与隐私-》在安全性与隐私界面的最下面有三个选项?br />1.AppStore
2.AppStore和被认可的开发?br />3.任何来源

注意,有的系统里没有任何来源选项,也就是说只有前两个选项?br />
这样的情况下,你需要在你的命令行里做一下操作?br />
进入终端命令行窗口,输入sudo spctl --master-disable
会提示你输入密码,输入完用户密码后即可完成操作?br />然后再次进入系统与偏好设?》安全性与隐私-》选择第三个任何来源即可?br />


草原上的骆驼 2017-08-06 22:43 发表评论
]]>
CentOS7 修改Hostname - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/archive/2016/11/10/431969.html草原上的骆驼草原上的骆驼Thu, 10 Nov 2016 01:52:00 GMT//www.ot7t.com.cn/nkjava/archive/2016/11/10/431969.html//www.ot7t.com.cn/nkjava/comments/431969.html//www.ot7t.com.cn/nkjava/archive/2016/11/10/431969.html#Feedback0//www.ot7t.com.cn/nkjava/comments/commentRss/431969.html//www.ot7t.com.cn/nkjava/services/trackbacks/431969.html
 hostnamectl  控制整个系统的hostname,推荐使?br /> nmtul             使用text ui 控制 
nmtcli            可以用但是不推荐使用

[root@willweb ~]# hostnamectl status
   Static hostname: willweb
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f9d400c5e1e8c3a8209e990d887d4ac1
           Boot ID: dd7be45d652849dcb82493c286c69dbf
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-327.el7.x86_64
      Architecture: x86-64
[root@willweb ~]# hostname
willweb
[root@willweb ~]# hostnamectl
   Static hostname: willweb
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f9d400c5e1e8c3a8209e990d887d4ac1
           Boot ID: dd7be45d652849dcb82493c286c69dbf
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-327.el7.x86_64
      Architecture: x86-64
[root@willweb ~]# hostnamectl status
   Static hostname: willweb
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f9d400c5e1e8c3a8209e990d887d4ac1
           Boot ID: dd7be45d652849dcb82493c286c69dbf
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-327.el7.x86_64
      Architecture: x86-64
使用命令如下
# hostnamectl set-hostname Your-New-Host-Name-Here
# hostnamectl set-hostname "Your New Host Name Here" --pretty
# hostnamectl set-hostname Your-New-Host-Name-Here --static
# hostnamectl set-hostname Your-New-Host-Name-Here --transient
远程设置hostname
ssh root@server-ip-here hostnamectl set-hostname server1
hostnamectl set-hostname server1 -H root@192.168.1.42







草原上的骆驼 2016-11-10 09:52 发表评论
]]>
CentOS NFS 网络共享磁盘 配置三步?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/10/22/431913.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Fri, 21 Oct 2016 17:50:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/10/22/431913.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/431913.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/10/22/431913.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/431913.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/431913.html</trackback:ping><description><![CDATA[参考:https://www.howtoforge.com/nfs-server-and-client-on-centos-7#-nfs-client-end<br />1.Server Side配置<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all">yum install nfs-utils<br />安装完成后,进行配置<br />mkdir /data/share<br />chmod -R 777 /data/share<br />设置自启?br />systemctl enable nfs-server ipcbind<br />systemctl start nfs-server ipcbind<br /><br />配置<br />vim /etc/exports<br />添加以下内容<br /><br />/data/share 192.168.0.101(rw,sync,no_root_squash,no_all_squash)<br /><br />其中192.168.0.101为要给哪个客户端IP开?br /><br /><br />systemctl restart nfs-server<br /><br />配置防火墙(如何没有添加防火墙就算了?br />firewall-cmd --permanent --zone=<span style="color: #0000FF; ">public</span> --add-service=nfs<br />firewall-cmd --reload</div><br /><br />2.Client Side 配置<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />--><br />安装配置nfs, 在客户机上的安装 <br />yum install ufs-utils<br /><br />systemctl enable rpcbind <br />systemctl start rpcbind<br /><br />mkdir /data/share<br />chmod  -R 777 /data/share<br /><br />mount -t nfs  192.168.0.100:/data/share /data/share <br /><br />设置/etc/fstab, 自启动nfs<br />192.168.0.100:/data/share  /data/share nfs defaults 0 0 <br /><br />systemctl restart rpcbind</div><br /><br />3.测试<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->?92.168.1.100 nfs server?br />cd /data/share<br />touch a.txt<br />cat aaaa> b.txt<br />进入192.168.1.101 nfs client?br />cd /data/share<br />查看文件列表 ls<br />因此所有的功能配置完成了,希望对朋友们有帮助?/div><img src ="//www.ot7t.com.cn/nkjava/aggbug/431913.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/nkjava/" target="_blank">草原上的骆驼</a> 2016-10-22 01:50 <a href="//www.ot7t.com.cn/nkjava/archive/2016/10/22/431913.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Tomcat7.0修改内存的配置(如何设置Tomcat的堆内存?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/08/29/431692.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Mon, 29 Aug 2016 05:55:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/08/29/431692.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/431692.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/08/29/431692.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/431692.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/431692.html</trackback:ping><description><![CDATA[Windows环境下在Tomcat/bin目录下创建setenv.bat, Linux环境下在Tomcat/bin目录下设置setenv.sh<br />注意只是后缀名称不同,为什么不同,注意查看catalina.bat或者catalina.sh?br /><br />例如setenv.sh里添加下面的内容<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms2048m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=256m"</div>Windows下的setenv.bat里添加下面的内容?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->set "JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:MaxPermSize=256m -server"</div><br /><br />然后重启Tomcat,查看堆内存的使用情况:<br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->worker      15061     1  0 Aug25 ?        00:04:21 /usr/bin/java -Djava.util.logging.config.file=/home/work/apache-tomcat-7.0.53/conf/logging.properties -Djava.util.logging.manager=<span style="background-color: yellow;">org.apache.juli.ClassLoaderLogManager </span><span style="color: red; background-color: yellow;">-</span><span style="color: red; background-color: yellow;">Dfile.encoding</span><span style="color: red; background-color: yellow;">=</span><span style="color: red; background-color: yellow;">UTF</span><span style="color: red; background-color: yellow;">-</span><span style="color: red; background-color: yellow;">8</span> <span style="color: red; background-color: yellow;">-</span><span style="color: red; background-color: yellow;">Xms2048m </span><span style="color: red; background-color: yellow;">-</span><span style="color: red; background-color: yellow;">Xmx2048m </span><span style="color: red; background-color: yellow;">-</span><span style="color: red; background-color: yellow;">XX:PermSize</span><span style="color: red; background-color: yellow;">=</span><span style="color: red; background-color: yellow;">256m </span><span style="color: red; background-color: yellow;">-</span><span style="color: red; background-color: yellow;">XX:MaxPermSize</span><span style="color: red; background-color: yellow;">=</span><span style="color: red; background-color: yellow;">256m </span>-Djava.awt.headless=<span style="color: #0000FF; ">true</span> -Djava.endorsed.dirs=/home/work/apache-tomcat-7.0.53/endorsed -classpath /home/work/apache-tomcat-7.0.53/bin/bootstrap.jar:/home/work/apache-tomcat-7.0.53/bin/tomcat-juli.jar -Dcatalina.base=/home/work/apache-tomcat-7.0.53 -Dcatalina.home=/home/work/apache-tomcat-7.0.53 -Djava.io.tmpdir=/home/work/apache-tomcat-7.0.53/temp org.apache.catalina.startup.Bootstrap start</div><div class="yibqv"><br />说明设置成功,很简单?br /><br />后续我会写几篇Tomcat内存学习的文章,欢迎大家关注?br /><br /></div><img src ="//www.ot7t.com.cn/nkjava/aggbug/431692.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/nkjava/" target="_blank">草原上的骆驼</a> 2016-08-29 13:55 <a href="//www.ot7t.com.cn/nkjava/archive/2016/08/29/431692.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>To prevent a memory leak, the JDBC Driver has been forcibly unregistered--有关Tomcat自动宕机的解决方?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/08/03/431436.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Wed, 03 Aug 2016 02:59:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/08/03/431436.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/431436.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/08/03/431436.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/431436.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/431436.html</trackback:ping><description><![CDATA[最近有几个服务的Tomcat总是无缘无故的宕机,到了不得不解决的地步?br /> 在Stackoverflow上找到比较有用的一篇文章,解决方案如下?br /> <div class="yibqv"><a >//stackoverflow.com/questions/3320400/to-prevent-a-memory-leak-the-jdbc-driver-has-been-forcibly-unregistered<br /> 有以下几个解决途径?br /> </a> <ol style="margin: 0px 0px 1em 30px; padding: 0px; border: 0px; font-size: 15px; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; line-height: 19.5px; background-color: #ffffff;"> <li style="margin: 0px 0px 0.5em; padding: 0px; border: 0px; word-wrap: break-word;"> <p style="margin: 0px; padding: 0px; border: 0px; clear: both;">Ignore those warnings. Tomcat is doing its job right. The actual bug is in someone else's code (the JDBC driver in question), not in yours. Be happy that Tomcat did its job properly and wait until the JDBC driver vendor get it fixed so that you can upgrade the driver. On the other hand, you aren't supposed to drop a JDBC driver in webapp's <code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: pre-wrap; background-color: #eff0f1;">/WEB-INF/lib</code>, but only in server's <code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: pre-wrap; background-color: #eff0f1;">/lib</code>. If you still keep it in webapp's <code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: pre-wrap; background-color: #eff0f1;">/WEB-INF/lib</code>, then you should manually register and deregister it using a <code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: pre-wrap; background-color: #eff0f1;">ServletContextListener</code>.<br /> 忽略警告。把WEB-INF/lib下的mysql驱动文件拷贝到Tomcat/lib下。如果仍然要放在WEB-INF/lib下,需要使用监听器手动的注册和注销?br /> 下面的文章介绍如何写监听器,<a >//javabeat.net/servletcontextlistener-example/?当然如果是Servlet3.0?使用注解方式设置监听也是可以的?br /> 下面的代码是如何注销?br /> <br /> </a></p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> //www.CodeHighlighter.com/<br /> <br /> --><strong class="yibqv"><span style="color: #000000; ">Step </span><span style="color: #000000; ">1</span></strong><span style="color: #000000; "><strong class="yibqv">: Register a Listener</strong><br /> web.xml<br /> </span><span style="color: #000000; "><</span><span style="color: #000000; ">listener</span><span style="color: #000000; ">></span><span style="color: #000000; "><br />     </span><span style="color: #000000; "><</span><span style="color: #000000; ">listener</span><span style="color: #000000; ">-</span><span style="color: #0000FF; ">class</span><span style="color: #000000; ">></span><span style="color: #000000; ">com.mysite.MySpecialListener</span><span style="color: #000000; "></</span><span style="color: #000000; ">listener</span><span style="color: #000000; ">-</span><span style="color: #0000FF; ">class</span><span style="color: #000000; ">></span><span style="color: #000000; "><br /> </span><span style="color: #000000; "></</span><span style="color: #000000; ">listener</span><span style="color: #000000; ">></span><span style="color: #000000; "><br /> <strong class="yibqv">Step </strong></span><span style="color: #000000; "><strong class="yibqv">2</strong></span><span style="color: #000000; "><strong class="yibqv">: Implement the Listener</strong><br /> <br /> com.mysite.MySpecialListener.java<br /> <br /> </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> MySpecialListener </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> ApplicationContextListener {<br /> <br />     @Override<br />     </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> contextInitialized(ServletContextEvent sce) {<br />         </span><span style="color: #008000; ">//</span><span style="color: #008000; "> On Application Startup, please…<br /> <br />         </span><span style="color: #008000; ">//</span><span style="color: #008000; "> Usually I'll make a singleton in here, set up my pool, etc.</span><span style="color: #008000; "><br /> </span><span style="color: #000000; ">    }<br /> <br />     @Override<br />     </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> contextDestroyed(ServletContextEvent sce) {<br />       </span><span style="color: #000000; "><span style="font-family: verdana, "courier new"; line-height: 21px; color: #008000;">//</span><span style="font-family: verdana, "courier new"; line-height: 21px; color: #008000;"> This manually deregisters JDBC driver, which prevents Tomcat 7 from complaining about memory leaks wrto this class</span><span style="font-family: verdana, "courier new"; line-height: 21px; color: #008000;"><br /> </span><span style="font-family: verdana, "courier new"; line-height: 21px;">        Enumeration</span><span style="font-family: verdana, "courier new"; line-height: 21px;"><</span><span style="font-family: verdana, "courier new"; line-height: 21px;">Driver</span><span style="font-family: verdana, "courier new"; line-height: 21px;">></span><span style="font-family: verdana, "courier new"; line-height: 21px;"> drivers </span><span style="font-family: verdana, "courier new"; line-height: 21px;">=</span><span style="font-family: verdana, "courier new"; line-height: 21px;"> DriverManager.getDrivers();</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">        </span><span style="font-family: verdana, "courier new"; line-height: 21px; color: #0000ff;">while</span><span style="font-family: verdana, "courier new"; line-height: 21px;"> (drivers.hasMoreElements()) {</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">            Driver driver </span><span style="font-family: verdana, "courier new"; line-height: 21px;">=</span><span style="font-family: verdana, "courier new"; line-height: 21px;"> drivers.nextElement();</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">            </span><span style="font-family: verdana, "courier new"; line-height: 21px; color: #0000ff;">try</span><span style="font-family: verdana, "courier new"; line-height: 21px;"> {</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">                DriverManager.deregisterDriver(driver);</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">                LOG.log(Level.INFO, String.format(</span><span style="font-family: verdana, "courier new"; line-height: 21px;">"</span><span style="font-family: verdana, "courier new"; line-height: 21px;">deregistering jdbc driver: %s</span><span style="font-family: verdana, "courier new"; line-height: 21px;">"</span><span style="font-family: verdana, "courier new"; line-height: 21px;">, driver));</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">            } </span><span style="font-family: verdana, "courier new"; line-height: 21px; color: #0000ff;">catch</span><span style="font-family: verdana, "courier new"; line-height: 21px;"> (SQLException e) {</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">                LOG.log(Level.SEVERE, String.format(</span><span style="font-family: verdana, "courier new"; line-height: 21px;">"</span><span style="font-family: verdana, "courier new"; line-height: 21px;">Error deregistering driver %s</span><span style="font-family: verdana, "courier new"; line-height: 21px;">"</span><span style="font-family: verdana, "courier new"; line-height: 21px;">, driver), e);</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">            }</span><br style="font-family: verdana, "courier new"; line-height: 21px;" /> <br style="font-family: verdana, "courier new"; line-height: 21px;" /> <span style="font-family: verdana, "courier new"; line-height: 21px;">        }</span><br />     }<br /> <br /> }</span></div> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"></div> </li> <li style="margin: 0px 0px 0.5em; padding: 0px; border: 0px; word-wrap: break-word;"> <p style="margin: 0px; padding: 0px; border: 0px; clear: both;">Downgrade to Tomcat 6.0.23 or older so that you will not be bothered with those warnings. But it will silently keep leaking memory. Not sure if that's good to know after all. Those kind of memory leaks are one of the major causes behind <a style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;"><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: pre-wrap; background-color: #eff0f1;">OutOfMemoryError</code> issues</a> during Tomcat hotdeployments.<br /> 把Tomcat降级到低版本?.0.23以下),虽然不会报错,但是还是存在内存益出的问题,这并不是一个好的解决方案?br /> <br /> </p> </li> <li style="margin: 0px; padding: 0px; border: 0px; word-wrap: break-word;"> <p style="margin: 0px; padding: 0px; border: 0px; clear: both;">Move the JDBC driver to Tomcat's <code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: pre-wrap; background-color: #eff0f1;">/lib</code> folder and have a connection pooled datasource to manage the driver. Note that Tomcat's builtin DBCP does not deregister drivers properly on close. See also bug <a style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;">DBCP-322</a> which is closed as WONTFIX. You would rather like to replace DBCP by another connection pool which is doing its job better then DBCP. For example<a style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;">HikariCP</a>, <a style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;">BoneCP</a>, or perhaps <a style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;">Tomcat JDBC Pool</a>.<br /> 把驱动文件移到Tomcat/lib文件夹下,不用使用DBCP,使用以下的连接池库,HikariCP, BoneCP,或者Tomcat JDBC Pool.<br /><br /> </p> </li> <li class="yibqv">MAVEN项目<br /> <p style="margin: 0px 0px 1em; padding: 0px; border: 0px; clear: both;">If you are getting this message from a Maven built war change the scope of the JDBC driver to provided, and put a copy of it in the lib directory. Like this:<span style="font-size: 13px; color: #000000;"><</span><span style="font-size: 13px; color: #000000;">dependency</span><span style="font-size: 13px; color: #000000;">>?br /> 对于MAVEN项目,由于Tomcat中存在mysql驱动文件?中介绍),这样在部署时就不会把mysql带到打包文件里,注意?lt;scope>provided</scope>?br /> </span></p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><span style="color: #000000; ">  </span><span style="color: #000000; "><</span><span style="color: #000000; ">groupId</span><span style="color: #000000; ">></span><span style="color: #000000; ">mysql</span><span style="color: #000000; "></</span><span style="color: #000000; ">groupId</span><span style="color: #000000; ">></span><span style="color: #000000; "><br />   </span><span style="color: #000000; "><</span><span style="color: #000000; ">artifactId</span><span style="color: #000000; ">></span><span style="color: #000000; ">mysql</span><span style="color: #000000; ">-</span><span style="color: #000000; ">connector</span><span style="color: #000000; ">-</span><span style="color: #000000; ">java</span><span style="color: #000000; "></</span><span style="color: #000000; ">artifactId</span><span style="color: #000000; ">></span><span style="color: #000000; "><br />   </span><span style="color: #000000; "><</span><span style="color: #000000; ">version</span><span style="color: #000000; ">></span><span style="color: #000000; ">5.1</span><span style="color: #000000; ">.</span><span style="color: #000000; ">18</span><span style="color: #000000; "></</span><span style="color: #000000; ">version</span><span style="color: #000000; ">></span><span style="color: #000000; "><br />   </span><span style="color: #000000; "><!--</span><span style="color: #000000; "> put a copy in </span><span style="color: #000000; ">/</span><span style="color: #000000; ">usr</span><span style="color: #000000; ">/</span><span style="color: #000000; ">share</span><span style="color: #000000; ">/</span><span style="color: #000000; ">tomcat7</span><span style="color: #000000; ">/</span><span style="color: #000000; ">lib </span><span style="color: #000000; ">--></span><span style="color: #000000; "><br />   </span><span style="color: #000000; "><</span><span style="color: #000000; ">scope</span><span style="color: #000000; ">></span><span style="color: #000000; ">provided</span><span style="color: #000000; "></</span><span style="color: #000000; ">scope</span><span style="color: #000000; ">></span><span style="color: #000000; "><br /> </span><span style="color: #000000; "></</span><span style="color: #000000; ">dependency</span><span style="color: #000000; ">></span></div> </li> </ol> </div> 好了,如果您遇到同样的问题,可以和我沟通,联系方式见头部?img src ="//www.ot7t.com.cn/nkjava/aggbug/431436.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/nkjava/" target="_blank">草原上的骆驼</a> 2016-08-03 10:59 <a href="//www.ot7t.com.cn/nkjava/archive/2016/08/03/431436.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>LInux下MySQL导出表(模糊查询表名和指定表列表两种方式?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/07/02/431074.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Sat, 02 Jul 2016 01:01:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/07/02/431074.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/431074.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/07/02/431074.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/431074.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/431074.html</trackback:ping><description><![CDATA[1、模糊查询表?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->root@serv: ~$ mysqldump dbname $(mysql -D YOURDBNAME -Bse "SHOW TABLES LIKE 'table_pattern_%'") > /tmp/database-dump.sql</div>2、指定表列表导出<br /><span style="font-size: 13px; background-color: #eeeeee;">导出表名称:<br />mysql </span><span style="font-size: 13px; background-color: #eeeeee;">-</span><span style="font-size: 13px; background-color: #eeeeee;">N information_schema </span><span style="font-size: 13px; background-color: #eeeeee;">-</span><span style="font-size: 13px; background-color: #eeeeee;">e </span><span style="font-size: 13px; background-color: #eeeeee;">"</span><span style="font-size: 13px; background-color: #eeeeee;">select table_name from tables where table_schema = 'dbname' and table_name like 'sys_%'</span><span style="font-size: 13px; background-color: #eeeeee;">"</span><span style="font-size: 13px; background-color: #eeeeee;"> </span><span style="font-size: 13px; background-color: #eeeeee;">></span><span style="font-size: 13px; background-color: #eeeeee;"> tables.txt </span><div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><pre prettyprint="" prettyprinted"="" style="margin-top: 0px; margin-bottom: 1em; padding: 5px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; width: auto; max-height: 600px; overflow: auto; word-wrap: normal; background-color: #eff0f1;"><code style="margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;"><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">导出表:<br />mysqldump dbname </span><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">`</span><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">cat tables</span><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">.</span><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">txt</span><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">`</span><font color="#393318" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif"><span style="font-size: 13px; white-space: inherit;"> </span></font><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">>></span><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;"> dump_file</span><span style="color: #303336; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; white-space: inherit; margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;">.</span><span style="margin: 0px; padding: 0px; border: 0px; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial;"><font color="#303336" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif"><span style="font-size: 13px; white-space: inherit;">sql<br /></span></font><font color="#303336" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif"><span style="font-size: 13px; white-space: inherit;"><br />批量删除表:<br /></span></font>mysql -NB information_schema -e "select table_name from tables where table_name like 'sys_%'" | xargs -I"{}" mysql dbname -e "DROP TABLE {}" </span></code></pre></div><img src ="//www.ot7t.com.cn/nkjava/aggbug/431074.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/nkjava/" target="_blank">草原上的骆驼</a> 2016-07-02 09:01 <a href="//www.ot7t.com.cn/nkjava/archive/2016/07/02/431074.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MAC下安装Redis - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/archive/2016/06/30/431052.html草原上的骆驼草原上的骆驼Wed, 29 Jun 2016 20:16:00 GMT//www.ot7t.com.cn/nkjava/archive/2016/06/30/431052.html//www.ot7t.com.cn/nkjava/comments/431052.html//www.ot7t.com.cn/nkjava/archive/2016/06/30/431052.html#Feedback0//www.ot7t.com.cn/nkjava/comments/commentRss/431052.html//www.ot7t.com.cn/nkjava/services/trackbacks/431052.html
brew install redis
方案二:使用源码安装
下载地址://redis.io/download
cd redis-2.4.13
make
sudo mv src/redis-server /usr/bin
sudo mv src/redis-cli /usr/bin


mkdir ~/.redis

touch ~/.redis/redis.conf
使用方式?br />
redis-server


草原上的骆驼 2016-06-30 04:16 发表评论
]]>
Linux命令(Linux Commands)不断完善?... - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/nkjava/archive/2016/03/06/429546.html草原上的骆驼草原上的骆驼Sat, 05 Mar 2016 22:19:00 GMT//www.ot7t.com.cn/nkjava/archive/2016/03/06/429546.html//www.ot7t.com.cn/nkjava/comments/429546.html//www.ot7t.com.cn/nkjava/archive/2016/03/06/429546.html#Feedback0//www.ot7t.com.cn/nkjava/comments/commentRss/429546.html//www.ot7t.com.cn/nkjava/services/trackbacks/429546.html   grep -Hn "search content"  filename or *  显示文件名和行号

草原上的骆驼 2016-03-06 06:19 发表评论
]]>
MAVEN命令不断完善中。。?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/02/15/429325.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Mon, 15 Feb 2016 09:13:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/02/15/429325.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/429325.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/02/15/429325.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/429325.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/429325.html</trackback:ping><description><![CDATA[MAVEN命令<br /> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> //www.CodeHighlighter.com/<br /> <br /> -->http:<span style="color: #008000; ">//</span><span style="color: #008000; ">www.mvnrepository.com  #中央仓库</span><span style="color: #008000; "><br /> </span><br /> mvn eclipse:eclipse  #生成eclipse配置文件<br /> mvn clean <span style="color: #0000FF; ">package</span> #打包项目<br /> mvn clean install #安装成本地库<br /> mvn clean install -DoutputDirectory=lib -Dsilent=true -Pmodules <br /> mvn clean install -Pmodules #安装指定的模块到本地仓库<br /> mvn jetty:run #运行jetty<br /> mvn tomcat7:run #运行tomcat<br /> <br /><br /><br /><br /> mvn compile #编译<br /> mvn test #运行测试<br /> <br /><br /><br /><br /> 下载源码和文?br /> mvn -DdownloadJavadocs=true eclipse:eclipse<br /> mvn -DdownloadSources=true eclipse:eclipse<br /> mvn archetype:generate -DgroupId=cn.ourwill.maven -DartifactId=hello-world -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=<span style="color: #0000FF; ">false</span>   #mvn 创建项目<br /> <br /> mvn install -Dmaven.test.skip=<span style="color: #0000FF; ">true</span>#不执行测?br /> <br /><br /><br /><br /> 环境分离<br /> <profiles><br />         <profile><br />             <id>mine</id><br />             <activation><br />                 <activeByDefault><span style="color: #0000FF; ">true</span></activeByDefault><br />             </activation><br />             <build><br />                 <filters><br />                     <filter>src/main/filters/filter-mine.properties</filter><br />                 </filters><br />             </build><br />         </profile><br />         <profile><br />             <id>test</id><br />             <activation><br />                 <activeByDefault><span style="color: #0000FF; ">false</span></activeByDefault><br />             </activation><br />             <build><br />                 <filters><br />                     <filter>src/main/filters/filter-test.properties</filter><br />                 </filters><br />             </build><br />         </profile><br />         <profile><br />             <id>release</id><br />             <activation><br />                 <activeByDefault><span style="color: #0000FF; ">false</span></activeByDefault><br />             </activation><br />             <build><br />                 <filters><br />                     <filter>src/main/filters/filter-release.properties</filter><br />                 </filters><br />             </build><br />         </profile><br />     </profiles><br /> <br /> mvn install -Denvironment.type=prod  #使用不同的环境,生产环境,开发环境,测试环境  <br /> <br /> mvn install:install-file -Dfile=Sample.jar -DgroupId=uniquesample -DartifactId=sample_jar -Dversion=2.1.3b2 -Dpackaging=jar -DgeneratePom=true  #安装到本?br /> <br /> mvn dependency:tree #依赖?br /> mvn dependencies: copy-dependency #复制依赖的jar?br /> <br /> <br /> <br /> 生成java-doc<br /> mvn javadoc:javadoc<br /> mvn javadoc:jar<br /> mvn javadoc:aggregate <br /> mvn javadoc:aggregate-jar <br /> mvn javadoc:test-javadoc <br /> mvn javadoc:test-jar<br /> mvn javadoc:test-aggregate <br /> mvn javadoc:test-aggregate-jar<br /> <br /><br /><br />生成jar<br /> mvn jar:jar<br /> mvn jar:test-jar<br /> <br /><br /><br /> 说明文<br /> 1. mvn help:describe -Dplugin=eclipse -Dfull > eclipse-help.txt<br /> 2. mvn help:describe -Dplugin=help -Dfull > help-help.txt<br /> 3. mvn help:describe -Dplugin=dependency -Dfull > dependency-help.txt<br /> 4. mvn help:describe -Dcmd=compiler:compile –Ddetail<br /> 5. mvn help:describe -Dplugin=org.apache.maven.plugins:maven-compiler-plugin<br /> </div> <br /> GRADLE命令 <img src ="//www.ot7t.com.cn/nkjava/aggbug/429325.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/nkjava/" target="_blank">草原上的骆驼</a> 2016-02-15 17:13 <a href="//www.ot7t.com.cn/nkjava/archive/2016/02/15/429325.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Vsftp安装配置(不断完善中?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/01/22/429172.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Thu, 21 Jan 2016 23:42:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/01/22/429172.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/429172.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/01/22/429172.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/429172.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/429172.html</trackback:ping><description><![CDATA[1.安装<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->sudo yum install vsftpd</div>2.配置<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->sudo vi /etc/vsftpd/vsftpd.conf<br /><br />anonymous_enable=NO #匿名用户不可登录<br />local_enable=YES      #<br />chroot_local_user=YES  #只能访问当前用户的目?br /><br />systemctl restart vsftpd<br />systemctl enable vsftpd</div>3.用户配置<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->usermod --home /data/ftp test<br /><br />http:<span style="color: #008000; ">//</span><span style="color: #008000; ">unix.stackexchange.com/questions/94603/limit-ftp-access-only-to-the-var-www-with-vsftpd</span><span style="color: #008000; "><br /></span>http:<span style="color: #008000; ">//</span><span style="color: #008000; ">www.howtogeek.com/howto/ubuntu/add-a-user-on-ubuntu-server/</span><span style="color: #008000; "><br /></span>http:<span style="color: #008000; ">//</span><span style="color: #008000; ">www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/</span><span style="color: #008000; "><br /></span>https:<span style="color: #008000; ">//</span><span style="color: #008000; ">www.rackspace.com/knowledge_center/article/rackspace-cloud-essentials-centos-configuring-a-user-in-vsftpd</span></div><img src ="//www.ot7t.com.cn/nkjava/aggbug/429172.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/nkjava/" target="_blank">草原上的骆驼</a> 2016-01-22 07:42 <a href="//www.ot7t.com.cn/nkjava/archive/2016/01/22/429172.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux 免密码登?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/01/22/429171.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Thu, 21 Jan 2016 23:34:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/01/22/429171.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/429171.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/01/22/429171.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/429171.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/429171.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> //www.CodeHighlighter.com/<br /> <br /> -->1.生成公钥<br /> ssh-keygen -t rsa<br /> </div> 2.拷贝到目标服务器 <br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->scp .ssh/id_rsa.pub root@test.com</div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->执行写入信任目录<br />cat id_rsa.pub >> .ssh/authorized_keys<br />如果这里没有,ssh目录,手动创?br />mkdir .ssh<br /><br />设置目录的权?br />chmod 700 .ssh<br />chmod 600 .ssh/authorized_keys</div>3.测试<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->ssh root@test.com<br />无需密码,省了很多时?/div><img src ="//www.ot7t.com.cn/nkjava/aggbug/429171.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/nkjava/" target="_blank">草原上的骆驼</a> 2016-01-22 07:34 <a href="//www.ot7t.com.cn/nkjava/archive/2016/01/22/429171.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CentOS/RHEL 7/6/5 系统里升级SVN客户?/title><link>//www.ot7t.com.cn/nkjava/archive/2016/01/20/429128.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Wed, 20 Jan 2016 05:22:00 GMT</pubDate><guid>//www.ot7t.com.cn/nkjava/archive/2016/01/20/429128.html</guid><wfw:comment>//www.ot7t.com.cn/nkjava/comments/429128.html</wfw:comment><comments>//www.ot7t.com.cn/nkjava/archive/2016/01/20/429128.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/nkjava/comments/commentRss/429128.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/nkjava/services/trackbacks/429128.html</trackback:ping><description><![CDATA[<h2 class="yibqv">CentOS/RHEL 7/6/5 默认的SVN版本?.7,由于工作需要需要升级到1.8<br /><div style="font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->1.添加?br />/etc/yum.repos.d/wandisco-svn.repo <br /><br />[WandiscoSVN]<br />name=Wandisco SVN Repo<br />baseurl=http:<span style="color: #008000; ">//</span><span style="color: #008000; ">opensource.wandisco.com/centos/$releasever/svn-1.8/RPMS/$basearch/</span><span style="color: #008000; "><br /></span>enabled=1<br />gpgcheck=0</div><br />2、yum删除旧的?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->yum remove subversion*</div>3.安装新的?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->yum clean all<br />yum install subversion</div><br />好了,现在试试SVN的版?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />--> svn --version<br />svn, version 1.8.15 (r1718365)<br />   compiled Dec 11 2015, 14:28:48 on x86_64-redhat-linux-gnu<br /><br />Copyright (C) 2015 The Apache Software Foundation.<br />This software consists of contributions made by many people;<br />see the NOTICE file <span style="color: #0000FF; ">for</span> more information.<br />Subversion is open source software, see http:<span style="color: #008000; ">//</span><span style="color: #008000; ">subversion.apache.org/</span><span style="color: #008000; "><br /></span><br />The following repository access (RA) modules are available:<br /><br />* ra_svn : Module <span style="color: #0000FF; ">for</span> accessing a repository using the svn network protocol.<br />  - with Cyrus SASL authentication<br />  - handles 'svn' scheme<br />* ra_local : Module <span style="color: #0000FF; ">for</span> accessing a repository on local disk.<br />  - handles 'file' scheme<br />* ra_serf : Module <span style="color: #0000FF; ">for</span> accessing a repository via WebDAV protocol using serf.<br />  - using serf 1.3.7<br />  - handles 'http' scheme<br />  - handles 'https' scheme</div><br /><br /></h2><img src ="//www.ot7t.com.cn/nkjava/aggbug/429128.html" width = "1" height = "1" /><br><br><div align=right><a href="//www.ot7t.com.cn/" title="四川福利彩票快乐12">四川福利彩票快乐12</a> 2016-01-20 13:22 <a href="//www.ot7t.com.cn/nkjava/archive/2016/01/20/429128.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <script>(function(){ var src = (document.location.protocol == "http:") ? "//js.passport.qihucdn.com/11.0.1.js?f7a6bc378844a5df707c414e6b6fea33":"https://jspassport.ssl.qhimg.com/11.0.1.js?f7a6bc378844a5df707c414e6b6fea33"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script>