随笔分类 -  linux

command of linux
摘要:1. 备份 2. 修改 在[mysqld]下修改为bind address=0.0.0.0 没有的话就直接加上 3. 重启 `service mysql restart` 阅读全文
posted @ 2018-05-30 09:08 随便了888 阅读(915) 评论(0) 推荐(0)
摘要:test.txt原文内容 ` http://jsldfjaslfjsldfjasl/test?jlsdfjsalfjslfd ` 使用sed替换 ` sed ri 's/(http:\/\/)[^\/] (\/test)/\1localhost:8888\2/' test.txt ` test.tx 阅读全文
posted @ 2018-05-25 16:30 随便了888 阅读(499) 评论(0) 推荐(0)
摘要:"ubuntu set port" 阅读全文
posted @ 2018-04-12 17:43 随便了888 阅读(113) 评论(0) 推荐(0)
摘要:"reference" 用'&&' 当第一个命令正确执行完毕后再执行后续的命令 用';' 不管第一个命令是否出错都执行下一个命令 阅读全文
posted @ 2018-04-04 15:02 随便了888 阅读(166) 评论(0) 推荐(0)
摘要:"reference" $( )与 (反引号)都是用来做命令替换(command substitution)用的 run command 3, 2, 1 command1 $(command2 $(command3)) ${ }用来作变量替换 A=1 echo ${A}0 print 10 阅读全文
posted @ 2018-04-04 13:57 随便了888 阅读(167) 评论(0) 推荐(0)
摘要:"doc link" "uwsgi link" "video link" 阅读全文
posted @ 2018-03-08 17:54 随便了888 阅读(119) 评论(0) 推荐(0)
摘要:set nocompatible set encoding=utf8 set guioptions-=T set number set guifont=consolas:h12 source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim filetype off filetype plugin indent on syntax on... 阅读全文
posted @ 2018-01-11 16:33 随便了888 阅读(379) 评论(0) 推荐(0)
摘要:vi /urs/bin/yum 将#!/usr/bin/python的python改为python2.x(你系统的python2的版本) 阅读全文
posted @ 2017-12-20 00:18 随便了888 阅读(341) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-12-04 17:49 随便了888 阅读(3) 评论(0) 推荐(0)
摘要:#!/bin/bash #@author vickey main() { TMP_PATH="/home/test" echo "are you sure to del all files in test/?" echo "y/n?: " read answer if [ ${answer} == "y" -o ${answer} == "Y" ] then restart ... 阅读全文
posted @ 2017-11-28 10:31 随便了888 阅读(177) 评论(0) 推荐(0)
摘要:rm /usr/bin/python ln -s /usr/local/bin/python3.x /usr/bin/python sybomlic 安装目录 系统目录 阅读全文
posted @ 2017-08-20 14:36 随便了888 阅读(3790) 评论(0) 推荐(0)
摘要:转自:http://www.cnblogs.com/qingtingzhe/articles/5008902.html 阅读全文
posted @ 2017-08-13 00:28 随便了888 阅读(137) 评论(0) 推荐(0)
摘要:下载地址:http://filehippo.com/zh/download_vmware-workstation-pro/ 许可证地址:http://www.zdfans.com/5928.html 阅读全文
posted @ 2017-08-12 11:30 随便了888 阅读(202) 评论(0) 推荐(0)
摘要:shell learning note MAIN="/usr/local/" # 变量大写 STATUS="$MAIN/status" # 美元符加字符串是引用变量值,而美元符加数字表示命令行参数 echo "some words" >>$STATUS/l... 阅读全文
posted @ 2017-07-31 12:51 随便了888 阅读(184) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-06-06 23:25 随便了888 阅读(2) 评论(0) 推荐(0)
摘要:vim normal模式下 1、c+i+分隔符,删除分隔符里面的内容(不删除分隔符,c+a+分隔符则包括分隔符一起删掉) 如将光标位于'%s : %d years old ' 中,此时按c+i+' 则可以将'%s : %d years old ' 变为' ' 2、y+i+分隔符,y在vim是复制,与 阅读全文
posted @ 2017-03-23 23:21 随便了888 阅读(1108) 评论(0) 推荐(0)
摘要:参考资料:http://easwy.com/blog/archives/advanced-vim-skills-basic-move-method/ 在normal模式下使用如下命令 1、h, j, k, l分别代表向左、下、上、右移动 2、用CTRL b和CTRL f来进行翻页,我们的手就不用离开 阅读全文
posted @ 2017-03-22 00:02 随便了888 阅读(1029) 评论(0) 推荐(0)