File tree 2 files changed +28
-2
lines changed
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ yum install git -y
11
11
12
12
#### Install net-tools
13
13
``` bash
14
+ # 可以生成ifconfig命令,netstat命令
14
15
yum -y install net-tools
15
16
```
16
17
@@ -73,6 +74,17 @@ firewall-cmd --zone=public --remove-port=3000/tcp --permanent
73
74
systemctl restart docker
74
75
```
75
76
77
+ ### 其他
78
+ ``` bash
79
+ # 查看端口占用情况
80
+ netstat -tulpn
81
+
82
+ # 查看指定端口
83
+ netstat -tulpn | grep 80
84
+
85
+ # 查看PID占用程序
86
+ ps -ef | grep 1500
87
+ ```
76
88
## 升级git到2.x版本
77
89
``` bash
78
90
# centos默认git 是1.8版本的,如果你的项目里面有git hook 请升级到2.3版本以上
@@ -103,4 +115,4 @@ source ~/.bashrc
103
115
104
116
# 验证git版本
105
117
git --version
106
- ```
118
+ ```
Original file line number Diff line number Diff line change @@ -63,6 +63,20 @@ docker rmi
63
63
-f # 强制删除
64
64
```
65
65
66
+ ### phpmyadmin
67
+
68
+ ``` bash
69
+ # PMA_HOST 数据库地址
70
+ # PMA_PORT 数据库端口(默认3306)
71
+ # -p 8081:80 将容器80端口映射到主机8081端口
72
+ ddocker run \
73
+ -d --name phpmyadmin \
74
+ -e PMA_HOST=xxx \
75
+ -e PMA_PORT=3306 \
76
+ -p 8087:80 \
77
+ phpmyadmin/phpmyadmin
78
+ ```
79
+
66
80
### redis
67
81
68
82
``` bash
@@ -106,4 +120,4 @@ systemctl daemon-reload
106
120
# 重启docker服务
107
121
service docker restart
108
122
109
- ```
123
+ ```
You can’t perform that action at this time.
0 commit comments