[root@kunpeng82 ryu]# pwd /root/ryu [root@kunpeng82 ryu]# vi /etc/systemd/system/openflow.service [Unit] Description = openflow controler [Service] #E ...
分类:
其他好文 时间:
2020-06-17 11:00:40
阅读次数:
51
安装及配置 修改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
问题:常用命令“ll”失效或命令未找到 原因: "ll"命令不是linux的基本命令, 它是"ls -l"的别名, 部分版本并不直接支持“ll”命令输出。 ###解决方法: 运行“vi ~/.bashrc” 查看该文件里是否有“alias ll='ls -l'”这样的数据, 如有,将数据前的“#”去 ...
分类:
系统相关 时间:
2020-06-17 10:45:31
阅读次数:
102
记录所有用户登录系统的任何操作日志,以便有据可查。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
1.切换到root用户下,怎么切换就不用说了吧,不会的自己百度去.2.添加sudo文件的写权限,命令是:chmod u+w /etc/sudoers3.编辑sudoers文件vi /etc/sudoers找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL ...
分类:
其他好文 时间:
2020-06-16 18:17:50
阅读次数:
122
全局的是在/etc目录下(/etc/profile)用户个人的是在用户的家目录下(~/.profile) 查看: 全局:cat /etc/profile 个人:cat ~/.bash_profile 编辑: 全局:vi /etc/profile 个人:vi ~/.bash_profile ...
分类:
系统相关 时间:
2020-06-16 16:51:46
阅读次数:
90
一、目录及配置文件: 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
Ubuntu16.04设置静态IP或动态ip(DHCP) 设置静态IP 1,vim编辑/etc/network/interfaces 网络配置文件 sudo vim /etc/network/interfaces 2,码添加以下代码 auto ens33 iface ens33 inet stati ...
分类:
系统相关 时间:
2020-06-15 21:14:56
阅读次数:
165
1.安装 bash <(curl -L -s https://install.direct/go.sh) 2.修改配置文件 vim /etc/v2r/config.json { "log": { "error": "", "loglevel": "info", "access": "" }, "in ...
分类:
其他好文 时间:
2020-06-15 21:14:37
阅读次数:
89