linux常用命令

常用命令

172.16.228.20 测试环境nginx
1 ping baidu.com
2 yum update -y
3 uname -a
4 reboot
5 ping 172.16.228.1
6 df -h
7 cd /
8 ll
9 cd /home/
10 mkdir restcloud
11 cd restcloud/
12 cd …/
13 mkdir package
14 cd package/
15 ll
16 pwd
17 ll
18 tar -zxvf nginx-1.18.0.tar.gz /home/restcloud/nginx
19 star -zxvf nginx-1.18.0.tar.gz
20 tar -zxvf nginx-1.18.0.tar.gz
21 ll
22 mv nginx-1.18.0 /home/restcloud/nginx
23 cd /home/restcloud/nginx/
24 ll
25 sudo yum install gcc-c++ pcre-devel zlib-devel make
26 ./configure
27 yum install gcc-c++
28 ./configure
29 yum install --downloadonly --downloaddir=/root/soft/gcc gcc
30 gcc -v
31 set +o history;
32 sudo yum update
33 ping www.baidu.com
34 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
35 cat /etc/issue
36 cat /etc/redhat-release
37 ll
38 cd /home/
39 ll
40 cd package/
41 mkdir rpm
42 cd rpm/
43 ll
44 pwd
45 ll
46 rpm -Uvh *.rpm --nodeps --force
47 gcc -v
48 cd /home/restcloud/nginx/
49 ll
50 ./configure
51 whereis gcc
52 cd /home/package/
53 ll
54 cd rpm/
55 rpm -Uvh *.rpm --nodeps --force
56 cd /home/restcloud/nginx/
57 ./configure
58 yum -y reinstall binutils
59 gcc-c++ -v
60 gcc-c++
61 g++ --version
62 ./configure
63 cd /home/package/
64 ll
65 cd rpm/
66 rm -rf *
67 ll
68 ll
69 pwd
70 rpm -Uvh *.rpm --nodeps --force
71 cd /home/restcloud/nginx/
72 ll
73 ./configure
74 make && make install
75 cd /usr/local/nginx/sbin
76 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
77 set +o history;
78 cd /usr/local/nginx/
79 ll
80 cd sbin/
81 ./nginx -c /usr/local/nginx/conf/nginx.conf
82 ifconfig
83 cd /usr/local/nginx/
84 ll
85 cd conf/
86 ll
87 vim nginx.conf
88 rm -rf nginx.conf
89 pwd
90 cd …/
91 ll
92 vim /lib/systemd/system/nginx.service
93 systemctl daemon-reload
94 systemctl start nignx.service
95 cd /lib/systemd/system
96 ll
97 systemctl start nginx.service
98 systemctl status nginx.service
99 vim nginx.service
100 systemctl daemon-reload
101 systemctl start nginx.service
102 systemctl status nginx.service
103 cd /var/log/
104 mkdir nginx
105 cd nginx/
106 touch error.log
107 cd /
108 systemctl start nginx.service
109 systemctl status nginx.service
110 ps -ef|grep nginx
111 kill -9 7819
112 kill -9 7820
113 systemctl start nginx.service
114 systemctl status nginx.service
115 ifconfig
116 systemctl enable nginx.service
117 set +o history;
118 set +o history;
119 ls
120 telnet
121 ls -al
122 systemctl status nginx
123 cd /usr/local/nginx/
124 cd conf/
125 vim nginx.conf
126 df -h
127 cd /home/
128 ll
129 cd restcloud/
130 ll
131 cd nginx/
132 ll
133 cd /usr/local/
134 ll
135 cd bin/
136 cd …/con
137 cd n
138 cd /usr/local/
139 ll
140 cd nginx/
141 ll
142 cd conf/
143 vim nginx.conf
144 systemctl reload nginx.service
145 ifconfig
146 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
147 firewall-cmd --list-all
148 firewall-cmd --add-port=81/tcp --permanent
149 systemctl reload firewalld.service
150 set +o history;
151 set +o history;
152 cd /usr/local/nginx/
153 ll
154 cd conf/
155 vim nginx.conf
156 systemctl reload nginx.service
157 vim nginx.conf
158 systemctl reload nginx.service
159 firewall-cmd --add-port=82/tcp -permanent
160 firewall-cmd --add-port=82/tcp --permanent
161 firewall-cmd --reload
162 vim nginx.conf
163 firewall-cmd --add-port=83/tcp --permanent
164 vim nginx.conf
165 firewall-cmd --reload
166 firewall-cmd --list-all
167 vim nginx.conf
168 systemctl reload nginx.service
169 sysmtectl stop nginx.conf
170 systemctl stop nginx.service
171 systemctl start nginx.service
172 vim nginx.conf
173 ps -ef|grep nginx
174 ipconfig
175 ifconfig
176 df -h
177 cat /proc/cpuinfo | grep “processor” | wc -l
172.16.228.20 测试环境nginx

