develop-skill-xshell-dos

windows 的一些操作,dos命令
帮助快速开发,提高工作效率!

管理员的方式启动电脑

1
2
3
4
5
6

管理员方式启动电脑dos

1
2
3
4
5
6
compmgmt.msc
系统工具→本地用户和组→用户
Win+Break
系统属性

##开发常用的xshell命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
线上文件路径
\\192.168.1.206\softMgr\jc
base工程服务器地址
121.40.51.43
用户名:root
密码
oGcnhnrjmnififtc2GX3v6bfXVxnqPrkSu7jcfxp
启动服务器
/etc/init.d/tomcat2 restart
tail -f /usr/local/tomcat2/logs/catalina-daemon.out
cd /data0/wwwroot/
ls
cd base
端口号 9282
http://base.zfwx.com
去host文件里面根据域名找对应的ip
http://base.zfwx.com/register.do;jsessionid=2273D8E3BE7EEE9124BB8082EE045D2C
=====================================================================
207服务器查看zookeeper查看服务是否启动
192.168.1.207
用户名
root
密码
asdf!@#$
vi 编辑保存
=====================================================================
查询redis服务
121.40.34.17
用户名
root
密码
pfrNzrgp6ajpfrNzrgp6aQQV9mepi4jpfrNzrgp6aQ
查询redis
ps -ef |grep redis
cd /usr/local/redis/bin
ls
启动客户端软件
./redis-cli
选择库
select 3 选择3号库
ok
get |lstangrongzhi 查询出对应的值
key *
key
===================================================================
设置时效,过期后就自动删除
set a f
expire a 144000/3600 4个小时
查看时效
ttl a
=====================================================================
//30机器 data0目录是工程目录
政法网校api
114.55.36.30
用户名
root
密码
hvHS0ih6tVltyysoovZr8ccQlaesd2
启动服务器
/etc/init.d/tomcat2 restart
tail -f /usr/local/tomcat1/logs/catalina-daemon.out
api 监听的端口号:6088
=====================================================================
115.29.221.112
mobile工程测试服务器
用户名
root
密码
115.29.221.112 z0gmq5gpKbpXzuxmjlnwfYYpie9y9DygdpfbMkqR
5098端口
5099端口
步骤1
进入tomcat的conf执行命令
cat server.xml
产看工程部署目录
步骤2
查看tomcat的环境变量
cat /etc/profile
查看tomcat环境变量
步骤3
进入/etc/init.d目录下查看有没有tomcat的启动脚本
执行命令(在tomcat的脚本上面检索环境变量)
grep "CATALINA_HOME" /etc/init.d/tomcat
启动服务器
/etc/init.d/tomcat2 restart
tail -f /usr/local/tomcat1/logs/catalina-daemon.out
112机器部署这所有的服务/data0/service/*_service
=====================================================================
207机器zookeeper配置
192.168.1.207
用户名
root
密码
测试端口是否成功
telnet 192.168.1.207 2181
课程详情接口
http://mm.zfwx.com/tdk/get_detail.json?courseId=3288
去购买接口
http://mm.zfwx.com/tdk/gopay_mysignup.json?courseId=3288
select distinct cg_id as id,cg_name as name,cs.cg_count as count
from dj_cscategory cs where cs.cg_count != 0 and cg_pcategory = -10
and cg_belong LIKE '%1%' order by cg_order;
mobile 端口5098
========================================
===========================
查看注册中心注册的服务
进入zookeeper的安装目录,进入bin 目录 cd /usr/local/zookeeper/bin
./zkCli.sh
ls /dubbo/com.blank.service.servicename
===========================
查看服务端口
http://itindex.net/detail/53125-dubbo-%E6%9C%8D%E5%8A%A1-telnet
http://alibaba.github.io/dubbo-doc-static/Telnet+Command+Reference-zh-showComments=true&showCommentArea=true.htm
======================================================================
管理后台界面
账号yangdebao
密码yangdebao
http://admin.zfwx.com/admin/index.jsp
-----------定位action------------
打开管理后台界面
随便找一个url-->右键-->在新的标签页面打开(t)
http://admin.zfwx.com/admin/DjStucourse/batchSelectCourseForMembers.do
分析这个路由规则--admin(管理后台)--
(DjStucourse:DjStucourseAction 定位到action)---(batchSelectCourseForMembers方法)
-----------定位模板------------
定位界面在路由方法里面return STUSELECT_JSP;这个页面规则
protected static final String STUSELECT_JSP = "/admin/DjStucourse/stuselectcs.jsp";
ctrl+shift+r查找到对应的jsp页面
-----------模板讲解------------
http://admin.zfwx.com/admin/DjCourse/edit.do?courseId=3501&
edit.jsp页面嵌入一个模板
<%@ include file="form_include.jsp" %>
jsp中struts2框架的标签
<s:form></s:form>
/**推送消息添加**/
课程列表--课程&选课--操作(推送)
121.40.51.45
用户名:root
密码
7Nxddaup2HEcBeq3jrrnzabumuvDSxndyUdypuc5
zfwx_api 8088
步骤1
进入tomcat的conf执行命令
cat server.xml
产看工程部署目录
步骤2
查看tomcat的环境变量
cat /etc/profile
查看tomcat环境变量
步骤3
进入/etc/init.d目录下查看有没有tomcat的启动脚本
执行命令(在tomcat的脚本上面检索环境变量)
grep "CATALINA_HOME" /etc/init.d/tomcat
启动服务器
/etc/init.d/tomcat2 restart
tail -f /usr/local/tomcat1/logs/catalina-daemon.out
----------------------------------
步骤1
进入tomcat的conf执行命令
cat server.xml
产看工程部署目录
步骤2
查看tomcat的环境变量
cat /etc/profile
查看tomcat环境变量
步骤3
进入/etc/init.d目录下查看有没有tomcat的启动脚本
执行命令(在tomcat的脚本上面检索环境变量)
grep "CATALINA_HOME" /etc/init.d/tomcat
/etc/init.d/tomcat2 restart
tail -f /usr/local/tomcat1/logs/catalina-daemon.out
账号密码:yangdebao
http://admin.zfwx.com/admin/index.jsp
---------------------------------------------------
线上代码查找
win+r
\\192.168.1.206\softMgr\jc
测试服务器数据库密码
djcourse密码 ssh密钥
z0gmq5gpKbpXzuxmjlnwfYYpie9y9DygdpfbMkqR
casserver密码 ssh密钥
7Nxddaup2HEcBeq3jrrnzabumuvDSxndyUdypuc5
=======================================================================
1查看tomcat监听的端口号
2 ps -ef| grep tomcat
netstat -ntlp | grep 端口号/进程号
3 jps
4 杀死进程
5 重启tomcat
=========================================================================
查看进程号
lsof -i | grep 端口号
lsof -i:端口号
netstat -ntlp| grep 端口号
例子:
nststat -nflp|grep 20884
lsof -i:20884
lsof -i | grep 20884