apt-get

Ubuntu下使用Docker镜像和容器的基本方法

橙三吉。 提交于 2019-12-22 17:15:04
Docker 入门 文章目录 Docker 入门 Docker安装 Ubuntu下的docker安装步骤: 验证docker 开始使用 这里,首先加载的是已有的ubuntu镜像, 然后通过以下命令来基于镜像新建容器: Docker命令的补充拓展 Docker安装 Ubuntu下的docker安装步骤: 参照网址:https://blog.csdn.net/bingzhongdehuoyan/article/details/79411479 1.由于apt官方库里的docker版本可能比较旧,所以先卸载可能存在的旧版本: sudo apt-get remove docker docker-engine docker-ce docker.io 2.更新apt包索引: sudo apt-get update 3.安装以下包以使apt可以通过HTTPS使用存储库(repository): sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common 4.添加Docker官方的GPG密钥: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 5

debian 9 双显卡安装NVIDIA显卡驱动

半世苍凉 提交于 2019-12-22 14:37:17
https://www.cnblogs.com/hellxz/p/7865790.html 原文链接 http://blog.sina.com.cn/s/blog_67ea5c2b0102vjce.html https://blog.csdn.net/mhlwsk/article/details/51713530 本文最后编辑日期为2018.09.08 晚8点半,因为之前写的内容不够准确,而且官方wiki又在今年8月更新了内容,所以这里对之前的内容进行大幅修改,仅保留正确可行的方法------N卡独显的安装! 2018.09.27 update ! this article just suitable debian-live iso , if you use 650M iso, you will get a error "can't load kernel modules". Please certain you iso image ,good luck! 1、打开终端,root登录,使用如下命令查看自己的显卡型号 $ lspci -nn | egrep -i "3d|display|vga" 2、记下Nvidia显卡的型号与最前边的编号,比如下边是我的输出,标红处为需要记下的,请参考 00:02.0 VGA compatible controller [0300]: Intel

卸载重装MySQL

别说谁变了你拦得住时间么 提交于 2019-12-22 09:09:51
由于我出现了1045错误,在网上没有找到解决方案,按捺不住自己烦躁的心,直接对其进行了卸载,然后重新安装。 卸载过程: sudo rm /var/lib/mysql/ -R 删除mysql的数据文件 sudo rm /etc/mysql/ -R 删除mqsql的配置文件 sudo apt-get autoremove mysql* --purge sudo apt-get remove apparmor 自动卸载mysql的程序 安装过程: 1.apt-get update(更新源) 2.apt-get install mysql-server mysql-client 3.输入root密码,重新输入.. 4.测试是否成功,重启mysql。命令:service mysql restart 来源: https://www.cnblogs.com/papixia/p/7726310.html

circus docker image web 运行异常问题的解决