172.16.228.21 测试环境-网关
1 ping baidu.com
2 yum update -y
3 uname -a
4 reboot
5 ping 172.16.228.1
6 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
7 set +o history;
8 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
9 df /h
10 df -h
11 cd /home/
12 mkdir package
13 ll
14 cd package/
15 pwd
16 set +o history;
17 cd /home/
18 ll
19 cd package/
20 ll
21 pwd
22 ll
23 cd /home/
24 mkdir shellFile
25 lll
26 cd shellFile/
27 ll
28 pwd
29 ll
30 cd jdk/
31 ll
32 chmod +x installJdk.sh
33 ll
34 ./installJdk.sh -p /home/package -d /home/restcloud/ -n jdk-8u371-linux-x64.tar.gz
35 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
36 cd …/to
37 ll
38 cd …/
39 ll
40 cd tomcat/
41 ll
42 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
43 chmod +x installTom.sh
44 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
45 ./tomConfig.sh -p 8080 -t 200 -f /home/restcloud
46 chmod +x tomConfig.sh
47 ./tomConfig.sh -p 8080 -t 200 -f /home/restcloud
48 systemctl status tomcat.service
49 cd /home/restcloud/tomcat/
50 ll
51 cd bin/
52 vim catalina.sh
53 cd /home/
54 ll
55 cd restcloud/
56 ll
57 cd tomcat/
58 cd …/…/
59 cd shellFile/
60 ll
61 cd tomcat/
62 ll
63 vim tomConfig.sh
64 cd /home/shellFile/
65 cd tomcat/
66 vim tomConfig.sh
67 ifconfig
68 cd /home/restcloud/tomcat/
69 tail -f logs/catalina.out
70 systemctl restart tomcat.service
71 tail -f logs/catalina.out
72 ping 172.16.228.25
73 curl -k 172.16.228.25:27017
74 curl -k 172.16.228.25:22
75 curl -k 172.16.228.25:27017
76 tail -f logs/catalina.out
77 cd logs/
78 ll
79 cat /dev/null > /home/restcloud/tomcat/logs/catalina.out
80 ll
81 crontab -e
82 crontab -l
83 cd /home/
84 ll
85 cd shellFile/tomcat/
86 ll
87 pwd
88 crontab -e
89 cd /home/restcloud/tomcat/logs/
90 ll
91 ls
92 ll
93 contron -e
94 crontab -e
95 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
96 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
97 ll
98 cd /home/restcloud/
99 ll
100 cd tomcat/
101 cd bin
102 vim startup.sh
103 cd …/conf/
104 ll
105 vim server.xml
106 cd …/
107 ll
108 cd bin/
109 vim startup.sh
110 vim shutdown.sh
111 vim catalina
112 vim catalina.sh
113 cat /proc/cpuinfo | grep “processor” | wc -l
114 grep MemTotal /proc/meminfo
115 free -g
116 cd /home/
117 cd restcloud/
118 ll
119 cd tomcat/
120 cd webapps/
121 ll
122 cd ROOT/
123 ll
124 cd …/
125 ll
126 rm -rf *
127 pwd
128 ll
129 cd ROOT/
130 ll
131 cd WEB-INF/classes/
132 ll
133 vim application.properties
134 systemctl restart tomcat.service
135 systemctl status firewalld
136 firewall-cmd --add-port=8080/tcp -permanent
137 firewalld-cmd --add-port=8080/tcp -permanent
138 firewall-cmd --add-port=8080/tcp --permanent
139 ifconfig
140 systemctl reload firewalld
141 vim application.properties
142 systemctl restart tomcat.service
143 vim application.properties
144 systemctl restart tomcat.service
145 vim application.properties
146 systemctl restart tomcat.service
147 cd /home/restcloud/
148 ll
149 cd tomcat/
150 cd bin/
151 ll
152 cd ,.
153 cd …/ser
154 cd …/conf/
155 vim server.xml
156 systemctl restart tomcat.service
157 systemctl enable tomcat.service
158 vim server.xml
159 cd /home/shellFile/
160 ll
161 cd tomcat/
162 ll
163 chmod +x splitlog.sh
164 ll
165 vim splitlog.sh
166 crontab -e
167 cd /home/
168 ll
169 cd restcloud/
170 ll
171 cd tomcat/
172 ll
173 cd logs/
174 ll
175 crontab -e
176 ll
177 vim /home/shellFile/tomcat/splitlog.sh
178 ll
179 cd /home/
180 ll
181 cd shellFile/
182 cd tomcat/
183 ./splitlog.sh
184 crontab -e
185 vim splitlog.sh
186 crontab -e
187 crontab -r
188 crontab -e
189 cd /home/shellFile/
190 ll
191 cd /home/restcloud/tomcat/bin/
192 vim catalina.sh
193 cd /home/restcloud/
194 ll
195 cd tomcat/webapps/ROOT/WEB-INF/classes/
196 ll
197 pwd
198 crontab -e
199 cd “/home/restcloud/tomcat”
200 ls
201 cd …/
202 ls
203 cd home
204 ks
205 ll
206 cd /restcloud
207 cd restcloud
208 ll
209 cd tomcat
210 ll
211 cd /home/
212 cd restcloud/tomcat/
213 ll
214 cd webapps/
215 cd ROOT/
216 ll
217 cd WEB-INF/classes/
218 ll
219 vim application.properties
220 systemctl restart tomcat.service
221 vim application.properties
222 systemctl restart tomcat.service
223 cd /home/
224 ll
225 cd tom
226 cd restcloud/tomcat/
227 cd ibn
228 cd bin/
229 ll
230 vim catalina
231 vim catalina.sh
232 systemctl restart tomcat.service
233 cd /home/restcloud/tomcat/
234 cd webapps/
235 ll
236 cd ROOT/
237 ll
238 cd WEB-INF/
239 ll
240 cd classes/
241 vim application.properties
242 systemctl restart tomcat.service
243 echo $JAVA_HOME
244 cd /home/shellFile/
245 ll
246 vim test.sh
247 chmod +x test.sh
248 ll
249 vim test.sh
250 ./test.sh
251 vim test.sh
252 touch /home/a.txt
253 ./test.sh
254 vim /home/a.txt
255 vim test.sh
256 vim /home/a.txt
257 ll
258 cd /home/
259 ll
260 cd km/
261 ll
262 cd …/
263 ll
264 cd shellFile/
265 ll
266 vim test.sh
267 ./test.sh
268 vim /home/a.txt
269 vim test.sh
270 ./test.sh
271 vim test.sh
272 ./test.sh
273 vim /home/a.txt
274 vim test.sh
275 vim /home/a.txt
276 ./test.sh
277 cd /home/
278 ll
279 cd shellFile/
280 ll
281 vim test.sh
282 rm -rf test.sh
283 cd …/
284 ll
285 rm -rf a.txt
172.16.228.21 测试环境-网关

