编辑模式转输入模式i:inserta:append光标所在处后方输入I:光标所在处首行A:光标所在处尾行o:光标所在处下方打开一个新行O:光标所在处上方打开一个新行一次编辑多个文件例如:[root@localhost~]#vimissuefstabyum.conf-o-o上下分隔ctrl+w+左右镜头切换-O水平分隔ctrl+w+上下切换打开多个文件跳转::next下一个:prev上一个:firs
分类:
系统相关 时间:
2020-06-17 16:45:34
阅读次数:
79
一、使用for循环语句的应用示例 1、根据姓名列表批量的添加用户 1)创建用户的列表文件 [root@localhost ~]# vim /root/users.txt zhangsan lisi wangwu 2)编辑批量添加用户的脚本 [root@localhost ~]# vim uaddfo ...
分类:
系统相关 时间:
2020-06-17 12:54:58
阅读次数:
80
官网:https://www.iterm2.com/功能说明:https://www.iterm2.com/features.html公司要求使用正版软件办公,一直以来习惯了使用secureCRT,现在需要替换一款免费的软件,如果你跟我一样,iTerm2绝对是最好的选择。一、类似crt的sessio... ...
分类:
系统相关 时间:
2020-06-17 12:43:11
阅读次数:
107
Nginx Https配置 应用HTTPS后,Firefox 提示Nginx网站 “此页面使用较弱加密”。 cd /etc/nginx/conf.d sudo nano nginx.conf sudo nginx -s reload nginx.conf listen 80; listen 443 ...
分类:
Web程序 时间:
2020-06-17 10:56:50
阅读次数:
177
安装及配置 修改docker-compose文件 vim docker-compose.yml gitlab: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'gitlab_1' environment: GITLAB_OMNI ...
分类:
其他好文 时间:
2020-06-17 10:48:28
阅读次数:
45
记录所有用户登录系统的任何操作日志,以便有据可查。1.编辑/etc/profile文件vim/etc/profilehistoryUSER=`whoami`USER_IP=`who-uami2>/dev/null|awk‘{print$NF}‘|sed-e‘s/[()]//g‘`if["$USER_IP"=""];thenUSER_IP=`hostname`fiif[!-d/var/log/
分类:
系统相关 时间:
2020-06-17 10:43:12
阅读次数:
63
记录所有用户登录系统的任何操作日志,以便有据可查。1.编辑/etc/profile文件vim/etc/profilehistoryUSER=`whoami`USER_IP=`who-uami2>/dev/null|awk‘{print$NF}‘|sed-e‘s/[()]//g‘`if["$USER_IP"=""];thenUSER_IP=`hostname`fiif[!-d/var/log/
分类:
系统相关 时间:
2020-06-17 10:33:52
阅读次数:
61
详细看网址:https://blog.csdn.net/qq_37345604/article/details/80556639 wget在线下载 wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2 ...
分类:
系统相关 时间:
2020-06-16 23:25:05
阅读次数:
148
一、目录及配置文件: cd /etc/netplan vim 01-network-manager-all.yaml 二、静态ip配置方式: 01-network-manager-all.yaml.static # Let NetworkManager manage all devices on t ...
分类:
系统相关 时间:
2020-06-16 13:32:16
阅读次数:
165
一、安装环境如下: Linux版本:6.9 Tomcat版本:9.x 另外放开443端口的访问限制 二、本次试验SSL证书采购自阿里云上的GeoTrust 专业版 OV SSL 采购SSL证书注意以下几点: 1、域名类型: 通配符域名 大量子域名的超值选择!一张证书可以同时保障多个子域名的安全加固! ...
分类:
其他好文 时间:
2020-06-16 13:21:45
阅读次数:
66