linux服务器上编辑 .ini 文件时卡死,关闭连接工具后重新进入操作该 .ini 文件时,会提示: E325: ATTENTION Found a swap file by the name ".xxx.ini.swp" (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the…
仔细想想,这个问题遇到很多次了,之前一直以为很复杂,一搜索发现解决这么简单,记录一下做备忘. grep test XXX.log Binary file app.log matches 此时使用-a参数接口. grep -a test XXX.log -a, --text equivalent to --binary-files=text,即让二进制文件等价于文本. 注:zgrep遇到同样问题,解决方法也是类似.…
解决方法: 登录出现了这个错误提示:553 Could not create file SELinux设置如下 查看SELinux设置 [root@localhost ~]# getsebool -a|grep ftp allow_ftpd_anon_write –> off allow_ftpd_full_access –> off allow_ftpd_use_cifs –> off allow_ftpd_use_nfs –> off ftp_home_dir –> on…
vi/vim输入中文乱码,无法输入中文解决方法 编辑/etc/vimrc或者/etc/virc,加入以下内容即可 set encoding=UTF-8 set langmenu=zh_CN.UTF-8 language message zh_CN.UTF-8 set fileencoding=utf-8 PS: 如果你觉得文章写得不错,希望看到更多类似的好文章,可以点个赞,我将更加努力写出更多好文章.你的小小鼓励,是我前进的最大动力!…