
Ubuntu
ubuntu
ko_oi
你愁啥
展开
-
ubuntu忘记密码解决办法
进入单用户模式: 1,在开机引导到GRUB等待界面(GRUB loading, please wait…)这里的时候按下ESC键来进入启动菜单,选择相应内核版本的Recovery Mode,按e键进入编辑状态。 2,移动光标,将”ro recovery nomodeset“修改为"rw single init=/bin/bash"以后 按ctrl+X就可以即进入单用户模式,倒数第四行。 ...原创 2019-12-25 09:26:01 · 728 阅读 · 0 评论 -
ubuntu系统优化
vim /etc/security/limits.conf root soft core unlimited root hard core unlimited root soft nproc 1000000 root hard nproc 1000000 root soft n...原创 2019-12-25 09:25:12 · 428 阅读 · 1 评论 -
ubuntu常用指令
# apt list #列出已经安装的软件包 # apt install apache2 #安装软件包 # apt remove apache2 #卸载软件包但是保留配置文件 # apt purge apache2 #卸载软件包删除配置文件 # apt update #更新本地软件包列表索引,修改了apt仓库后必须执行 # apt upgrade #升级所有已安装且可升级到新版本的软件包 # ap...原创 2019-12-25 09:24:20 · 119 阅读 · 0 评论 -
配置阿里云仓库
vim /etc/apt/sources.list deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb htt...原创 2019-12-25 09:23:18 · 303 阅读 · 0 评论 -
单网卡静态IP地址
cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: ...原创 2019-12-25 09:21:55 · 132 阅读 · 0 评论 -
配置ip地址
更改网卡名称为eth0: 改完后记得更改/etc/netplan/01-netcfg.yaml 设备名字 root@ubuntu:vim /etc/default/grub GRUB_CMDLINE_LINUX=“net.ifnames=0 biosdevname=0” root@ubuntu:update-grub root@ubuntu:reboot 更改静态ip root@ubuntu: ...原创 2019-12-25 09:21:08 · 274 阅读 · 0 评论