asset:所有图像资源均切换到OSS图床。
This commit is contained in:
11
source/_drafts/about-systemctl.md
Normal file
11
source/_drafts/about-systemctl.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: systemctl命令的使用
|
||||
tags:
|
||||
- Linux
|
||||
- Service
|
||||
- 命令
|
||||
- systemctl
|
||||
categories:
|
||||
- - DevOps
|
||||
- 系统管理
|
||||
---
|
14
source/_drafts/travel-note-21-04-30.md
Normal file
14
source/_drafts/travel-note-21-04-30.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: 游记 - 2021.04.30 - 目的地:张家口
|
||||
tags:
|
||||
- 游记
|
||||
- 张家口
|
||||
- 自驾游
|
||||
categories:
|
||||
- - IT以外
|
||||
- 游记
|
||||
date: 2021.04.30 22:05
|
||||
---
|
||||
又逢五一假期,这次计划去看看传闻已久的草原天路。
|
||||
{% oss_image 化稍营服务区.jpg CAEQDxiBgMCC.q7XyRciIGI4ZDljZTkyNGMzNDRiYmQ4OGJmZTAyMzc4NmM4NTMx 化稍营服务区看雪山 %}
|
||||
{% oss_video 张家口-风雪高速路.mp4 CAEQDxiBgICypszZyRciIDQ3YjczYzZhZmMxMDQwN2U4NzRlMTQ1ODg0ZDlkNzIx %}
|
17
source/_drafts/travel-note-21-05-01.md
Normal file
17
source/_drafts/travel-note-21-05-01.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
title: 游记 - 2021.05.01 - 意外之旅:沽源
|
||||
tags:
|
||||
- 游记
|
||||
- 自驾游
|
||||
- 张家口
|
||||
- 沽源
|
||||
- 闪电河
|
||||
- 闪电湖
|
||||
- 天鹅湖
|
||||
- 桦皮岭
|
||||
- 草原天路
|
||||
categories:
|
||||
- - IT以外
|
||||
- 游记
|
||||
date: 2021.05.01 22:05
|
||||
---
|
13
source/_drafts/travel-note-21-05-02.md
Normal file
13
source/_drafts/travel-note-21-05-02.md
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
title: 游记 - 2021.05.02 - 文化一日游:怀来
|
||||
tags:
|
||||
- 游记
|
||||
- 张家口
|
||||
- 怀来
|
||||
- 鸡鸣驿
|
||||
- 黄帝城
|
||||
categories:
|
||||
- - IT以外
|
||||
- 游记
|
||||
date: 2021.05.02 22:05
|
||||
---
|
14
source/_drafts/travel-note-21-05-03.md
Normal file
14
source/_drafts/travel-note-21-05-03.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: 游记 - 2021.05.03 - 壮美太行:蔚县
|
||||
tags:
|
||||
- 游记
|
||||
- 张家口
|
||||
- 蔚县
|
||||
- 涞源
|
||||
- 飞狐峪
|
||||
- 空中草原
|
||||
categories:
|
||||
- - IT以外
|
||||
- 游记
|
||||
date: 2021.05.03 22:05
|
||||
---
|
38
source/_drafts/ubuntu-tips.md
Normal file
38
source/_drafts/ubuntu-tips.md
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
title: Ubuntu Server技巧合集
|
||||
tags:
|
||||
- Ubuntu
|
||||
- Linux
|
||||
- 操作技巧
|
||||
- 常用命令
|
||||
categories:
|
||||
- - DevOps
|
||||
- 系统管理
|
||||
date: 2021.04.28 10:28
|
||||
update: 2021.05.03 22:57
|
||||
---
|
||||
## 安装X Server
|
||||
|
||||
## 让Ubuntu Server启动到命令行
|
||||
|
||||
在为Ubuntu Server安装了X server以后,再次启动Ubuntu Server会自动进入到等待登录的图形界面上,如果不需要这个界面,可以使用以下命令来使Ubuntu启动到命令行界面。
|
||||
|
||||
```bash
|
||||
sudo systemctl set-default multi-user.target
|
||||
```
|
||||
|
||||
执行完这个命令以后不要忘记使用`sudo reboot`重启机器以使配置生效,并检验命令效果。
|
||||
|
||||
## 阻止Ubuntu进入休眠
|
||||
|
||||
想要阻止Ubuntu进入休眠状态,可以将用于控制休眠的服务屏蔽掉,于是可以使用以下命令。
|
||||
|
||||
```bash
|
||||
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
|
||||
```
|
||||
|
||||
当这条命令执行成功以后,可以使用以下命令来查看当前系统的休眠状态。
|
||||
|
||||
```bash
|
||||
systemctl status sleep.target
|
||||
```
|
Reference in New Issue
Block a user