No more than code.
sudo su - 回车进入根目录ssh 用户名@IP 例如:ssh root@127.0.0.1解决
Permission denied, please try again.
/etc/ssh/sshd_configPermitRootLogin yessudo service ssh restartmac 本身安装了 ssh 服务,默认情况下不会开机自启
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plistsudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plistsudo launchctl list | grep ssh- 0 com.openssh.sshdpwd 查看目录路径
发版:/data/web-static/aries
rm -f index.html // 删除文件 rm -rf static // 删除文件夹 rz // 点击回车选择上传 unzip dist.zip // 解压
查看日志: sh creditfrontol-exec.sh cd ../logs/creditfrontol tail -f creditfrontol.log //查看日志 cat creditfrontol.log | grep ‘关键字’ -C20 //检索
docker exec -it integratedqueryApplicationImpl /bin/bash
安装 Ngixn 需要下面几个工具(点击下载): gzip 模块需要 zlib 库 rewrite 模块需要 pcre 库 ssl 功能需要 openssl 库 Nginx 包
修改代理配置: cd /usr/local/nginx/conf vim nginx.conf
下载 sz 上传 rz
重启: cd /usr/local/nginx/sbin ./nginx -s reload
列出
| ll 列出详细信息 | ls a* 列出当前目录下以字母 a 开头的文件 |
| ls 列出文件名或目录名 | ls *.doc 列出当前目录下以 .doc 结尾的文件 |
复制
| cp afile afile.bak 把 afile 复制为新文件 afile.bak | cp * /tmp 把当前目录下所有未隐藏文件复制到/tmp/ |
| cp afile /home/bible/ 把 afile 从当前目录复制到/home/bible/ |
移动/重命名
| mv aflie bfile 将 afile 重命名为 bfile | mv afile /tmp 把当前目录下的 afile 移动到/tmp/目录下 |
删除
| rm afile 删除文件 afile | rm _ 删除当前目录下的所有未隐藏文件 |
| rm -rf domed 删除 domed 目录以及它所包含的所有内容 | rm -i a_ 删除当前目录下所有以字母 a 开头的文件,并且在每次删除时,提示用户进行确认 |
配置参考(注释信息,需查源文件)
安装 lrzsz: brew install lrzsz