随笔分类 -  Linux

摘要:1 1、恢复备份好的snapshot 2 3 1.1恢复snapshot_1下的所有index 4 5 POST _snapshot/my_backup/snapshot_1/_restore 6 7 1.2恢复snapshot_1下指定的index 8 9 POST /_snapshot/my_b 阅读全文
posted @ 2017-04-25 16:59 PinXiong 阅读(480) 评论(0) 推荐(0)
摘要:Elasticsearch备份数据 1、建立备份目录 POST _snapshot/my_backup/ { "type": "fs", "settings": { "location": "/mount/backups/my_backup", "max_snapshot_bytes_per_sec 阅读全文
posted @ 2017-04-25 16:29 PinXiong 阅读(580) 评论(0) 推荐(0)
摘要:工作中经常会用到的指令 1 # 查询topic为test的partition数量 2 ./kafka-topics.sh --zookeeper localhost:2181/kafka --topic test --describe 3 4 5 # 查看kafka上所有的topic 6 ./kaf 阅读全文
posted @ 2017-04-25 10:11 PinXiong 阅读(288) 评论(0) 推荐(0)
摘要:启动MySQL数据库service mysql start查看MySQL进程ps -ef |grep mysql查看MySQL端口号cd /etc/init.d/netstat -atnp | grep mysql 阅读全文
posted @ 2016-01-08 16:52 PinXiong 阅读(222) 评论(0) 推荐(0)
摘要:最近在ubuntu 12.10上执行sudo apt-get update 命令后出现了如下错误: Ign http://extras.ubuntu.com natty/main TranslationIndex Err http://extras.ubuntu.com natty/... 阅读全文
posted @ 2015-10-26 22:35 PinXiong 阅读(411) 评论(0) 推荐(0)
摘要:You can open the file ~/.bashrc and then choose the force_color_prompt=yes otherwise, you can change the color in PSI. 注意:使用方法:# PS1='自定义内容'注意两边的单引号示例 阅读全文
posted @ 2015-10-22 15:16 PinXiong 阅读(205) 评论(0) 推荐(0)
摘要:1.start cd usr/local/nginx/sbin ./nginx 2.restart kill -HUP PID #主进程号或进程号文件路径 #或者使用 cd /usr/local/nginx/sbin ./nginx -s reload 3.shutdown #查询nginx PID 阅读全文
posted @ 2015-10-20 17:40 PinXiong 阅读(861) 评论(0) 推荐(0)
摘要:The steps for installing the nginx on Ubuntu below. 1.install the packages first. apt-get install gcc apt-get install libpcre3 libpcre3-dev apt-get in 阅读全文
posted @ 2015-10-20 17:09 PinXiong 阅读(309) 评论(0) 推荐(0)
摘要:在Ubuntu中安装中文输入法确实比较麻烦,特别是英文版的Ubuntu系统Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。... 阅读全文
posted @ 2014-10-04 20:03 PinXiong 阅读(1307) 评论(0) 推荐(0)
摘要:vim toolis a commom editor, for the sake of improving effeicient, it is necessary to configurate vim config file. The following comands will help you.... 阅读全文
posted @ 2014-04-28 22:17 PinXiong 阅读(197) 评论(0) 推荐(0)
摘要:After having installed Ubuntu OS, you should update config file for root account. The commands are listed as follow:vi /etc/lightdm/lightdm.conf #open... 阅读全文
posted @ 2014-04-28 21:58 PinXiong 阅读(164) 评论(0) 推荐(0)
摘要:There are so many commands of Ubuntu, we just need to know useful and high-frequency commands. I have collected a little common commands which may be ... 阅读全文
posted @ 2014-04-25 21:23 PinXiong 阅读(226) 评论(0) 推荐(0)