孤街浪徒 提交于 2019-12-22 07:59:33
经过查看官方文档,因为我使用的是python 较高版本,存在兼容问题,解决方法 修改基础镜像版本 代码如下: FROM python:2.7-slim-stretch LABEL AUTHOR="dalongrong" LABEL EMAIL="1141591465@qq.com" RUN apt-get update && apt-get install -y --reinstall build-essential \ && pip install circus circus-web chaussette \ && apt-get remove -y --purge build-essential \ && rm -rf /var/lib/apt/lists/* 说明 暂时对于python 3,其他版本的没有测试,根据官方文档应该是支持到3.3 github 代码上有 关于3.7 的tox 测试,具体还得再仔细看看源码,分析下原因 参考资料 https://github.com/circus-tent/circus https://circus.readthedocs.io/en/latest/tutorial/step-by-step/ https://github.com/rongfengliang/circus-docker 来源: https://www.cnblogs

GD Library extension not available

我的梦境 提交于 2019-12-22 06:10:57
在后台文章上传封面时,遇到了这样一个错误 GD Library extension not available with this PHP installation Ubuntu Nginx 自己在本地开发环境上用到了Intervention/image,但是部署代码到服务器后为考虑到开启GD扩展,导致在使用时遇到了这个错误,通过搜索引擎,找到了解决方案。简单概括就是要安装对应版本的GD库。以下内容是stackoverflow上一个回答的搬运分享。 GD图形扩展库是一个可动态处理图片的PHP扩展。在Ubuntu系统上应该手动的去安装它: PHP5: sudo apt-get install php5-gd PHP7.0: sudo apt-get install php7.0-gd PHP7.1: sudo apt-get install php7.1-gd PHP7.2: sudo apt-get install php7.2-gd PHP7.3: sudo apt-get install php7.3-gd 以上就是对应Ubuntu各版本的命令操作。你可以通过以下命令验证GD扩展是否已启用: php -i | grep -i gd 正常的输出结果应该是这样的: GD Support => enabled GD headers Version => 2.1.1-dev gd

Install chinese input method in Ubuntu12.04

那年仲夏 提交于 2019-12-22 05:40:19
Refer to http://www.2cto.com/os/201207/144189.html Ubuntu 12.04中文输入法的安装 Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。 在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。这里我们主要说下Ubuntu英文系统中,中文输入法的安装。 安装输入法的第一步,是安装语言包。我们选择System Settings-->Language Support-->Install/Remove Languages,将弹出以下窗口: www.2cto.com 输入密码后,系统会安装简体中文语言包。 第二步,安装IBus框架,在终端输入以下命令: sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 启动IBus框架,在终端输入: # im-switch可以查看和配置当前输出法引擎的列表,并配置当前激活的输入法引擎。 im-switch -s ibus 安装完IBus框架后注销系统,保证更改立即生效。 第三步:安装拼音引擎 有下面几种常用选择: IBus拼音:sudo apt-get install ibus-pinyin

Installing Java 8 on a Google Compute Engine instance with apt-get

老子叫甜甜 提交于 2019-12-22 05:21:15
问题 I ran this command with apt-get but have received this error. I am not too sure how to resolve this. Is this come core mistake I have made using apt-get, asking for something impossible? Does anyone understand the root cause that prevents it from installing? sudo apt-get install openjdk-8-jdk Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are

Installing Java 8 on a Google Compute Engine instance with apt-get

痴心易碎 提交于 2019-12-22 05:21:14
问题 I ran this command with apt-get but have received this error. I am not too sure how to resolve this. Is this come core mistake I have made using apt-get, asking for something impossible? Does anyone understand the root cause that prevents it from installing? sudo apt-get install openjdk-8-jdk Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are

ubuntu 安装 redis desktop manager

社会主义新天地 提交于 2019-12-22 02:16:43
在网上下载redis-desktop-manager_0.8.3-120_amd64.deb install redis-desktop-manager_0.8.3-120_amd64.deb Package zlibc is not installed. 根据报错,需要安装zlib1g-dev,但是直接安装zlib1g-dev,也会失败,所以要先运行 sudo apt-get -f install sudo apt-get -f install 安装zlib1g-dev 安装redis-desktop-manager_0.8.3-120_amd64.deb 6.搜索是否安装成功,打开redis-desktop-manager,连接redis,然后是成功连接,至此,安装完成 来源: https://www.cnblogs.com/wanthune/p/10831683.html

ubuntu18.04搭建appium环境

岁酱吖の 提交于 2019-12-22 00:43:10
ubuntu18.04搭建appium环境 一、安装nodejs和npm # 首先更新源 sudo apt - get update # 执行命令,此方法安装的版本比较老旧 sudo apt - get install nodejs sudo apt - get install npm # 升级nodejs # 清除node缓存 sudo npm cache clean - f # 安装node版本管理工具'n' sudo npm install n - g # 使用版本管理工具安装指定node或者升级到最新node版本 sudo n stable # 查看版本号 node - v npm - v 二、使用npm全局安装appium和appium-doctor npm install - g appium npm install - g appium - doctor # 或者使用 sudo npm install - g cnpm - registry = http : // registry . npm . taobao . org #(安装cnpm是因为安装appium时候的chrome drive 是需要连外网的,这里用cnpm能比较好解决这个问题 用法等同于NPM) sudo cnpm install - g appium #(-g是全局的意思) appium - v #