??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-大漠驼铃http://www.qpkxbc.shop/nkjava/|n瀚的沙漠Q方向最为重要,希望此blog能向大漠驼铃一Pl我方向和指引?lt;br/> Java,Php,Shell,Python,服务器运l?大数据,SEO, |站开发、运l?云服务技术支持,IM服务供应? FreeSwitch搭徏Q技术支持等. 技术讨论QQ:428622099zh-cnSat, 24 Aug 2019 00:35:32 GMTSat, 24 Aug 2019 00:35:32 GMT60MACpȝ每次启动Powerpoint都会自动打开两个PPT文ghttp://www.qpkxbc.shop/nkjava/archive/2018/11/27/433520.html草原上的骆驼草原上的骆驼Mon, 26 Nov 2018 20:46:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2018/11/27/433520.htmlhttp://www.qpkxbc.shop/nkjava/comments/433520.htmlhttp://www.qpkxbc.shop/nkjava/archive/2018/11/27/433520.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/433520.htmlhttp://www.qpkxbc.shop/nkjava/services/trackbacks/433520.htmlMACpȝ每次启动Powerpoint都会自动打开两个PPT文gQ很烦hQ一直没有找到解x案。终于在官网打到Q解x式如下:

q个问题的话您尝?span style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none; color: #333333;">打开finderQ访达)Q按 shift+command+GQ输?/span>

~/Library/Containers/com.microsoft.Powerpoint/Data/Library/Preferences/AutoRecovery/

或者打开l端Q输?/span>

open ~/Library/Containers/com.microsoft.Powerpoint/Data/Library/Preferences/AutoRecovery/

?/span>后删除里面的文g卛_Q?/span>

希望以上信息能够帮助到您?/span>



草原上的骆驼 2018-11-27 04:46 发表评论
]]>
WINDOWS下映Ctrl键ؓCommand键(MAC用户使用Q?/title><link>http://www.qpkxbc.shop/nkjava/archive/2018/11/14/433493.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Wed, 14 Nov 2018 14:52:00 GMT</pubDate><guid>http://www.qpkxbc.shop/nkjava/archive/2018/11/14/433493.html</guid><wfw:comment>http://www.qpkxbc.shop/nkjava/comments/433493.html</wfw:comment><comments>http://www.qpkxbc.shop/nkjava/archive/2018/11/14/433493.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/nkjava/comments/commentRss/433493.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/nkjava/services/trackbacks/433493.html</trackback:ping><description><![CDATA[最q在MAC下用WINDOWS下映Win键到Ctrl键,q样和MAC上的键统一?br /><br /><br />使用开源的工具Q?br /><div>https://github.com/randyrants/sharpkeys/releases<br /><br /><br />具体的说明如下:</div><div><div>https://superuser.com/questions/1264164/how-to-map-windows-key-to-ctrl-key-on-windows-10</div></div><img src ="http://www.qpkxbc.shop/nkjava/aggbug/433493.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/nkjava/" target="_blank">草原上的骆驼</a> 2018-11-14 22:52 <a href="http://www.qpkxbc.shop/nkjava/archive/2018/11/14/433493.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>直播产品技术架构(pd文章Q?http://www.qpkxbc.shop/nkjava/archive/2018/09/19/433388.html草原上的骆驼草原上的骆驼Wed, 19 Sep 2018 08:37:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2018/09/19/433388.htmlhttp://www.qpkxbc.shop/nkjava/comments/433388.htmlhttp://www.qpkxbc.shop/nkjava/archive/2018/09/19/433388.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/433388.htmlhttp://www.qpkxbc.shop/nkjava/services/trackbacks/433388.html|站的架构图q期会放出,是一pd的文章,请大家关注?br />

草原上的骆驼 2018-09-19 16:37 发表评论
]]>
CentOS7安装最新的PHP7.2 PHP_FPM更新http://www.qpkxbc.shop/nkjava/archive/2018/08/01/433312.html草原上的骆驼草原上的骆驼Tue, 31 Jul 2018 18:32:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2018/08/01/433312.htmlhttp://www.qpkxbc.shop/nkjava/comments/433312.htmlhttp://www.qpkxbc.shop/nkjava/archive/2018/08/01/433312.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/433312.htmlhttp://www.qpkxbc.shop/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安装Composerhttp://www.qpkxbc.shop/nkjava/archive/2017/11/23/432912.html草原上的骆驼草原上的骆驼Wed, 22 Nov 2017 22:07:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2017/11/23/432912.htmlhttp://www.qpkxbc.shop/nkjava/comments/432912.htmlhttp://www.qpkxbc.shop/nkjava/archive/2017/11/23/432912.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/432912.htmlhttp://www.qpkxbc.shop/nkjava/services/trackbacks/432912.html
cd /tmp

