上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 77 下一页
摘要: 答: git cherry-pick <another-branch's commit-id> 阅读全文
posted @ 2019-06-17 18:35 Jello 阅读(665) 评论(0) 推荐(0)
摘要: 答: 需要首先指定两个环境变量CROSS_COMPILE和ARCH 如交叉编译arm64的程序: export CROSS_COMPILE="aarch64-linux-gnu-";export ARCH="arm64" 阅读全文
posted @ 2019-06-17 16:54 Jello 阅读(1792) 评论(0) 推荐(0)
摘要: 答: sudo apt-get install mercurial 阅读全文
posted @ 2019-06-17 11:30 Jello 阅读(1477) 评论(0) 推荐(0)
摘要: 答:源码编译安装最新的vim 以redhat为例: 1. 移除旧的vi,vim sudo yum remove vi vim -y 2. 安装ncurses库 sudo yum install ncurses-devel 3. 获取源码 git clone https://github.com/vi 阅读全文
posted @ 2019-06-14 19:06 Jello 阅读(2269) 评论(0) 推荐(1)
摘要: 答: 向~/.bashrc中添加如下内容: alias vi=vim 阅读全文
posted @ 2019-06-14 18:39 Jello 阅读(1370) 评论(0) 推荐(0)
摘要: 答: 在$前加转义符\ 如: \$ 阅读全文
posted @ 2019-06-14 17:16 Jello 阅读(358) 评论(0) 推荐(0)
摘要: 1. 安装epel-release yum install epel-release 2. 安装webstatic-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 3. 此时就可以安装任意软件了 yu 阅读全文
posted @ 2019-06-14 16:53 Jello 阅读(1847) 评论(0) 推荐(0)
摘要: 答: cat /etc/redhat-release 阅读全文
posted @ 2019-06-14 16:30 Jello 阅读(2336) 评论(0) 推荐(0)
摘要: 答: 启动容器时传入-w <work_dir>参数即可,如: docker run -it -w <work_dir> <container_image_name> <command> 示例: docker run -it -w /home/jello centos /bin/bash 参数解析: 阅读全文
posted @ 2019-06-12 16:38 Jello 阅读(9833) 评论(0) 推荐(1)
摘要: 答:在启动容器时使用-v指定宿主机目录和要映射到的容器内部目录,语法如下: docker run -it -v <host_dir>:<container_dir> <container_image_name> <command> 示例: docker run -it -v /home/jello: 阅读全文
posted @ 2019-06-12 15:56 Jello 阅读(1467) 评论(0) 推荐(1)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 77 下一页