码迷,mamicode.com
首页 >  
搜索关键字:shell ssh    ( 43887个结果
ubuntu ssh登陆不上
查看是否启动 ps -e | grep sshd 未启动则启动服务 /etc/init.d/ssh start 附:#重启SSH服务 /etc/init.d/ssh restart #关闭SSH服务 /etc/init.d/ssh stop 未安装则安装服务 apt-get update apt-g ...
分类:系统相关   时间:2021-05-24 09:07:51    阅读次数:0
Markdown快速入门(typora)
Markdown快速入门(typora) 1、代码块: // 代码块语法 ?```Java(语言类型) ?```shell 1.java代码块 public class HelloWorld { public static void main(String []args) { System.out. ...
分类:其他好文   时间:2021-05-24 08:54:58    阅读次数:0
Linux shell(1)
1.免交互处理 在免交互输出处理中可以使用重定向将输出内容输入到黑洞文件/dev/null中。 [root@localhost ~]# echo password | passwd --stdin user &> /dev/null 2.I/O交互标准输入:从此设备接收用户输入数据标准输出:通过此设 ...
分类:系统相关   时间:2021-05-24 08:35:13    阅读次数:0
Xshell 无法连接腾讯云服务器 No supported authentication methods available
主要有两个问题: 1.未打开密码登录方式 输入 vi /etc/ssh/sshd_config 找到 PasswordAuthentication 设置为 yes。 记得重启ssh:输入 systemctl restart sshd 2. 没有创建对应的用户 腾讯云默认的用户是lighthouse, ...
分类:系统相关   时间:2021-05-24 08:11:48    阅读次数:0
git shell自动打tag
#拿出当前匹配的test_ca_v2.1最近版本号 latelyTag=$(git describe --match "test_ca_v2.1*" --abbrev=0 --tags $(git rev-list --tags --max-count=1)) #版本前缀 tagPre="test_ ...
分类:系统相关   时间:2021-05-24 07:54:48    阅读次数:0
本地war包项目结合tomcat打包成docker镜像,推送到私有镜像库
基本描述 供应商提供了war格式的项目,需要部署在rancher上,本文记录从war包打docker镜像到云平台镜像库的过程。 材料准备 war包 Dockerfile 编写 Dockerfile编写 FROM tomcat:8.5 #基础镜像,一切从这里开始,运行war包需要用到tomcat,版本 ...
分类:其他好文   时间:2021-05-24 07:33:40    阅读次数:0
shell 脚本中常用的内置变量
在 Bash 解释器中,内置了许多变量,这些变量的功能是解释器自带的,我们在编写shell脚本时如果能灵活的使用它们,对脚本的编写效率以及差错大有帮助, 下面一一介绍这些变量 $FUNCNAME、$LINENO、$PWD FUNCNAME和LINENO 变量经常用于脚本的调试 FUNCNAME 表示 ...
分类:系统相关   时间:2021-05-24 07:09:39    阅读次数:0
十六、Ansible自动化与http服务器搭建
##1.使用ansible的playbook实现自动化安装httpd 配置ansible主机文件 [root@localhost ~]# vim /etc/ansible/hosts [websrvs] 10.50.100.8 配置ansible与管理端的ssh连接 [root@localhost ...
分类:Web程序   时间:2021-05-24 07:09:02    阅读次数:0
Ubuntu远程root用户登录
Ubuntu默认不能直接通过root用户远程登录 如xshell登录,密码正确,提示如下: 这是因为在sshd_config中定义了 1、修改配置: vi /etc/ssh/sshd_config 2、通过/输入PermitRootLogin 快速定位到要修改的行 3、将#PermitRootLog ...
分类:系统相关   时间:2021-05-24 06:45:24    阅读次数:0
kvm宿主机删除br哦网卡
先用ifconfig br_name down 停掉网桥 再用brctl delbr br_name 删除网桥 为了方便,我编写了shell脚本来删除网桥 #!/bin/bash #本脚本删除的是br-开头的网桥 BRIDGE_LIST=$(sudo brctl show | cut -f 1 | ...
分类:其他好文   时间:2021-05-24 06:19:17    阅读次数:0
43887条   上一页 1 ... 14 15 16 17 18 ... 4389 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!