Docker的Ubuntu镜像都是很精简的,没有ping指令的话,可以通过如下指令安装:
apt-get update -y
apt-get install inetutils-ping -y[......]Docker的Ubuntu镜像都是很精简的,没有ping指令的话,可以通过如下指令安装:
apt-get update -y
apt-get install inetutils-ping -y[......]比如有个FTP进程,想限速如何处理?查了下,找到个程序:trickle。
trickle是一款轻量级的用户空间带宽控制管理的工具,用来限制如浏览器Firefox等, FTP , SSH,curl,wget,scp等等使用网络带宽。
安装方式:
apt-get ins[......]老版的cron计划任务,日志输出到
/var/log/syslogdocker里的有输出的定时任务都会报错:
No MTA installed, discarding output解决办法,定时任务尾部增加重定向输出到log的参数,例:
>/var/l[......]我碰到”new elasticsearch package pre-installation script subprocess returned error exit status 1″报错的情况是,用了Ubuntu的Docker镜像,在其中安装Elasticsea[……]
Debian或者Ubuntu有的时候找不到deb的安装包,但是有rpm的,转换下其实也是可以用的,方法如下:
apt-get install alien
alien 1.rpm 1.deb generated相反,deb转rpm可以这样:
alien -r 1.de[......]安装8版本
curl -sL https://deb.nodesource.com/setup_8.x | bash -安装10版本
curl -sL https://deb.nodesource.com/setup_10.x | bash -执行安装指令:
s[......]直接命令行执行:
export http_proxy=127.0.0.1:1234
export https_proxy=127.0.0.1:3128再使用wget或者curl就自动使用代理了,关闭命令窗口后失效[……]
这个是对比过去的一键脚本,还需要编译,比较费时。下面针对Ubuntu系统整理了指令。
安装也很简单:
apt-get update -y
apt-get install python-setuptools curl -yeasy_install pippip insta[......]运维同学部署我开发的灰度发布系统时,遇到这么个奇葩事
/opt/lampp/lampp start服务启动指令执行后,服务并没有被拉起,报错日志也没有任何输出,这什么鬼= =尝试了下httpd -t检查配置也没发现毛病,没搞明白,加上忙着处理另一个更紧急的事情,就交[……]