下蝲文g
curl -sS https://getcomposer.org/installer | php

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



草原上的骆驼 2017-11-23 06:07 发表评论
]]>
来自w䆾不明开发者? 或者文件已损坏Q打不开.XX is damaged and can't be opened. You should move it to the Trash.http://www.qpkxbc.shop/nkjava/archive/2017/08/06/432726.html草原上的骆驼草原上的骆驼Sun, 06 Aug 2017 14:43:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2017/08/06/432726.htmlhttp://www.qpkxbc.shop/nkjava/comments/432726.htmlhttp://www.qpkxbc.shop/nkjava/archive/2017/08/06/432726.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/432726.htmlhttp://www.qpkxbc.shop/nkjava/services/trackbacks/432726.html解决很简单?br />q入pȝ与偏好设|?》安全与隐私-》在安全性与隐私界面的最下面有三个选项Q?br />1.AppStore
2.AppStore和被认可的开发?br />3.M来源

注意Q有的系l里没有M来源选项Q也是说只有前两个选项?br />
q样的情况下Q你需要在你的命o行里做一下操作?br />
q入l端命o行窗口,输入sudo spctl --master-disable
会提CZ输入密码Q输入完用户密码后即可完成操作?br />然后再次q入pȝ与偏好设|?》安全性与隐私-》选择W三个Q何来源即可?br />


草原上的骆驼 2017-08-06 22:43 发表评论
]]>
CentOS7 修改Hostnamehttp://www.qpkxbc.shop/nkjava/archive/2016/11/10/431969.html草原上的骆驼草原上的骆驼Thu, 10 Nov 2016 01:52:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2016/11/10/431969.htmlhttp://www.qpkxbc.shop/nkjava/comments/431969.htmlhttp://www.qpkxbc.shop/nkjava/archive/2016/11/10/431969.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/431969.htmlhttp://www.qpkxbc.shop/nkjava/services/trackbacks/431969.html
 hostnamectl  控制整个pȝ的hostnameQ推荐?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
