Skip to content

Commit

Permalink
ubunt8
Browse files Browse the repository at this point in the history
  • Loading branch information
deipss committed Mar 25, 2024
1 parent 931374e commit 842eca2
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions docs/command/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ lsb_release -a
lscpu
```

# 2. ubuntu start on reboot
# 2. ubuntu systemctl
```shell
# start with reboot
systemctl enable nginx.service
systemctl enable supervisord

Expand All @@ -22,6 +23,27 @@ systemctl disable supervisord

systemctl is-enabled nginx
systemctl is-enabled supervisord
# show all
systemctl list-unit-files --type service -all

# start
systemctl start <service-name>
systemctl stop <service-name>
systemctl restart <service-name>
systemctl status <service-name>


```

# ubuntu services

```shell
service --status-all
service <service-name> start
service <service-name> stop
service <service-name> restart
service <service-name> status

```

# 3. ubuntu install jdk
Expand All @@ -39,7 +61,7 @@ export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
```


## 3.1. ubuntu网络防火端设置信息
# 3.1. ubuntu网络防火端设置信息

```shell
sudo ufw allow 22/tcp
Expand All @@ -55,6 +77,9 @@ sudo ufw delete allow 21/tcp
sudo ufw delete allow 23/tcp
sudo ufw delete allow 80/tcp
```





# 4. 系统环境
Expand Down

0 comments on commit 842eca2

Please sign in to comment.