1 yum list|grep jdk
145    2 wget java-1.8.0-openjdk-devel.x86_64
 146    3 sudo dnf install java-latest-openjdk
 147    4 sudo install java-latest-openjdk
 148    5 wget install java-latest-openjdk
 149    6 yum install java-latest-openjdk
 150    7 whereis java
 151    8 ls
 152    9 java -version
 153   10 sudo apt upgrade -y
 154   11 chmod 400
 155   12 yum install default-jdk
 156   13 java-open jdk-y
 157 14 wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.64/bin/apache-tomcat-
9.0.64.tar.gz
 158   15 ls
 159   16 tar xvzf apache-tomcat-9.0.64.tar.gz
 160   17 ls
 161   18 mv apache-tomcat-9.0.64 tomcat
 162   19 ls
 163   20 cd tomcat
 164   21 ls
 165   22 cd bin
 166   23 ls
 167   24 ./startup.sh
 168   25 chmod 700*.sh
 169   26 chmod 700 *.sh
 170   27 ls
 171   28 ll
 172   29 ln -s /opt/tomcat/tomcat/bin/startup.sh /usr/sbin/tomcatup
 173   30 ln -s /opt/tomcat/tomcat/bin/shutdown.sh /usr/sbin/tomcatdown
174   31 tomcatup
175   32 ln -s /opt/tomcat/tomcat/bin/startup.sh /usr/sbin/tomcatup
176   33 tomcat start
177   34 ls
178   35 ./startup.sh
179   36 clear
180   37 yum install tomcat
181   38 ls
182   39 ./startup.sh
183   40 whereis tomcat
184   41 ls
185   42 cd tomcat
186   43 ls
187   44 cd bin
188   45 ls
189   46 ./startup.sh
190   47 ls
191   48 cd conf
192   49 cd ..
193   50 ls
194   51 cd conf
195   52 ls
196   53 cat server.xml
197   54 cat tomcat-users.xml
198   55 vi tomcat-users.xml
199   56 cat tomcat-users.xml
200   57 vi tomcat-users.xml
201   58 cat tomcat-users.xml
202   59 tomcat -version
203   60 ls
204   61 cd tomcat
205   62 ls
206   63 cd bin
207   64 ls
208   65 ./startup.sh
209   66 cd webapp
210   67 ls
211   68 cd tomcat
212   69 ls
213   70 cd bin
214   71 ls
215   72 cd ..
216   73 ls
217   74 cd conf
218   75 ls
219   76 vi tomcat-users.x
220   77 vi tomcat-users.xml
221   78 cd ..
222   79 cd bin
223   80 pwd
224   81 cd ../conf
225   82 vi tomcat-users.xml
226   83 cd tomcat/bin
227   84 cd tomcat
228   85 ls
229   86 cd conf
230   87 ls
231   88 vi server.xml
232   89 cd ..
233   90 cd bin
234   91 ls
235   92 ./startup.sh
236   93 restart
237   94 cd ..
238   95 cd conf
239   96 ls
240   97 vi server.xml
241   98 cd ..
242   99 cd bin
243 100 ./startup.sh
244 101 ./shutdown.sh
245 102 ./startup.sh
246 103 cd ..
247 104 ls
248 105 cd conf
249 106 ls
250 107 vi server.xml
251 108 cd ..
252 109 cd bin
253 110 ls
254 111 ./shutdown.sh
255 112 ./startup.sh
256 113 cd ..
257 114 cd conf
258 115 vi server.xml
259 116 cd ..
260 117 cd bin
261 118 ./shutdown.sh
262 119 ./startup.sh
263 120 ./shutdown.sh
264 121 ./startup.sh
265 122 cd tomcat/conf
266 123 vi tomcat-users.xml
267 124 cd ../bin
268 125 ./shutdown.sh
269 126 ./startup.sh
270 127 ./shutdown.sh
271 128 ./startup.sh
272 129 find / -name context.xml
273 130 vi /root/tomcat/webapps/host-manager/META-INF/context.xml
274 131 vi /root/tomcat/webapps/examples/META-INF/context.xml
275 132 vi /root/tomcat/webapps/manager/META-INF/context.xml
276 133 ls
277 134 ./shutdown.sh
278 135 ./shutdown.sh
279 136 ./startup.sh
280 137 cd tomcat
281 138 ls
282 139 cd bin
283 140 ls
284 141 ./startup.sh