使用命o如下
# 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
q程讄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 |络׃n盘 配置三步?/title><link>http://www.qpkxbc.shop/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>http://www.qpkxbc.shop/nkjava/archive/2016/10/22/431913.html</guid><wfw:comment>http://www.qpkxbc.shop/nkjava/comments/431913.html</wfw:comment><comments>http://www.qpkxbc.shop/nkjava/archive/2016/10/22/431913.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/nkjava/comments/commentRss/431913.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/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 />安装完成后,q行配置<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 />d以下内容<br /><br />/data/share 192.168.0.101(rw,sync,no_root_squash,no_all_squash)<br /><br />其中192.168.0.101l哪个客LIP开?br /><br /><br />systemctl restart nfs-server<br /><br />配置防火墙(如何没有d防火墙就了Q?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 />http://www.CodeHighlighter.com/<br /><br />--><br />安装配置nfs, 在客h上的安装 <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 />http://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 />q入192.168.1.101 nfs client?br />cd /data/share<br />查看文g列表 ls<br />因此所有的功能配置完成了,希望Ҏ友们有帮助?/div><img src ="http://www.qpkxbc.shop/nkjava/aggbug/431913.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/nkjava/" target="_blank">草原上的骆驼</a> 2016-10-22 01:50 <a href="http://www.qpkxbc.shop/nkjava/archive/2016/10/22/431913.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Tomcat7.0修改内存的配|(如何讄Tomcat的堆内存Q?/title><link>http://www.qpkxbc.shop/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>http://www.qpkxbc.shop/nkjava/archive/2016/08/29/431692.html</guid><wfw:comment>http://www.qpkxbc.shop/nkjava/comments/431692.html</wfw:comment><comments>http://www.qpkxbc.shop/nkjava/archive/2016/08/29/431692.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/nkjava/comments/commentRss/431692.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/nkjava/services/trackbacks/431692.html</trackback:ping><description><![CDATA[Windows环境下在Tomcat/bin目录下创建setenv.bat, Linux环境下在Tomcat/bin目录下设|setenv.sh<br />注意只是后缀名称不同Qؓ什么不同,注意查看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 />http://www.CodeHighlighter.com/<br /><br />-->export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms2048m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=256m"</div>Windows下的setenv.bat里添加下面的内容Q?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 />http://www.CodeHighlighter.com/<br /><br />-->set "JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:MaxPermSize=256m -server"</div><br /><br />然后重启TomcatQ查看堆内存的用情况:<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 />http://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><br />说明讄成功Q很单?br /><br />后箋我会写几Tomcat内存学习的文章,Ƣ迎大家x?br /><br /></div><img src ="http://www.qpkxbc.shop/nkjava/aggbug/431692.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/nkjava/" target="_blank">草原上的骆驼</a> 2016-08-29 13:55 <a href="http://www.qpkxbc.shop/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自动宕机的解x?/title><link>http://www.qpkxbc.shop/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>http://www.qpkxbc.shop/nkjava/archive/2016/08/03/431436.html</guid><wfw:comment>http://www.qpkxbc.shop/nkjava/comments/431436.html</wfw:comment><comments>http://www.qpkxbc.shop/nkjava/archive/2016/08/03/431436.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/nkjava/comments/commentRss/431436.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/nkjava/services/trackbacks/431436.html</trackback:ping><description><![CDATA[最q有几个服务的TomcatL无缘无故的宕机,C不得不解决的地步?br /> 在Stackoverflow上找到比较有用的一文章,解决Ҏ如下Q?br /> <div><a href="http://stackoverflow.com/questions/3320400/to-prevent-a-memory-leak-the-jdbc-driver-has-been-forcibly-unregistered">http://stackoverflow.com/questions/3320400/to-prevent-a-memory-leak-the-jdbc-driver-has-been-forcibly-unregistered<br /> 有以下几个解决途径Q?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驱动文g拯到Tomcat/lib下。如果仍然要攑֜WEB-INF/lib下,需要用监听器手动的注册和注销?br /> 下面的文章介l如何写监听器,<a href="http://javabeat.net/servletcontextlistener-example/">http://javabeat.net/servletcontextlistener-example/Q?当然如果是Servlet3.0Q?使用注解方式讄监听也是可以的?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 /> http://www.CodeHighlighter.com/<br /> <br /> --><strong><span style="color: #000000; ">Step </span><span style="color: #000000; ">1</span></strong><span style="color: #000000; "><strong>: 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>Step </strong></span><span style="color: #000000; "><strong>2</strong></span><span style="color: #000000; "><strong>: 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 href="http://wiki.apache.org/tomcat/OutOfMemory" 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降C版本Q?.0.23以下Q,虽然不会报错Q但是还是存在内存益出的问题Q这q不是一个好的解x案?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 href="https://issues.apache.org/jira/browse/DBCP-332" 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 href="http://brettwooldridge.github.io/HikariCP/" style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;">HikariCP</a>, <a href="http://jolbox.com/" style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;">BoneCP</a>, or perhaps <a href="http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html" style="margin: 0px; padding: 0px; border: 0px; color: #005999; text-decoration: none; cursor: pointer;">Tomcat JDBC Pool</a>.<br /> 把驱动文件移到Tomcat/lib文g夹下Q不用用DBCPQ用以下的q接池库,HikariCP, BoneCP,或者Tomcat JDBC Pool.<br /><br /> </p> </li> <li>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;">>Q?br /> 对于MAVEN目Q由于Tomcat中存在mysql驱动文gQ?中介l)Q这样在部v时就不会把mysql带到打包文g里,注意?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> 好了Q如果您遇到同样的问题,可以和我沟通,联系方式见头部?img src ="http://www.qpkxbc.shop/nkjava/aggbug/431436.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/nkjava/" target="_blank">草原上的骆驼</a> 2016-08-03 10:59 <a href="http://www.qpkxbc.shop/nkjava/archive/2016/08/03/431436.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>LInux下MySQL导出表(模糊查询表名和指定表列表两种方式Q?/title><link>http://www.qpkxbc.shop/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>http://www.qpkxbc.shop/nkjava/archive/2016/07/02/431074.html</guid><wfw:comment>http://www.qpkxbc.shop/nkjava/comments/431074.html</wfw:comment><comments>http://www.qpkxbc.shop/nkjava/archive/2016/07/02/431074.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/nkjava/comments/commentRss/431074.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/nkjava/services/trackbacks/431074.html</trackback:ping><description><![CDATA[1、模p查询表?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 />http://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;">导出表名Uͼ<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 />扚w删除表:<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 ="http://www.qpkxbc.shop/nkjava/aggbug/431074.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/nkjava/" target="_blank">草原上的骆驼</a> 2016-07-02 09:01 <a href="http://www.qpkxbc.shop/nkjava/archive/2016/07/02/431074.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MAC下安装Redishttp://www.qpkxbc.shop/nkjava/archive/2016/06/30/431052.html草原上的骆驼草原上的骆驼Wed, 29 Jun 2016 20:16:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2016/06/30/431052.htmlhttp://www.qpkxbc.shop/nkjava/comments/431052.htmlhttp://www.qpkxbc.shop/nkjava/archive/2016/06/30/431052.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/431052.htmlhttp://www.qpkxbc.shop/nkjava/services/trackbacks/431052.html
brew install redis
Ҏ二:使用源码安装
下蝲地址Qhttp://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
使用方式Q?br />
redis-server


