|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-07-09 11:39:19
|
|
|
- * @LastEditTime: 2021-08-18 18:03:13
|
|
|
+ * @LastEditTime: 2021-08-24 16:16:22
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: \md-\linux\开机自启相关.md
|
|
@@ -37,7 +37,7 @@ WantedBy=multi-user.target
|
|
|
```shell
|
|
|
sudo systemctl enable serverName
|
|
|
```
|
|
|
-### 启动服务
|
|
|
+### 启动服务进程
|
|
|
```shell
|
|
|
sudo systemctl start serverName
|
|
|
```
|
|
@@ -46,7 +46,7 @@ sudo systemctl start serverName
|
|
|
> 常用命令基本上分为 start restart stop
|
|
|
|
|
|
<!-- tabs:start -->
|
|
|
-#### **启动服务**
|
|
|
+#### **启动服务进程**
|
|
|
```shell
|
|
|
sudo systemctl start serverName
|
|
|
```
|
|
@@ -85,7 +85,9 @@ journalctl -u githook.service
|
|
|
```
|
|
|
### 更多使用技巧
|
|
|
1. **查看最近的日志**
|
|
|
+
|
|
|
携带参数`n`加数字可以看到最近n条日志
|
|
|
+
|
|
|
代码示例
|
|
|
```shell
|
|
|
journalctl -n 100 -u githook.service
|