[root@iZ2ze59tpwttz6018pl8ihZ php]# history
1 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
2 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3 sudo yum install -y docker-ce-18.06.0.ce-3.el7.x86_64
4 sudo systemctl start docker
5 sudo systemctl enable docker
6 sudo docker version
7 sudo curl -L "https://github.com/docker/compose/releases/download/1.27.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chm od +x /usr/local/bin/docker-compose
8 docker-compose version
9 sudo curl -L "https://github.com/docker/compose/releases/download/1.27.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chm od +x /usr/local/bin/docker-compose
10 docker-compose version
11 sudo curl -L "https://github.com/docker/compose/releases/download/1.27.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chm od +x /usr/local/bin/docker-compose
12 sudo curl -L "https://mirrors.aliyun.com/docker-toolbox/linux/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/ local/bin/docker-compose
13 docker-compose version
14 sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chm od +x /usr/local/bin/docker-compose
15 docker-compose version
16 cd /
17 mkdir docker
18 pwd
19 cd docker/
20 ls
21 pwd
22 cd ../
23 pwd
24 cd docker/
25 unzip config_dev.zip
26 sudo yum install unzip
27 unzip config_dev.zip
28 l
29 ll
30 cd config_dev/
31 ls
32 docker-compose version
33 docker-compose up -d
34 docker ps
35 docker ps -a
36 docker-compose down
37 docker-compose up -d
38 docker-compose down
39 docker-compose up -d
40 docker ps -a
41 docker-compose logs lnmp_mysql
42 docker logs lnmp_mysql
43 ll
44 chmod -R 777 ./*
45 docker ps -a
46 docker logs lnmp_redis
47 docker ps -a
48 docker logs lnmp_redis
49 docker-compose down
50 docker-compose up -d
51 docker ps -a
52 docker rm portainer
53 docker ps -a
54 docker ps
55 docker ps -a
56 docker rm `docker ps -a -q`
57 docker rm `docker ps -a -q` --force
58 docker images
59 docker rmi portainer/portainer-ce
60 docker images
61 docker rm `docker ps -a -q` --force
62 docker images
63 docker rm $(docker ps -aq) --force
64 docker images
65 docker images -a
66 docker rm `docker ps -a -q`
67 docker ps
68 docker rmi -f $(docker images -aq)
69 docker images -a
70 docker images
71 docker-compose up -d
72 docker ps
73 docker images
74 cd /docker/config_dev/
75 cd nginx/
76 ls
77 ls -al
78 cd conf.d/
79 ls
80 cd ../
81 ls
82 ls -al
83 cd conf.d/
84 ls -al
85 vim default.conf
86 docker restart nginx
87 docker restart lnmp_nginx
88 ls -al
89 vim default.conf
90 docker restart lnmp_nginx
91 ll
92 ls -al
93 cat default.conf
94 vim default.conf
95 docker restart lnmp_nginx
96 docker ps
97 cd /docker/
98 ls
99 cdco
100 cd config_dev/
101 ls
102 ls -al
103 cd nginx/
104 ll
105 cd conf.d/
106 ll
107 cat default.conf
108 docker restat lnmp_nginx
109 docker restart lnmp_nginx
110 docker exec -it lnmp_nginx /bin/bash
111 cd /docker/config_dev/nginx/
112 ll
113 cd conf.d/
114 ll
115 cd /docker/
116 ls
117 cd config_dev/
118 ll
119 cd wwwroot/
120 ll
121 mv production ./test/
122 mv dev ./test/
123 ls
124 ls al
125 ls -al
126 chmod -R 777 ./test/
127 ls -al
128 cd test/
129 ls -al
130 cd production/
131 ls -al
132 git clone -b master https://codeup.aliyun.com/6409d268e9f200d37adc2ffd/test.git
133 docker exec -it lnmp_php74 /bin/bash
134 cd /docker/config_dev/nginx/
135 ls
136 cd conf.d/
137 ls
138 cd /etc/hosts
139 cd /etc
140 ls -al
141 ls hosts
142 cp hosts hosts2
143 vim hosts
144 docker restart lnmp_nginx
145 cd /docker/config_dev/
146 ls
147 cd php/
148 ls
149 cd ../wwwroot/
150 ll
151 cd test/
152 ls
153 cd dev/
154 ls
155 cd test/
156 ls
157 vim index.php
158 docker ps
159 pwd
160 docker exec -it lnmp_php74 /bin/bash
161 docker exec -it lnmp_php74 /bash
162 telnet localhost 25
163 yum install telnet
164 telnet localhost 25
165 sudo firewall-cmd --list-all
166 sudo systemctl status iptables
167 systemctl status iptables
168 sudo systemctl status firewalld
169 sudo systemctl status iptables
170 docker ps
171 docker stop lnmp_mysql
172 docker ps
173 telnet localhost 465
174 telnet localhost 25
175 which docker
176 history
177 nano ~/.bashrc
178 cd /
179 docker --version
180 cd ~
181 docker --version
182 cat /etc/profile
183 vim /etc/profile
184 which docker
185 cat /etc/environment
186 sudo nano /etc/environment
187 sudo /etc/environment
188 vi ~/.bashrc
189 vim ~/.bash_profile
190 sudo vi /etc/environment
191 sudo reboot
192 docker version
193 docker exec -it lnmp_php /bin/bash
194 docker exec -it lnmp_php74 /bin/bash
195 which docker
196 sudo vi /etc/environment
197 sudo reboot
198 cd /docker/config_dev/wwwroot/
199 ls
200 cd test/
201 ls
202 cd production/
203 ls
204 ls -al
205 git clone https://codeup.aliyun.com/6409d268e9f200d37adc2ffd/test.git /wwwroot/test/production/test
206 git clone https://codeup.aliyun.com/6409d268e9f200d37adc2ffd/test.git
207 exit
208 docker exec -it lnmp_php74 /bin/bash
209 cd /var/jenkins_home/workspace
210 docker exec -it jenkins /bin/bash
211 git clone https://12105838593313479:wyq19930729@codeup.aliyun.com/6409d268e9f200d37adc2ffd/test.git
212 cd /docker/config_dev/
213 ls
214 rm -rf ./jenkins_home/
215 ls -al
216 mkdir jenkins_home
217 ls -al
218 chmod -R 777 ./jenkins_home/
219 ls -al
220 cd jenkins_home/
221 docker ps
222 docker rmi -f $(docker images -aq) --force
223 docker rm `docker ps -a -q` --force
224 docker rmi -f $(docker images -aq) --force
225 ls -al
226 chmod -R 777 ./Dockerfile
227 ls -al
228 cd ../
229 ls -al
230 docker-compose up -d --build
231 docker images
232 docker images -a
233 docker ps
234 docker ps -a
235 docker rmi -f $(docker images -aq) --force
236 docker images
237 docker ps
238 docker-compose up -d
239 systemctl restart docker
240 docker rmi -f $(docker images -aq) --force
241 docker images
242 docker ps
243 docker-compose up -d
244 docker rmi -f $(docker images -aq) --force
245 docker images
246 docker ps
247 docker rm `docker ps -a -q` --force
248 docker ps
249 docker-compose up -d
250 docker rmi -f $(docker images -aq) --force
251 docker rm `docker ps -a -q` --force
252 docker ps
253 docker images
254 docker-compose up -d
255 docker ps
256 cat /var/jenkins_home/secrets/initialAdminPassword
257 docker logs jenkins
258 docker exec -it jenkins /bin/bash
259 docker ps
260 docker-compose logs jenkins
261 ls -al
262 cd wwwroot/
263 ls
264 cd test/
265 ls
266 cd production/
267 ls
268 ls -al
269 git clone https://codeup.aliyun.com/6409d268e9f200d37adc2ffd/test.git
270 docker exec -it lnmp_php74 /bin/bash
271 hitory
272 history
273 docker exec -it lnmp_php74 /bin/bash
274 which docker
275 cd /docker/
276 ls
277 ls -al
278 chmod -R 777 ./test.sh
279 ls -al
280 sudo bash test.sh
281 sudo systemctl restart docker
282 /usr/bin/docker exec -it lnmp_php74 git clone https://codeup.aliyun.com/6409d268e9f200d37adc2ffd/test.git /wwwroot/test/production/test
283 which docker
284 whick docker
285 which docker
286 /usr/bin/docker exec -it lnmp_php74 git clone https://codeup.aliyun.com/6409d268e9f200d37adc2ffd/test.git /wwwroot/test/production/test
287 which docker
288 cd /docker
289 cd config_dev/
290 ls
291 ls -al
292 cd wwwroot/
293 ls
294 ls -al
295 cd default/
296 ls
297 cat index.php
298 docker ps
299 docker exec -it lnmp_php74 /bin/bash
300 cat /etc/group | grep docker
301 getent passwd | grep docker
302 sudo usermod -aG docker admin
303 cd /var/jenkins_home
304 docker exec -it jenkins /bin/bash
305 pwd
306 docker ps
307 docker exec -it ab3c758f6d2e /bin/bash
308 history
309 docker rm `docker ps -a -q` --force
310 docker rmi -f $(docker images -aq) --force
311 docker ps
312 docker images
313 docker-compose up -d
314 docker ps
315 docker exec -it 533cce0434ff /bin/bash
316 cd ../
317 ls -a
318 ls -aa
319 ls -al
320 docker rmi -f $(docker images -aq) --force
321 docker rm `docker ps -a -q` --force
322 docker rmi -f $(docker images -aq) --force
323 cd ..
324 pwd
325 ls -al
326 pwd
327 docker-compose up -d
328 docke ps
329 docker ps
330 pwd
331 ls
332 ls -al
333 docker exec -it a7fa0e0ee1e6 /bin/bash
334 docker exec -it lnmp_php74 /bin/bash
335 docker exec -it jenkins /bin/bash
336 docker ps
337 docker exec -it a7fa0e0ee1e6 /bin/bash
338 cd /ww
339 cd /docker/
340 ls
341 cd config_dev/
342 ls -al
343 cd wwwroot/
344 ls
345 cd test/
346 ls
347 ls -al
348 cd production/
349 ls
350 ls- al
351 ls -al
352 ls
353 ls -al
354 pwd
355 ls -al
356 git pull
357 ps
358 docker ps
359 docker exec -it lnmp_php74 /bin/bash
360 curl -u admin:123456 "http://47.93.50.11:9999/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)"
361 docker exec -it lnmp_php74 /bin/bash
362 cd /docker/
363 cd config_dev/
364 ls
365 ls -al
366 cd wwwroot/
367 ls
368 ls -al
369 pwd
370 docker version
371 docker-compose version
372 pwd
373 exit
374 docker ps
375 docker exec -it a7fa0e0ee1e6 docker ps
376 sudo docker exec -it jenkins docker ps
377 sudo docker exec -it a7fa0e0ee1e6 docker ps
378 sudo docker exec -it a7fa0e0ee1e6 /bin/bash
379 docker ps
380 docker exec -it a7fa0e0ee1e6 /bin/bash
381 docker ps
382 docker exec -it a7fa0e0ee1e6 /bin/bash
383 where is docker
384 whereis docker
385 cd /docker/
386 ls
387 cd config_dev/
388 ls
389 ls -al
390 cd /var/run/
391 ls -al
392 docker-compose up -d
393 exit
394 cd /docker/
395 cd config_dev/
396 ls
397 docker-compose up -d
398 cd /docker/
399 ls
400 cd config_dev/
401 ls
402 ls -al
403 docker-compose up -d
404 docker ps
405 docker exec -it caec48f51d7d /bin/bash
406 docker exec -it caec48f51d7d bash
407 cd /var/run/
408 chown root:root docker.sock
409 ls -al
410 chmod o+rw docker.sock
411 ls -al
412 docker-compose up -d
413 cd /docker/config_dev/
414 ls
415 docker-compose up -d
416 docker exec -it jenkins bash
417 docker ps
418 docker exec -t caec48f51d7d bash
419 ls
420 cd wwwroot/
421 ls
422 cd al7/
423 ls
424 cd dev/
425 ll
426 ls -al
427 pwd
428 ls -al
429 git clone https://codeup.aliyun.com/6409d268e9f200d37adc2ffd/al7.git
430 cd /docker/
431 ls
432 cd config_dev/
433 ls -al
434 cd wwwroot/
435 ls
436 cd al
437 cd al7/
438 ls
439 ls -al
440 cd dev/
441 ls
442 ls -al
443 pwd
444 rm -rf ./al7/
445 ls -al
446 pwd
447 ls
448 ls -al
449 ls
450 pwd
451 docker exec -it lnmp_php74 /bin/bash
452 docker-compose version
453 cd /var/run/
454 ls
455 ls -a
456 ls -al
457 docker version
458 docker ps -a
459 docker-compose logs caec48f51d7d
460 docker logs caec48f51d7d
461 cd /docker/config_dev/
462 ls
463 ls -al
464 docker ps
465 docker exec -it caec48f51d7d /bin/bash
466 pwd
467 docker ps
468 docker exec -it caec48f51d7d bash
469 docker ps
470 ls
471 cd /
472 ls
473 ls -al
474 cd dec
475 cd dev/
476 ls
477 cd ../
478 ls -al
479 cd docker/
480 ls
481 ls -al
482 cd config_dev/
483 ls
484 ls -al
485 cd php/
486 ls
487 ls -al
488 docker ps
489 history
- 序言
- 开始JK部署[单台服务器](非宝塔)
- 1.开始安装jenkins
- 2.登录且配置JK面板
- Linux系统
- Windows系统
- 3.创建自动化部署任务
- Linux Centos7.9系统
- Linux部署文件
- docker
- docker-compose.yml
- jenkins_home文件夹
- mongo文件夹
- mysql文件夹
- my.cnf
- log文件夹
- data文件夹
- nginx文件夹
- nginx.conf
- logs文件夹
- html文件夹
- conf.d文件夹
- default.conf
- www.conf
- php目录
- logs目录
- php74目录
- Dockerfile
- php.ini
- rabbitmq目录
- redis目录
- logs目录文件夹
- redis.conf
- wwwroot目录
- default文件夹
- index.html
- index.php
- test目录
- dev
- production
- shell脚本
- test.sh
- al7.sh
- 问题总结
- Linux备份
- 宝塔部署
- 安装脚本
- 开始部署
- 宝塔自己的docker jk容器部署
- 自己编写的yml jk部署
- 流程开始
- 问题总结