Linux环境配置(Tomcat+Mysql)

作者: admin 分类: Linux专题 发布时间: 2021-09-13 13:03

Linux环境配置练习,完成Tomcat+Mysql+项目环境配置

1 ifconfig
2 pwd
3 ls
4 groupadd ranteams
5 id
6 cd /
7 cd /etc
8 ls
9 cat group
10 cd ..
11 cd root
12 useradd wang
13 passwd wang
14 gpasswd -a wang root
15 ll /etc/passwd
16 cd /
17 ls
18 cd etc
19 ls
20 cat passwd
21 ll wang
22 whoami
23 who am i
24 cd ..
25 cd root
26 su wang
27 mkdir filewang
28 ls
29 ll
30 useradd -u 700 ranzx
31 cd /
32 ls
33 cd etc
34 ls
35 cat passwd
36 cd ..
37 cd root
38 ls
39 cd /
40 ls
41 cd home
42 ls
43 cp -r /etc/group /home/ranzx
44 ls
45 cd ranzx
46 ls
47 cat group
48 cat -n group
49 cd ..
50 cd ..
51 cd root
52 mkdir a
53 ls
54 cd a
55 ls
56 mkdir b
57 ls
58 cd b
59 ls
60 mkdir c
61 ls
62 cd c
63 ls
64 ll
65 cd
66 ll
67 cd a
68 ls
69 cd b
70 ls
71 ll
72 chmod 766 c
73 ll
74 cd ..
75 cd ..
76 head -8 /etc/group
77 ls
78 cd .
79 cd /
80 ls
81 cd home
82 ls
83 mkdir test
84 ls
85 cd test
86 ls
87 touch Firsttest.txt
88 ls
89 cp -r /etc/passwd Firsttest.txt
90 ls
91 vi Firsttest.txt
92 vi Firsttest.txt
93 halt
94 pwd
95 df -h
96 mount /dev/cdrom /mnt
97 df -h
98 cd /mnt
99 ll
100 cd Server
101 ll
102 ls |grep vsftpd
103 rpm -ivh vsftpd-2.0.5-16.el5.i386.rpm
104 rpm -qa|grep -i vsftpe
105 rpm -qa|grep -i ftp
106 cd ..
107 cd /
108 cd root
109 mkdir install
110 ls
111 cd install
112 ls
113 cd MySQL
114 ll
115 rpm -ivh MySQL-client-community-5.0.37-0.rhel4.i386.rpm
116 cd ..
117 cd ..
118 ls
119 cd instll
120 cd install
121 ls
122 cd MySQL
123 ls
124 cd ..
125 cd ..
126 cd /
127 ls
128 cd /mnt
129 ls
130 cd Server
131 ls
132 rpm -ivh vsftpd-2.0.5-16.el5.i386.rpm
133 cd ..
134 cd ..
135 cd root
136 cd /install
137 cd install
138 ls
139 cd MySQL
140 ls
141 rpm -ivh MySQL-client-community-5.0.37-0.rhel4.i386.rpm
142 ll
143 rpm -ivh MySQL-client-community-5.0.37-0.rhel4.i386.rpm
144 rpm -ivh MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
145 rpm -ivh MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
146 rpm -ivh MySQL-server-community-5.0.37-0.rhel4.i386.rpm
147 rpm -ivh MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
148 rpm -ivh MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
149 vi /etc/vsftpd/ftpusers
150 vi /etc/vsftpd/user_list
151 ls |grep -i vsftpd
152 rpm -ivh vsftpd-2.0.5-16.el5.i386.rpm
153 rpm -ivh MySQL-client-community-5.0.37-0.rhel4.i386.rpm
154 rpm -ivh perl-DBI-1.52-2.el5.i386.rpm
155 cd /
156 cd root
157 cd install
158 ls
159 cd ..
160 cd /mnt
161 ls
162 cd Server
163 ll
164 rpm -ivh perl-DBI-1.52-2.el5.i386.rpm
165 service iptables status
166 ls |grep vsftpd
167 rpm -ivh vsftpd-2.0.5-16.el5.i386.rpm
168 rpm -qa|grep -i vsftpe
169 rpm -qa|grep -i ftp
170 rpm -qa|grep i mysql
171 cd ..
172 cd /
173 cd root
174 ls
175 cd install
176 ls
177 cd MySQL
178 ls
179 rpm -ivh MySQL-client-community-5.0.37-0.rhel4.i386.rpm
180 rpm -ivh MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
181 rpm -ivh MySQL-server-community-5.0.37-0.rhel4.i386.rpm
182 rpm -qa|grep i mysql
183 mysql -u root
184 cd ..
185 cd ..
186 cd install
187 ls
188 rpm -ivh jdk-6u1-linux-i586.rpm
189 vi /etc/profile
190 source /etc/profile
191 java -version
192 cd ..
193 cd install
194 ls
195 unzip apache-tomcat-7.0.82.zip
196 mv apache-tomcat-7.0.82 /opt/tomcat
197 cd ..
198 cd /
199 ls
200 cd opt
201 ls
202 cd tomcat
203 ls
204 cd bin
205 ./startup.sh
206 cd ..
207 cd ..
208 cd /
209 cd root
210 ls
211 cd /etc
212 ls
213 ll
214 cd ..
215 cd /
216 ls
217 cd opt
218 ll
219 cd tomcat
220 ls
221 ls
222 cd bin
223 ls
224 ./startup.sh
225 ./startup.sh
226 cd ..
227 cd ..
228 sudo chmod -R 777 /opt/tomcat
229 ls
230 cd tomcat
231 ll
232 cd bin
233 ./startup.sh
234 ps -ef |grep tomcat
235 netstat -an |grep 8080
236 cd /
237 cd root
238 cd install
239 ll
240 unzip oa.zip -d /opt/tomcat/webapps
241 cd ..
242 ls
243 cd /
244 ls
245 cd opt
246 ls
247 cd tomcat
248 ls
249 cd webapps
250 ls
251 cd oa
252 ls
253 cd WEB-INF/
254 ll
255 vi log4j.properties
256 cd ..
257 cd ..
258 ls
259 cd ..
260 cd /
261 cd root
262 cd install
263 ls
264 cd MySQL
265 ls
266 mysql -u root
267 cd ..
268 ls
269 cd ..
270 cd /
271 ls
272 cd /opt/tomcat
273 ls
274 cd webapps
275 ls
276 ls
277 cd oa
278 ls
279 cd WEB-INF/
280 ls
281 ll
282 vi log4j.properties
283 cd classes/
284 ll
285 ls
286 vi cache.ccf
287 cd..
288 cd ..
289 ll
290 vi proxool.xml
291 ps -ef |grep tomcat
292 kill -9 4908
293 ps -ef|grep tomcat
294 cd ..
295 cd ..
296 cd ..
297 ls
298 cd bin
299 ls
300 ./startup.sh
301 ifconfig
302 ps -ef |grep tomcat
303 kill -9 5935
304 ps -ef|grep tomcat
305 cd /
306 cd root
307 cd install
308 ls
309 cp -R suqi-v1.0.2.3.war /opt/tomcat/webapps
310 cd ..
311 cd /
312 ls
313 cd opt
314 ls
315 cd tomcat
316 ls
317 cd webapps
318 ls
319 mv suqi-v1.0.2.3.war suqi.war
320 ls
321 cd ..
322 cd ..
323 ls
324 cd tomcat
325 ls
326 cd bin
327 ./startup.sh
328 cd ..
329 cd ..
330 cd ..
331 ls /opt
332 cd tomcat
333 ls
334 cd opt
335 ls
336 cd tomcat
337 ls
338 cd bin
339 ls
340 cd ..
341 ls
342 cd webapps
343 ls
344 cd /
345 cd root
346 cd MySQL
347 ls
348 cd install
349 ls
350 cd MySQL
351 ls
352 ll
353 mysql -u root
354 cd ..
355 cd /
356 cd opt
357 ls
358 cd tomcat
359 ls
360 cd webapps
361 ls
362 cd suqi
363 ls
364 cd WEB-INF/
365 ls
366 vi config.txt
367 ps -ef|grep tomcat
368 kill -9 6061
369 cd ..
370 cd ..
371 cd ..
372 ls
373 cd bin
374 ls
375 ./startup.sh
376 history

如果觉得我的文章对您有用,请随意赞赏。您的支持将鼓励我继续创作!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注