172.16.224.198 正式环境 nginx
1 ‘/run/media/root/CentOS 7 x86_64/CAS_tools_install.sh’
2 cd media/root/CentOS 7 x86_64
3 cd /media/root/CentOS 7 x86_64
4 df -h
5 cd /run/media/root/CentOS 7 x86_64
6 cd /run
7 ll
8 cd media/root/CentOS 7 x86_64
9 cd media
10 ll
11 cd root
12 ll
13 cd CentOS 7 x86_64
14 ./CAS_tools_install.sh
15 ll
16 ‘/run/media/root/castools/linux/CAS_tools_install.sh’
17 psword
18 passwd
19 chkconfig NetworkManager on
20 service NetworkMnager start
21 service NetworkManager start
22 ping 172.16.224.108
23 set +o history;
24 cd /home/
25 ll
26 mkdir package
27 ll
28 cd package/
29 mkdir rpm
30 cd rpm/
31 pwd
32 rpm -Uvh *.rpm --nodeps --force
33 cd …/
34 pwd
35 ll
36 tar -zxvf nginx-1.18.0.tar.gz
37 ll
38 cd …/
39 ll
40 mkdir restcloud
41 cd restcloud/
42 mv /home/package/nginx-1.18.0 ./nginx
43 ll
44 cd nginx/
45 ll
46 ./configure
47 cd /home/
48 ll
49 cd package/rpm/
50 ll
51 rpm -Uvh gcc-c+±4.8.5-44.el7.x86_64.rpm --nodeps --force
52 cd /home/restcloud/nginx/
53 ./configure
54 ll
55 cd /home/package/rpm/
56 ll
57 rm -rf *
58 ll
59 pwd
60 rpm -Uvh *.rpm --nodeps --force
61 cd /home/restcloud/nginx/
62 ./configure
63 make && make install
64 cd /usr/local/nginx/
65 ll
66 cd sbin/
67 ./nginx -c /usr/local/nginx/conf/nginx.conf
68 ps -ef|grep nginx
69 ifconfig
70 firewall-cmd --add-port=80/tcp --pernanent
71 firewall-cmd --add-port=80/tcp --permanent
72 firewall-cmd --reload
73 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
74 export LANG=“en_US”;export LANGUAGE=“en_US”;export LC_ALL=“en_US”;top
75 ps -ef|grep nginx
76 df -h
77 set +o history;
78 cd /home/
79 cd shellFile/
80 ll
81 vim application.properties
82 cat application.properties
83 vim application.properties
84 cd /home/
85 ll
86 cd restcloud/
87 l;l
88 cd …/
89 ll
90 mkdir shellFile
91 ll
92 cd shellFile/
93 ll
94 vim test.sh
95 pwd
96 ll
97 vim test.sh
98 chmod +x test.sh
99 ./test -mi 1 -mp 1 -ip 1
100 ll
101 ./test.sh -mi 1 -mp 1 -ip 1
102 vim test.sh
103 ./test.sh -mi 1 -mp 1 -ip 1
104 vim test.sh
105 ./test.sh -mi 1 -mp 1 -ip 1
106 vim test.sh
107 ./test.sh -mi 1 -mp 1 -ip 1
108 vim test.sh
109 ./test.sh -mi 1 -mp 1 -ip 1
110 vim test.sh
111 ./test.sh -mi 1 -mp 1 -ip 1
112 vim test.sh
113 ./test.sh -mi 1 -mp 1 -ip 1
114 vim test.sh
115 ./test.sh -mi 1 -mp 1 -ip 1
116 vim test.sh
117 ./test.sh -mi 1 -mp 1 -ip 1
118 vim test.sh
119 ./test.sh -mi 1 -mp 1 -ip 1
120 vim test.sh
121 ./test.sh -mi 1 -mp 1 -ip 1
122 vim test.sh
123 ./test.sh -mi 1 -mp 1 -ip 1
124 vim test.sh
125 ./test.sh -mi 1 -mp 1 -ip 1
126 vim test.sh
127 ./test.sh -mi 1 -mp 1 -ip 1
128 vim test.sh
129 ./test.sh -mi 1 -mp 1 -ip 1
130 vim test.sh
131 ./test.sh -mi 1 -mp 1 -ip 1
132 vim test.sh
133 ./test.sh -mi 1 -mp 1 -ip 1
134 vim test.sh
135 ./test.sh -mi 1 -mp 1 -ip 1
136 vim test.sh
137 ./test.sh -mi 1 -mp 1 -ip 1
138 vim test.sh
139 ./test.sh -mi 1 -mp 1 -ip 1
140 vim test.sh
141 ./test.sh -mi 1 -mp 1 -ip 1
142 vim test.sh
143 ./test.sh -mi 1 -mp 1 -ip 1
144 set +o history;
145 cd /home/shellFile/
146 vim application.properties
147 ifocnfig
148 ifconfig
149 vim application.properties
150 ll
151 mv test.sh application.sh
152 ll
153 rm -rf 1
154 rm -rf application.
155 ll
156 rm -rf application.properties
157 ll
158 pwd
159 rm -rf application.sh
160 cd /home/
161 ll
162 cd shellFile/
163 ll
164 vim test.sh
165 ./test.sh -mi 1 -mp 1 -ip 1
166 vim test.sh
167 ./test.sh -mi 1 -mp 1 -ip 1
168 vim test.sh
169 ./test.sh -mi 1 -mp 1 -ip 1
170 vim test.sh
171 ./test.sh -mi 127.0.0.1,111.112.110.10 -mp 1 -ip 1
172 vim test.sh
173 ./test.sh -mi 127.0.0.1,111.112.110.10 -mp 1 -ip 1
174 vim test.sh
175 ./test.sh -mi 127.0.0.1,111.112.110.10 -mp 1 -ip 1
176 vim test.sh
177 ./test.sh -mi 127.0.0.1,111.112.110.10 -mp 1 -ip 1
178 vim test.sh
179 ./test.sh -i 127.0.0.1,111.112.110.10 -p 1 -c 1
180 vim test.sh
181 ./test.sh -i 127.0.0.1,111.112.110.10 -p 1 -c 1
182 vim test.sh
183 ./test.sh -i 127.0.0.1,111.112.110.10 -p 1 -c 1
184 vim test.sh
185 /test.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
186 ./test.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
187 vim test.sh
188 ./test.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
189 vim test.sh
190 ./test.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
191 vim test.sh
192 ./test.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
193 vim test.sh
194 ./test.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
195 vim test.sh
196 ./test.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
197 ll
198 cd /
199 ll
200 cd /home
201 ll
202 ifconfig
203 cd /usr/local/nginx/
204 cd conf/
205 ll
206 vim nginx.conf
207 rm -rf nginx.conf
208 ll
209 pwd
210 vim nginx.conf
211 systemctl reload nginx.service
212 ./nginx -s stop
213 cd …/sbin
214 ./nginx -s stop
215 ./nginx -c /usr/local/nginx/conf/nginx.conf
216 cd /var/
217 ll
218 cd log
219 ll
220 mkdir nginx
221 cd nginx/
222 touch error.log
223 cd /usr/local/nginx/bin
224 cd /usr/local/nginx/sbin/
225 ll
226 ./nginx -c /usr/local/nginx/conf/nginx.conf
227 ps -ef|grep nginx
228 ifconfig
229 firewall-cmd --list-all
230 firewall-cmd --add-port=81/tcp --permanent
231 firewall-cmd --add-port=82/tcp --permanent
232 firewall-cmd --add-port=83/tcp --permanent
233 firewall-cmd --reload
234 vim …/conf/nginx.conf
235 ./nginx -s stop
236 ./nginx -c /usr/local/nginx/conf/nginx.conf
237 ifconfig
238 cd …/logs/
239 ll
240 vim error.log
241 vim access.log
242 cd /var/log/nginx/
243 ll
244 vim error.log
245 cd /usr/local/nginx/
246 ll
247 cd conf/
248 vim nginx.conf

