随笔分类 -  linux

摘要:找到vim配置文件/etc/vimrc 添加以下代码 set fileencodings=utf-8,gb2312,gbk,gb18030 set termencoding=utf-8 set fileformats=unix set encoding=prc 现在基本能正常查看文件 如果不能就在打 阅读全文
posted @ 2017-05-17 17:58 米斯特尔曾 阅读(875) 评论(0) 推荐(0)
摘要:1.启动一个程序并且在后台执行,关闭terminal也不会关闭 nohup command & 会自动当前文件夹下生成nohup.out文件,记录程序执行时的输出(例如一些程序的log输出) 2.ps -a | grep main 3.安装lrzsz yum -y install lrzsz rz 阅读全文
posted @ 2017-05-05 17:26 米斯特尔曾 阅读(169) 评论(0) 推荐(0)
摘要:#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT#/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT#/sbin/iptables -I INPUT -p tcp --dport 3306 - 阅读全文
posted @ 2017-05-04 21:42 米斯特尔曾 阅读(157) 评论(0) 推荐(0)
摘要:1.查看是否已存在 yum list installed | grep mysql 2.卸载已安装的mysql yum -y remove mysql-libs.x86_64 3.安装mysql yum list | grep mysql 或 yum -y list mysql* 查看yum上的my 阅读全文
posted @ 2017-05-04 21:16 米斯特尔曾 阅读(94) 评论(0) 推荐(0)