草原上的骆驼 2016-06-30 04:16 发表评论
]]>
Linux命o(Linux Commands)不断完善?...http://www.qpkxbc.shop/nkjava/archive/2016/03/06/429546.html草原上的骆驼草原上的骆驼Sat, 05 Mar 2016 22:19:00 GMThttp://www.qpkxbc.shop/nkjava/archive/2016/03/06/429546.htmlhttp://www.qpkxbc.shop/nkjava/comments/429546.htmlhttp://www.qpkxbc.shop/nkjava/archive/2016/03/06/429546.html#Feedback0http://www.qpkxbc.shop/nkjava/comments/commentRss/429546.htmlhttp://www.qpkxbc.shop/nkjava/services/trackbacks/429546.html   grep -Hn "search content"  filename or *  昄文g名和行号

草原上的骆驼 2016-03-06 06:19 发表评论
]]>
MAVEN命o不断完善中。。?/title><link>http://www.qpkxbc.shop/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>http://www.qpkxbc.shop/nkjava/archive/2016/02/15/429325.html</guid><wfw:comment>http://www.qpkxbc.shop/nkjava/comments/429325.html</wfw:comment><comments>http://www.qpkxbc.shop/nkjava/archive/2016/02/15/429325.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/nkjava/comments/commentRss/429325.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/nkjava/services/trackbacks/429325.html</trackback:ping><description><![CDATA[MAVEN命o<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 /> http://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配置文g<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 #q行jetty<br /> mvn tomcat7:run #q行tomcat<br /> <br /><br /><br /><br /> mvn compile #~译<br /> mvn test #q行试<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  #使用不同的环境,生环境Q开发环境,试环境  <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命o <img src ="http://www.qpkxbc.shop/nkjava/aggbug/429325.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/nkjava/" target="_blank">草原上的骆驼</a> 2016-02-15 17:13 <a href="http://www.qpkxbc.shop/nkjava/archive/2016/02/15/429325.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Vsftp安装配置Q不断完善中Q?/title><link>http://www.qpkxbc.shop/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>http://www.qpkxbc.shop/nkjava/archive/2016/01/22/429172.html</guid><wfw:comment>http://www.qpkxbc.shop/nkjava/comments/429172.html</wfw:comment><comments>http://www.qpkxbc.shop/nkjava/archive/2016/01/22/429172.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/nkjava/comments/commentRss/429172.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/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 />http://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 />http://www.CodeHighlighter.com/<br /><br />-->sudo vi /etc/vsftpd/vsftpd.conf<br /><br />anonymous_enable=NO #匿名用户不可d<br />local_enable=YES      #<br />chroot_local_user=YES  #只能讉K当前用户的目?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 />http://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 ="http://www.qpkxbc.shop/nkjava/aggbug/429172.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/nkjava/" target="_blank">草原上的骆驼</a> 2016-01-22 07:42 <a href="http://www.qpkxbc.shop/nkjava/archive/2016/01/22/429172.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <a href="http://www.qpkxbc.shop/"><span class="STYLE1">1һ152ͼ</span></a> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <a href="http://www.vpolvb.icu">3dСǶ</a> <a href="http://www.fhqhtb.icu">׬⾫</a> <a href="http://www.mjawbf.icu">pk10ͼ</a> <a href="http://www.lykzga.icu">Ͷעʽ</a> <a href="http://www.khwgnc.icu">ôapp</a> <a href="http://www.txeynk.icu">ƫǮķ</a> <a href="http://www.aorrrt.icu">ֿн</a> <a href="http://www.zufhpr.icu">2һôԳ</a> <a href="http://www.eezwsj.icu">ʱʱ3</a> <a href="http://www.ixbndq.icu">pk10ƻƻ</a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>