docker容器搭建tmate服务器
本次搭建tmate 服务器选用ubuntu18.04基础镜像
- 进入docker容器内更新apt-get
- 安装基础工具 vim:apt install vim,添加ubuntu18.04的apt下载源至/etc/apt/source.list
- 安装aclocal:apt-get install automake
- error: possibly undefined macro: AC_SEARCH_LIBS: 缺少pkgconf: apt-get install pkg-config,安装完成后需要重新配置:autoreconf -i –force
- “error: libevent not found”:apt-get install libevent-dev
- 缺少”curses:apt-get install libncurses5-dev
7.configure: error: “msgpack >= 1.2.0 not found” :apt install libmsgpack-dev - configure: error: “libssh >= 0.7.0 not found”:apt-get install libssh-dev
- 缺少locale-gen工具: apt-get -y install locales,locale-gen “en_US.UTF-8”
- 安装openssh:apt-get install ssh,然后生成密钥
- 从git上拉去tmate服务器源码,docker cp至容器内编译安装 ./autogen.sh && ./configure && make