一:第一个shell脚本 [root@localhost ~]# cat /etc/shells [root@localhost ~]# vi first.sh cd /boot/ pwd ls -lh vml* [root@localhost ~]# chmod +x first.sh [root ...
分类:
系统相关 时间:
2020-06-17 12:38:23
阅读次数:
85
[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
问题:常用命令“ll”失效或命令未找到 原因: "ll"命令不是linux的基本命令, 它是"ls -l"的别名, 部分版本并不直接支持“ll”命令输出。 ###解决方法: 运行“vi ~/.bashrc” 查看该文件里是否有“alias ll='ls -l'”这样的数据, 如有,将数据前的“#”去 ...
分类:
系统相关 时间:
2020-06-17 10:45:31
阅读次数:
102
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
Docker-远端访问 修改文件 vi /lib/systemd/system/docker.service?前:ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock后:ExecStart=/ ...
分类:
其他好文 时间:
2020-06-15 17:52:40
阅读次数:
70
因项目需要,需要使用sonarQube对代码进行扫描并查看,因对sonarQube不熟悉,所以先在本机搭建测试环境。 参考了张老师的博客:http://www.cnblogs.com/danzhang/p/5205610.html 参考百度文库文章:http://wenku.baidu.com/vi ...
本来不想写任何关于vim的文章的,无奈我今天又忘记怎么退出vim了,常用命令是ESC,然后:wq(保存并退出),:q!(不保存并强制退出),i进入vim模式。另外还有其它的,我可能都不会用到。。。按ESC键 跳到命令模式,然后: :w 保存文件但不退出vi :w file 将修改另外保存到file中 ...
分类:
系统相关 时间:
2020-06-14 01:32:11
阅读次数:
369
Zookeeper+Kafka集群安装配置 (Linux系统下安装步骤) 依赖环境搭建 安装 Java1.8 (三台机器统一) 1. 把Java的源文件包java_1.8.0_171放入 /opt目录中,编辑>vi /etc/profile 追加以下内容到文件中,保存:wq后退出 JAVA_HOME ...
分类:
系统相关 时间:
2020-06-12 20:20:02
阅读次数:
89
$ vi /lib/systemd/system/redis6379.service [Unit]Description=redisAfter=network.target [Service]Type=forkingPIDFile=/var/run/redis/redis_6379.pidExecS ...
分类:
其他好文 时间:
2020-06-12 19:57:36
阅读次数:
61