172.16.224.198 正式环境 nginx

172.16.224.202正式环境 网关 1

1 ‘/run/media/root/CentOS 7 x86_64/CAS_tools_install.sh’
2 cd media/root/CentOS 7 x86_64
3 cd /media/root/CentOS 7 x86_64
4 df -h
5 cd /run/media/root/CentOS 7 x86_64
6 cd /run
7 ll
8 cd media/root/CentOS 7 x86_64
9 cd media
10 ll
11 cd root
12 ll
13 cd CentOS 7 x86_64
14 ./CAS_tools_install.sh
15 ll
16 ‘/run/media/root/castools/linux/CAS_tools_install.sh’
17 psword
18 passwd
19 chkconfig NetworkManager on
20 service NetworkMnager start
21 service NetworkManager start
22 ping 172.16.224.108
23 cd /home/
24 mkdir shellFile
25 ll
26 set +o history;
27 set +o history;
28 cd /home/
29 mkdir shellFile
30 mkdir package
31 ll
32 cd package/
33 ll
34 pwd
35 ll
36 mv jdk /home/shellFile/
37 mv tomcat/ /home/shellFile/
38 ll
39 mv application.sh /home/shellFile/tomcat/
40 ll
41 cd …/shellFile/
42 ll
43 cd jdk/
44 ll
45 chmod +x /home/shellFile/*
46 lll
47 ll
48 chmod +x /home/shellFile/*
49 ll
50 chmod +x installJdk.sh
51 ll
52 ./installJdk.sh -p /home/package -d /home/restcloud/ -n jdk-8u371-linux-x64.tar.gz
53 cd …/tomcat/
54 ll
55 chmod +x *
56 ll
57 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
58 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
59 systemctl status tomcat.service
60 cd /home/restcloud/
61 ll
62 cd tomcat/
63 ll
64 cd bin/
65 ll
66 cd /home/
67 systemctl stop tomcat.service
68 systemctl start tomcat.service
69 systemctl status tomcat.service
70 cd shellFile/
71 ll
72 cd tomcat/
73 vim tomConfig.sh
74 cd /lib/systemd/system
75 rm -rf tomcat.service
76 cd /home/restcloud/
77 rm -rf tomcat/
78 ps -ef|grep java
79 cd /home/shellFile/tomcat/
80 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
81 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
82 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
83 systemctl status tomcat.service
84 vim /home/shellFile/tomcat/tomConfig.sh
85 cd /lib/systemd/system
86 rm -rf tomcat.service
87 cd /home/restcloud/
88 ll
89 rm -rf tomcat/
90 cd /home/shellFile/
91 cd tomcat/
92 ll
93 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
94 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
95 systemctl status tomcat.service
96 cd /home/
97 ll
98 cd shellFile/
99 ll
100 cd tomcat/
101 vim tomConfig.sh
102 cd /lib/systemd/system
103 rm -rf tomcat.service
104 cd /home/restcloud/
105 ll
106 rm -rf tomcat/
107 cd /home/shellFile/tomcat/
108 ll
109 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
110 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
111 systemctl status tomcat.service
112 vim tomConfig.sh
113 cd /lib/systemd/system
114 rm -rf tomcat.service
115 cd /home/restcloud/
116 ll
117 rm -rf tomcat/
118 cd /home/shellFile/
119 cd tomcat/
120 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
121 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
122 cd /home/restcloud/tomcat/bin/
123 ll
124 cd /home/restcloud/tomcat/bin/
125 ll
126 ps -ef|grep tomcat
127 systemctl stop tomcat.service
128 cd /home/shellFile/
129 ll
130 cd tomcat/
131 l;ll
132 ll
133 vim tomConfig.sh
134 cd /lib/systemd/
135 ll
136 cd system
137 ll
138 rm -rf tomcat.service
139 cd /home/restcloud/
140 rm -rf tomcat/
141 ll
142 cd /home/shellFile/
143 ll
144 cd tomcat/
145 ./installJdk.sh -p /home/package -d /home/restcloud/ -n jdk-8u371-linux-x64.tar.gz
146 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
147 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
148 cd /home/shellFile/tomcat/
149 ll
150 cd …/
151 ll
152 vim test.sh
153 ./test.sh
154 vim test.sh
155 ./test.sh
156 vim test.sh
157 ./test.sh
158 vim test.sh
159 ./test.sh
160 vim test.sh
161 vim tomcat/
162 cd tomcat/
163 ll
164 vim tomConfig.sh
165 cd /lib/systemd/system
166 ll
167 rm -rf tomcat.service
168 cd …/
169 ll
170 cd /
171 ll
172 cd /home/
173 ll
174 cdrecord
175 cd restcloud/
176 ll
177 rm -rf tomcat/
178 cd …/shellFile/
179 ll
180 cd tomcat/
181 ll
182 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
183 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
184 systemctl status tomcat.service
185 systemctl stop tomcat.service
186 ll
187 vim application.sh
188 cd /home/package/
189 ll
190 mv ROOT.war /home/restcloud/tomcat/webapps/
191 cd /home/restcloud/tomcat/webapps/
192 ll
193 rm -rf docs/
194 rm -rf examples/
195 rm -rf host-manager/
196 rm -rf manager/
197 rm -rf ROOT
198 ll
199 systemctl restart tomcat.service
200 systemctl stop tomcat.service
201 cd /home/shellFile/
202 ll
203 cd tomcat/
204 ll
205 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
206 vim application.sh
207 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer
208 cd /home/restcloud/tomcat/webapps/ROOT/WEB-INF/classes/
209 vim application.properties
210 cd /home/shellFile/
211 ll
212 cd tomcat/
213 vim application.sh
214 cd /home/restcloud/tomcat/webapps/ROOT/WEB-INF/classes/
215 vim application.properties
216 cd /home/shellFile/
217 cd tomcat/
218 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer,org
219 vim application.sh
220 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer,org
221 systemctl restart tomcat.service
222 cd /home/restcloud/tomcat/
223 cd logs/
224 tail -f catalina.out
225 cd /home/shellFile/
226 ll
227 cd tomcat/
228 vim application.sh
229 systemctl stop tomcat.service
230 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer,org
231 vim application.sh
232 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,gateway,esb,etl,designer,org
233 cd /home/restcloud/tomcat/
234 tail -f logs/catalina.out
235 systemctl restart tomcat.service
236 ll
237 tail -f logs/catalina.out
238 systemctl restart tomcat.service
239 tail -f logs/catalina.out
240 ping 172.16.224.210
241 curl -k 172.16.224.210:27017
242 systemctl stop tomcat.service
243 systemctl start tomcat.service
244 tail -f logs/catalina.out
245 systemctl restart tomcat.service
246 tail -f logs/catalina.out
247 systemctl stop tomcat.service
248 systemctl start tomcat.service
249 tail logs/catalina.out
250 tail -f logs/catalina.out
251 systemctl restart tomcat.service
252 cd /home/shellFile/
253 ll
254 vim test.sh
255 rm -rf test.sh
256 cd tomcat/
257 ll
258 vim tomConfig.sh
259 vim application.sh
260 ll
261 pwd
262 cd /home/restcloud/
263 ll
264 cd tomcat/
265 ll
266 cd bin/
267 ll
268 chmod -R 777 /home/restcloud/tomcat/*
269 ll
270 cd /home/restcloud/tomcat/
271 ll
272 cd bin/
273 ll
274 cd /home/
275 cd shellFile/
276 vim test.sh
277 chmod +x test.sh
278 ./test.sh
279 vim test.sh
280 chmod -R 777 /home/restcloud/tomcat/*
281 vim test.sh
282 ./test.sh
283 vim test.sh
284 ./test.sh
285 cd /home/restcloud/
286 ll
287 cd tomcat/
288 ll
289 cd bin/
290 ll
291 cd /home/restcloud/tomcat/bin/
292 ll
293 cd /home/shellFile/
294 ll
295 cd tomcat/
296 ll
297 vim tomConfig.sh
298 cd /lib/systemd/system/
299 rm -rf tomcat.service
300 cd /home/shellFile/
301 ll
302 cd …/restcloud/
303 rm -rf tomcat/
304 ll
305 cd /home/shellFile/tomcat/
306 ll
307 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
308 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
309 vim tomConfig.sh
310 cd /lib/sys
311 cd /lib/systemd/system
312 rm -rf tomcat.service
313 cd /homre
314 cd /home/restcloud/
315 ll
316 rm -rf tomcat/
317 ll
318 cd /home/shellFile/
319 cd tomcat/
320 vim tomConfig.sh
321 ./installTom.sh -p /home/package -d /home/restcloud/ -n apache-tomcat-9.0.76.tar.gz
322 ./tomConfig.sh -p 8080 -t 3200 -f /home/restcloud
323 cd /home/mre
324 cd /home/restcloud/
325 ll
326 cd tomcat/
327 ll
328 cd ibn
329 cd bin/
330 ll
331 cd /home/
332 ll
333 cd shellFile/tomcat/
334 ll
335 vim tomConfig.sh
336 cd /home/restcloud/
337 ll
338 cd tomcat/
339 ll
340 cd bin/
341 ll
342 ls
343 cd /home/shellFile/tomcat/
344 vim tomConfig.sh
345 ll
346 vim application.sh
347 cd /home/restcloud/tomcat/webapps/ROOT/WEB-INF/classes/
348 vim application.properties
349 systemctl restart tomcat.service
350 vim application.properties
351 cd /home/shellFile/
352 cd tomcat/
353 ll
354 vim application.sh
355 firewall-cmd --add-port=8080/tcp --permanent
356 firewall-cmd --reload
357 ifocnfig
358 ifconfig
359 cd /home/restcloud/tomcat/webapps/R
360 cd /home/restcloud/tomcat/webapps/
361 pwd
362 set +o history;
363 cd /home/restcloud/
364 ll
365 cd tomcat/
366 cd bin/
367 vim catalina
368 vim catalina.sh
369 systemctl restart tomcat.service
370 cd …/webapps/ROOT/WEB-INF/classes/
371 vim application.properties
372 cd /home/
373 ll
374 cd shellFile/
375 ll
376 vim tomcat/
377 cd tomcat/
378 ll
379 rm -rf application.sh
380 pwd
381 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,etl,org,gateway,designer,esb
382 chmod +x j*
383 chmod +x *
384 ./application.sh -i 172.16.224.210,172.16.224.211,172.16.224.212 -p root@2024 -c 172.16.224.198 -m ds,etl,org,gateway,designer,esb
385 cd /home/restcloud/tomcat/webapps/ROOT/WEB-INF/classes/
386 vim application.properties
387 systemctl restart tomcat.service
388 cd /home/shellFile/tomcat/
389 vim tomConfig.sh
172.16.224.202正式环境 网关 1

172.16.224.210 正式环境 MongoDB 主
1 ‘/run/media/root/CentOS 7 x86_64/CAS_tools_install.sh’
2 cd media/root/CentOS 7 x86_64
3 cd /media/root/CentOS 7 x86_64
4 df -h
5 cd /run/media/root/CentOS 7 x86_64
6 cd /run
7 ll
8 cd media/root/CentOS 7 x86_64
9 cd media
10 ll
11 cd root
12 ll
13 cd CentOS 7 x86_64
14 ./CAS_tools_install.sh
15 ll
16 ‘/run/media/root/castools/linux/CAS_tools_install.sh’
17 psword
18 passwd
19 chkconfig NetworkManager on
20 service NetworkMnager start
21 service NetworkManager start
22 ping 172.16.224.108
23 df -h
24 free -g
25 cat /proc/cpuinfo | grep “processor” | wc -l
26 set +o history;
27 cd /home/
28 ll
29 mkdir package
30 cd package/
31 ll
32 cat /etc/redhat-release
33 cd /home/
34 mkdir shellFile
35 cd shellFile/
36 ll
37 chmod +x mongoInstall.sh
38 ./mongoInstall.sh -p /home/package -d /home/restcloud -n mongodb-linux-x86_64-rhel70-4.2.25.tgz
39 systemctl status mongodb.service
40 ps -ef|grep mongodb
41 netstat -nptl
42 cd /home/restcloud/
43 ll
44 cd mongodb/
45 ll
46 cd bin/
47 vim mongodb.conf
48 ./mongod --config mongodb.conf
49 cd /lib/systemd/system/
50 vim mongodb.service
51 rm -rf mongodb.service
52 systemctl daemon-reload
53 cat /etc/redhat-release
54 firewall-cmd --add-port=27017/tcp --permanent
55 firewall-cmd --list-all
56 systemctl status firewalld
57 firewall-cmd --list-all
58 systemctl reload firewalld
59 firewall-cmd --reload
60 firewall-cmd --list-all
61 ll
62 vim zram.service
63 cd /home/shellFile/
64 ll
65 cd /home/restcloud/
66 ll
67 rm -rf mongodb/
68 cd /home/
69 ll
70 cd shellFile/
71 ll
72 ./mongoInstall.sh -p /home/package -d /home/restcloud -n mongodb-linux-x86_64-rhel70-4.2.25.tgz
73 systemctl status mongodb.service
74 q!
75 cd /lib/systemd/system
76 vim mongodb.service
77 rm -rf mongodb.service
78 ll
79 systemctl daemon-reload
80 cd /home/restcloud/
81 ll
82 rm -rf mongodb/
83 netstat -nptl
84 cd /home/shellFile/
85 vim mongoInstall.sh
86 ./mongoInstall.sh -p /home/package -d /home/restcloud -n mongodb-linux-x86_64-rhel70-4.2.25.tgz
87 systemctl status mongodb.service
88 cd /lib/systemd/system
89 vim mongodb.service
90 cd /home/shellFile/
91 vim mongoInstall.sh
92 cd /lib/systemd/system
93 rm -rf mongodb.service
94 systemctl daemon-reload
95 cd /home/restcloud/
96 ll
97 rm -rf mongodb/
98 cd /home/shellFile/
99 ll
100 ./mongoInstall.sh -p /home/package -d /home/restcloud -n mongodb-linux-x86_64-rhel70-4.2.25.tgz
101 cd /lib/systemd/system
102 vim mongodb.service
103 systemctl status mongodb.service
104 systemctl start mongodb.service
105 vim /home/shellFile/mongoInstall.sh
106 systemctl daemon-reload
107 systemctl start mongodb.service
108 systemctl status mongodb.service
109 vim mongodb.service
110 rm -rf mongodb.service
111 cd /home/shellFile/
112 ll
113 vim mongoInstall.sh
114 cd /home/restcloud/
115 ll
116 rm -rf mongodb/
117 cd …/shellFile/
118 ll
119 ./mongoInstall.sh -p /home/package -d /home/restcloud -n mongodb-linux-x86_64-rhel70-4.2.25.tgz
120 systemctl status mongodb.service
121 netstat -nptl
122 ll
123 pwd
124 cd /home/restcloud/
125 ll
126 cd mongodb/
127 cd bin/
128 ./mongo
129 cd /home/
130 cd restcloud/
131 cd mongodb/
132 ll
133 openssl rand -base64 745 > access.key
134 ls
135 pwd
136 security:
137 # 是否启动授权认证
138 authorization: enabled
139 # 集群的私钥的完整路径
140 chmod 600 access.key
141 ll
142 cd bin/
143 vim mongodb.conf
144 systemctl stop mongodb.service
145 cd /lib/systemd/system/
146 ll
147 vim mongodb.service
148 pwd
149 systemctl start mongodb.service
150 systemctl daemon-reload
151 systemctl start mongodb.service
152 systemctl status mongodb.service
153 cd /home/restcloud/
154 ll
155 cd mongodb/
156 ./mon
157 cd bin/
158 ./mongo
159 连接主机…
160 firewall-cmd --add-port=27017/tcp --permanent
161 ifconfig
162 cd /home/restcloud/
163 ll
164 cd mongodb/
165 ll
166 vim access.key
167 cd data/
168 ll
169 cd db/
170 ll
171 cd …/
172 ifconfig
173 set +o history;
174 ifconfig
175 cd /home/restcloud/mongodb/
176 cd ibn
177 cd bin/
178 ./mongo
179 systemctl restart mongodb.service
180 ./mongo
181 vim mongodb.conf
182 cd /home/restcloud/
183 ll
184 cd mongodb/
185 ll
186 cd mon
187 cd bin/
188 ./mongo
189 setenforce 0
190 sed -i “s/SELINUX=enforcing/SELINUX=disabled/g” /etc/selinux/config
191 systemctl stop mongodb.service
192 systemctl start mongodb.service
172.16.224.210 正式环境 MongoDB 主

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值