Linux
文章平均质量分 92
是但啦求其
Just don't let me down.
展开
-
System has not been booted with systemd as init system (PID 1). Can‘t operate.问题解决方法
用window10下WSL使用Ubuntu来用Docker当我使用命令sudo systemctl start docker的时候报错:System has not been booted with systemd as init system (PID 1). Can't operate.查了原因:如果是一般的Linux操作系统,可能是因为Linux中没有使用systemd,想用systemd命令来管理Linux上的服务,因此会报错,很可能是使用的是经典的SysV init(sysvinit)系.原创 2020-12-31 22:17:39 · 74359 阅读 · 17 评论 -
Ubuntu20.04 设置开机自启
Ubuntu20.04 设置开机自启第一步执行 ls /lib/systemd/system 你可以看到有很多启动脚本,其中就有我们需要的 rc-local.service第二步打开 rc-local.service脚本内容,内容如下:一般正常的启动文件主要分成三部分[Unit] 段: 启动顺序与依赖关系[Service] 段: 启动行为,如何启动,启动类型[Install] 段: 定义如何安装这个配置文件,即怎样做到开机启动可以看出,/etc/rc.local 的启动顺序是在网络原创 2020-12-23 10:40:37 · 23235 阅读 · 6 评论 -
Ubuntu 20.04国内镜像源
阿里云源deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multivers原创 2020-12-21 11:37:34 · 2609 阅读 · 0 评论 -
Ubuntu安装MySQL8.0,并用Navicat远程连接
1.安装MySQLsudo apt-get install mysql-server2.查看默认用户名和密码新版的MySQL安装后,默认用户名不是root,为了方便,一般我们需要修改成我们想要的用户名和密码。进入配置文件:root@vivobook:/home/thanlon# vim /etc/mysql/debian.cnfdebian.cnf: # Automatically generated for Debian scripts. DO NOT TOUCH! [client]原创 2020-09-22 15:16:12 · 3011 阅读 · 5 评论 -
docker镜像加速配置
国内从 DockerHub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务,例如:网易:https://hub-mirror.c.163.com/阿里云:https://<你的ID>.mirror.aliyuncs.com七牛云加速器:https://reg-mirror.qiniu.com阿里云镜像获取地址:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors,原创 2020-09-09 14:28:48 · 231 阅读 · 1 评论 -
VNC远程连接阿里云ECS服务器(Ubuntu桌面可视化)
# 更新软件库apt-get update# 升级软件apt-get upgrade安装x-window-system-core(X server,X client,X protocol)apt-get install x-window-system-core安装桌面环境管理程序gnome(实现X protocol的软件)apt-get install gnome-panel gnome-settings daemon metacity nautilus gnome-terminal安原创 2020-09-06 22:22:17 · 479 阅读 · 0 评论