随笔分类 -  linux

摘要:写个文档 ,发现输入法的设置框没有了,打出来的字全是全角,找了半天终于发现在设置的快捷键。废话少说,Centos的全角半角转换快捷键是shift+space。中英文标点的转换快捷键 ctrl+. 阅读全文
posted @ 2015-05-26 10:59 wmx3ng 阅读(891) 评论(0) 推荐(0)
摘要:FROM: http://ju.outofmemory.cn/entry/63250系统版本:centos 6.4git版本:1.7.1,使用yum直接安装的。当使用git status查看时,如果文件名是中文,那么就会显示乱码(确实的说是转义后的字符),如下图:git查看文件时中文无法正常显示怎样... 阅读全文
posted @ 2015-05-24 21:41 wmx3ng 阅读(375) 评论(0) 推荐(0)
摘要:FROM: http://blog.csdn.net/sinboy/article/details/2466225FROM:http://www.2cto.com/os/201006/50680.html测试环境:Fedora7,管理员:root,普通用户:test1实现目标:在Linux启动时,自... 阅读全文
posted @ 2015-05-20 10:22 wmx3ng 阅读(579) 评论(0) 推荐(0)
摘要:FROM:http://www.nginx.cn/1934.htmlshell脚本需要交互的地方可以使用here文档是实现,但是有些命令却需要用户手动去就交互如passwd、scp对自动部署免去用户交互很痛苦,expect能很好的解决这类问题。expect的核心是spawn expect send ... 阅读全文
posted @ 2015-04-01 11:51 wmx3ng 阅读(361) 评论(0) 推荐(0)
摘要:ElasticSearch的集群可自发现,只要配置相同的集群名称,默认为组播发现机制,默认情况下:http 端口:9200 需要打开给调用数据传输端口:9300 用于集群之间交换数据组播端口(UDP):54328上述端口一定不要让防火墙阻断,否则,无法完成集群。 阅读全文
posted @ 2015-03-26 14:22 wmx3ng 阅读(4857) 评论(0) 推荐(0)
摘要:参考来源:1.http://yhz.me/blog/Install-Ganglia-On-CentOS.html2.http://blog.csdn.net/sdlyjzh/article/details/26560585安装基本的php,curl,尽量装吧,相关的都安装好.更新源yum insta... 阅读全文
posted @ 2015-03-13 14:28 wmx3ng 阅读(362) 评论(0) 推荐(0)
摘要:先看一段代码host="master slave1 slave2 slave3 slave4 slave5"for i in $hostdo ssh $i "echo $HOSTNAME'done这是在master上执行的,最后打印出来全是master;这显然不是本意;查了之后,说是当用双引号时,... 阅读全文
posted @ 2015-02-28 16:00 wmx3ng 阅读(585) 评论(0) 推荐(0)
摘要:FROM:http://www.2cto.com/os/201303/192380.htmlCentOS修改用户最大进程数一般在/etc/security/limits.conf 中修改最大打开文件数和进程数,如:* soft noproc 102400* hard noproc 102400* s... 阅读全文
posted @ 2015-01-20 10:20 wmx3ng 阅读(1017) 评论(0) 推荐(0)
摘要:向ES集群中新加入节点,配置文件也没有什么问题,但是就是加不进去,这时候就需要检查一下防火墙是否开启.关闭即可 阅读全文
posted @ 2014-12-30 12:03 wmx3ng 阅读(1014) 评论(0) 推荐(0)
摘要:centos配置完免密码登录(注意修改配置文件,/etc/ssh/sshd_config),合并完公钥后,有的时候还得需要输入密码.这时候应该检查一下authorized_keys的权限问题.本机的正常情况下,应该为644,但是有的时候变成了664.修改一下就Okay了. 阅读全文
posted @ 2014-12-30 11:59 wmx3ng 阅读(162) 评论(0) 推荐(0)
摘要:FROM:http://josh-persistence.iteye.com/blog/1908549一、查看Jdk的安装路径:whereis javawhich java (java执行路径)echo $JAVA_HOMEecho $PATH备注:如果是windows中,可以使用:set java... 阅读全文
posted @ 2014-12-29 15:37 wmx3ng 阅读(366) 评论(0) 推荐(0)
摘要:FROM:http://tecadmin.net/install-firefox-on-linux/Firefox 33 has been released for Systems and Android on October 13, 2014 with various bug fixes and ... 阅读全文
posted @ 2014-12-26 11:27 wmx3ng 阅读(356) 评论(0) 推荐(0)
摘要:FROM:http://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/Google Chrome is a freeware web browser developed by Google. It was released ... 阅读全文
posted @ 2014-12-26 11:25 wmx3ng 阅读(389) 评论(0) 推荐(0)
摘要:FROM:http://tecadmin.net/install-opera-web-browser-in-centos-rhel-fedora/Opera is an modern web browser with modern style with powerful features. Its ... 阅读全文
posted @ 2014-12-26 11:21 wmx3ng 阅读(616) 评论(0) 推荐(0)
摘要:FROM:http://blog.sina.com.cn/s/blog_49d6d41c0101i0zs.html 1.一般安装了中文环境会默认安装了好多输入法,先删除了ibus sudo yum remove ibus --会将所有的输入法删除安装ibus,ibus-table sudo yum ... 阅读全文
posted @ 2014-12-20 19:58 wmx3ng 阅读(460) 评论(0) 推荐(0)
摘要:FROM:http://huangyandong.blog.51cto.com/1396940/1613096查看无线网卡型号lspci |grep Network #为BCM43142网卡安装需要的工具/包yum groupinstall 'Development Tools'yum instal... 阅读全文
posted @ 2014-12-20 19:33 wmx3ng 阅读(750) 评论(0) 推荐(0)
摘要:FROM:http://segmentfault.com/blog/lidonghao/1190000000372535在前一篇博文中,简单介绍了如何使用Process类来调用命令行的功能,那样使用Process会有一个很大的问题,就是可能会出现无限阻塞的情况,永远都无法返回结果。以下是Proces... 阅读全文
posted @ 2014-12-02 19:10 wmx3ng 阅读(1170) 评论(0) 推荐(0)
摘要:FROM:http://segmentfault.com/blog/lidonghao/1190000000372192ProcessBuilder类是J2SE 1.5在java.lang中新添加的一个新类,此类用于创建操作系统进程,它提供一种启动和管理进程(也就是应用程序)的方法。在J2SE 1.... 阅读全文
posted @ 2014-12-02 19:05 wmx3ng 阅读(494) 评论(0) 推荐(0)
摘要:FROM:http://blog.csdn.net/zklth/article/details/8937905SecureCRT 绝佳配色方案, 保护你的眼睛关键词:SecureCRT配色,SecureCRT设置颜色,Linux终端配色,Linux终端颜色设置.来源:我的有道笔记SecureCRT ... 阅读全文
posted @ 2014-12-01 15:45 wmx3ng 阅读(228) 评论(0) 推荐(0)
摘要:FROM:http://blog.csdn.net/jj12345jj198999/article/details/11891701在实际项目中,JAVA有时候需要调用C写出来的东西,除了JNI以外,我认为一种比较好的方法是JAVA调用Shell。先把C写出来的make成可执行文件,然后再写一个sh... 阅读全文
posted @ 2014-12-01 15:27 wmx3ng 阅读(486) 评论(0) 推荐(0)