Linux 手动升级软件保姆级教程,适用所有软件,不限于麒麟等国产系统
1、检查软件版本,及是否安装 openssh为例
- 是否安装 rpm -qa|grep openssh
- 备份
mv /etc/ssh/ /home/ssh-bak
mv /usr/bin/ssh /usr/bin/ssh.bak
mv /usr/sbin/sshd /usr/sbin/sshd.bak
mv /etc/pam.d/sshd /etc/pam.d/sshd.old
2、机器如果不在身边,机器无法上网,需要先打开 telnet ftp等
上述是关闭的状态,需要打开,并添加开机自启动(linux老版本使用 chkconfig, 新版本使用 systemctl )
service telnet.socket restart
chkconfig telnet.socket on
systemctl enable telnet.socket
systemctl status telnet.socket
3、卸载程序
rpm -e openssh-server
rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64
rpm -e openssh-8.2p1-16.p04.ky10.x86_64
rpm -e openssh-*
rpm -e openssh-9.8p1-5.el9.x86_64
rpm -e openssh-9*
rpm -e openssh-server-9.8p1-5.el9.x86_64
rpm -e openssh*
rpm -e openssh-9.8p1-5.el9.x86_64.rpm
rpm -e openssh-9.8p1-5.el9.x86_64
rpm -e openssh*
4、安装程序(如果购买了序列号可以使用官方的源仓库中的包,没有的话可以下载官网(tar 源码安装太麻烦,依赖不好解决)或者其他网站,下载地址:Search Results for openssh)
rpm -ivh *.rpm
rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm
rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm
902 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm
rpm -qa|grep gnutls
rpm -Uvh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm
rpm -ivh *.rpm --nodeps --force
5、如果 卸载了之后 机器无法联网,发下有些包传不上去 可以使用python 脚本使用内置的python 库,写一个socket 保存文件,运行后,使用socket 工具或者脚本传文件上去
- 服务器运行服务端代码:
python3
import socket
import os
def start_server(host='127.0.0.1', port=65432):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as server_socket:
server_socket.bind((host, port))
server_socket.listen()
print(f"Server listening on {host}:{port}")
conn, addr = server_socket.accept()
with conn:
print(f"Connected by {addr}")
# 首先接收文件名
filename_data = conn.recv(1024).decode().strip()
filename = os.path.basename(filename_data) # 假设文件名是完整的路径,只取基名
if not os.path.exists('received_files'):
os.makedirs('received_files')
filepath = os.path.join('received_files', filename)
# 打开文件准备写入
with open(filepath, 'wb') as f:
# 接收文件内容
while True:
data = conn.recv(1024)
if not data:
break
f.write(data)
# 运行服务器
start_server()
python2:
#!/usr/bin/env python
#coding=utf-8
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler,ThrottledDTPHandler
from pyftpdlib.servers import FTPServer
from pyftpdlib.log import LogFormatter
import logging
#记录日志,这里既输出到屏幕又输出到文件,方便日志查看:
logger = logging.getLogger()
logger.setLevel(logging.INFO)
ch = logging.StreamHandler()
fh = logging.FileHandler(filename='Myftpserver.log',encoding='utf-8')
ch.setFormatter(LogFormatter())
fh.setFormatter(LogFormatter())
logger.addHandler(ch) #将日志输出至屏幕
logger.addHandler(fh) #将日志输出至文件
#实例化虚拟用户,这是FTP验证首要条件
authorizer = DummyAuthorizer()
#添加用户权限和路径,括号内的参数是(用户名,密码,用户目录,权限),可以为不同的用户添加不同的目录和权限
authorizer.add_user("user","123456789","d:/",perm="elradfmw")
#添加匿名用户,只需要路径
#authorizer.add_anonymous("d:/")
#初始化FTP句柄
handler = FTPHandler
handler.authorizer = authorizer
#添加被动端口范围
handler.passive_ports = range(2000,2333)
#下载上传速度设置
dtp_handler = ThrottledDTPHandler
dtp_handler.read_limit = 300 * 1024 #300kb/s
dtp_handler.write_limit = 300 * 1024
handler.dtp_handler = dtp_handler
#监听IP和端口,Linux需要root用户才能使用21端口
server = FTPServer(("0.0.0.0",21),handler)
#最大连接数
server.max_cons = 160
server.max_cons_per_ip = 20
#开始服务,自带日志打印信息
server.serve_forever()
- 客户端可以用socket 工具 或者下面脚本:
import socket
import os
def send_file(filepath, host='10.61.10.72', port=20250):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as client_socket:
client_socket.connect((host, port))
# 首先发送文件名
filename = os.path.basename(filepath)
client_socket.sendall(filename.encode() + b'\n')
# 打开文件并发送内容
with open(filepath, 'rb') as f:
while True:
data = f.read(1024)
if not data:
break
client_socket.sendall(data)
最后,附一个 mysql 9的安装步骤吧
前3步同上,使用的包如下:依赖可以在网站界面找到并下载
rpm -ivh mysql*.rpm
mysql_secure_installation
mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1
vim /etc/my.cnf
加入 lower_case_table_names=1
service mysqld restart
如果上述步骤错误,或者修改了配置无法启动服务,改回初始的配置也无法启动,可以把数据库重新初始化
rm -rf /var/lib/mysql
mysqld --initialize --user=mysql --lower_case_table_names=1
添加用户,设置复杂点的密码
开启防火墙,开放端口,导入数据
设置允许的 IP 访问此数据库,关闭数据库端口
此致,敬礼
-------------------------------------------------------------------------------------------------完结-------------------------------------------
过程脚本
1 ps -ef|grep dms
2 kill -9 4754
3 more start.sh
4 ps -ef |grep dms
5 vim start.sh
6 cd ..
7 ps -ef|grep java
8 ./start.sh
9 ps -ef|grep java
10 kill -9 5053
11 kill -9 5059
12 ps -ef|grep java
13 cd ybtcloud-imq/
14 more start.sh
15 cd ..
16 ./start.sh
17 cd ybtcloud-imq/
18 ll
19 tail -f tylog.log
20 ps -ef|grep java
21 ./start.sh
22 tail -f tylog.log
23 ./start.sh
24 tail -f tylog.log
25 netstat -aon
26 reboot
27 service start php-fpm
28 service php-fpm start
29 cd /home/THS
30 ll
31 cd bin
32 ll
33 ./start.sh
34 cd ../../tycloud/
35 ll
36 ./start.sh
37 ps -ef|grep java
38 cd /home
39 ll
40 cd tyoa
41 ll
42 mkdir bad
43 mv app bad
44 ll
45 mv config/ composer.json bad
46 ll
47 mv extend/ bad
48 ll
49 mv public/ bad
50 ll
51 mv route/ runtime/ vendor vendor---/ vendorbak/ bad
52 ll
53 cd ..
54 ll
55 tar -zxvf tyoa.tar.gz
56 cd tyoa/
57 ll
58 cd ..
59 ll
60 mv app composer.json config/ crud/ extend/ public/ route/ runtime/ vendor/ tyoa
61 ll
62 cd nginx/
63 ll
64 cd ..
65 ll
66 mv THS1 THSManager/ TongWeb8.0.6.2 TongWeb7.0.4.9_M4_Enterprise_Linux temp1
67 ll
68 cd tyoa
69 ll
70 cd config
71 ll
72 vim database.php
73 find / -name "*php.ini*"
74 vim /etc/php.ini
75 service php-fpm restart
76 cd /home/temp/php
77 rpm -ivh php-pdo-8.2.13-1.module_el9.4.0+65+49ff6472.x86_64.rpm
78 service php-fpm restart
79 rpm -ivh php-mysql-5.4.16-43.amzn2.x86_64.rpm
80 rpm -ivh mariadb-libs-5.5.68-1.amzn2.x86_64.rpm
81 rpm -ivh mariadb-libs-5.5.68-1.amzn2.x86_64.rpm --force
82 rpm -ivh php-mysqlnd-8.2.13-1.mga9.x86_64.rpm
83 rpm -ivh php-ini-8.2.13-1.mga9.x86_64.rpm
84 php -v
85 cd /usr/lib64/php/modules/
86 ll
87 pwd
88 cd /home/temp/php/php-8.3.13/
89 ll
90 cd libs/
91 ll
92 cd ext
93 cd ../ext/
94 ll
95 cd pdo_mysql/
96 ll
97 cp pdo_mysql.o /usr/lib64/php/modules/
98 php -v
99 cd /usr/lib64/php/modules/
100 ll
101 cd /home/temp/php/php-8.3.13/
102 ./configure
103 make
104 make install
105 cd ext/pdo_mysql/
106 ll
107 php -v
108 cd /home/temp/php/
109 rpm -ivh php-mysqlnd-8.2.13-1.module_el9.4.0+65+49ff6472.x86_64.rpm
110 rpm -ivh php-mysqli-8.2.13-1.mga9.x86_64.rpm
111 cd /usr/lib64/php/modules/
112 ll
113 rm -rf mysql.o
114 ll
115 rm -rf pdo_mysql.o
116 ll
117 pwd
118 rpm -ivh /home/temp/php/php-gd-8.2.13-1.module_el9.4.0+65+49ff6472.x86_64.rpm
119 ll
120 php -v
121 service php-fpm restart
122 php -v
123 pwd
124 ll
125 php -m
126 service php-fpm restart
127 php -v
128 php -i | grep -i --color gd
129 php -m
130 cd /home/temp/php
131 ll
132 rpm -ivh php-gd-8.2.13-1.module_el9.4.0+65+49ff6472.x86_64.rpm
133 php -m
134 rpm -ivh gd-devel-2.3.2-3.el9.x86_64.rpm
135 rpm -ivh gd-2.3.2-3.el9.x86_64.rpm
136 php -v
137 php -m
138 rpm -ivh gd-devel-2.3.2-3.el9.x86_64.rpm
139 rpm -ivh gd-2.3.2-3.el9.x86_64.rpm
140 rpm -ivh gd-2.3.2-3.el9.x86_64.rpm --force
141 php -v
142 service php-fpm restart
143 cd /home/temp/php/php-8.3.13/
144 ll
145 cd ext
146 ll
147 cd pdo_mysql/
148 ll
149 cd tests/
150 ll
151 cd /usr/lib64/
152 cd php/modules/
153 ll
154 ps -ef|grep java
155 tail -f /home/tycloud/ybtcloud-plt/tylog.log
156 tail -444f /home/tycloud/ybtcloud-plt/tylog.log
157 reboot
158 cd /home/THS/
159 ll
160 cd bin
161 ll
162 ./start.sh
163 cd /home/tycloud/
164 ll
165 ./start.sh
166 pwd
167 ps -ef|grep java
168 tail -f /home/tycloud/ybtcloud-ecologev/tylog.log
169 tail -444f /home/tycloud/ybtcloud-ecologev/tylog.log
170 reboot
171 history
172 ll
173 history > houzw.txt
174 mv houzw.txt houzw73.txt
175 cd /home/
176 ll
177 cd /home/
178 ll
179 cd tycloud/
180 ll
181 cd ybtcloud-ecologev/
182 ll
183 vim application-prod.yml
184 cd ..
185 ll
186 pwd
187 /home/tycloud
188 ifconfig
189 reboot
190 service php-fpm restart
191 tail -f /home/tycloud/ybtcloud-plt/tylog.log
192 tail -f /home/tycloud/ybtcloud-pve/tylog.log
193 date -s "20241114 11:00:00"
194 date
195 service nginx restart
196 tail -f /var/log/nginx/access.log
197 service nginx start
198 cd /home/THS/conf/
199 ll
200 cp httpserver.conf httpserver.confnginx
201 ps -ef|grep http
202 cd /home/THS/bin
203 ll
204 ./start.sh stop
205 ps -ef|grep http
206 more start.sh
207 ps -ef|grep http
208 kill -9 2557
209 ps -ef|grep http
210 kill -9 httpserver
211 kill httpserver
212 kill -9 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568
213 ps -ef|grep http
214 kill -9 2569 2570 2571 2572 2573
215 ps -ef|grep http
216 /home/THS/bin/start.sh
217 ps -ef|grep http
218 /home/THS/bin/start.sh
219 ./start.sh
220 ll
221 cd ..
222 ll
223 cd ..
224 ll
225 cp temp/license.dat .
226 ll
227 /home/THS/bin/start.sh
228 tail -f /home/tycloud/ybtcloud-plt/tylog.log
229 service nginx start
230 systemctl status nginx
231 netstat -aon
232 ps -ef|grep http
233 kill httpserver
234 kill -9 6645 6646 6647
235 ps -ef|grep http
236 /home/THS/bin/start.sh
237 ps -ef|grep http
238 kill -9 6973 6974 6975
239 ps -ef|grep http
240 service nginx restart
241 tail -f /home/tycloud/ybtcloud-plt/tylog.log
242 service nginx restart
243 ps -ef|grep http
244 netstat -aon
245 service nginx restart
246 cd /home/
247 ll
248 chown 777 nginx
249 ll
250 service nginx restart
251 tail -f /var/log/nginx/error.log
252 service nginx restart
253 tail -f /var/log/nginx/error.log
254 service nginx restart
255 tail -f /var/log/nginx/error.log
256 service nginx restart
257 tail -f /var/log/nginx/error.log
258 service nginx restart
259 tail -f /var/log/nginx/error.log
260 reboot
261 history
262 tail -f /home/tycloud/ybtcloud-plt/tylog.log
263 cd /home/tycloud/ybtcloud-plt/
264 ll
265 cd logs/
266 ll
267 tail -222f log_error.log
268 /home/THS/bin/start.sh
269 /home/tycloud/start.sh
270 systemctl start php-fpm
271 ps -ef|grep http
272 kill -9 2396 2397 2398
273 /home/THS/bin/start.sh
274 date
275 firewall-cmd --permanent --remove-port=8185/tcp
276 firewall-cmd --permanent --remove-port=8880/tcp
277 firewall-cmd --permanent --remove-port=8222/tcp
278 firewall-cmd --permanent --remove-port=8686/tcp
279 firewall-cmd --permanent --remove-port=9060/tcp
280 firewall-cmd --permanent --remove-port=8088/tcp
281 firewall-cmd --permanent --remove-port=8000/tcp
282 firewall-cmd --permanent --remove-port=443/tcp
283 sudo firewall-cmd --list-all
284 sudo firewall-cmd --reload
285 sudo firewall-cmd --list-all
286 firewall-cmd --permanent --remove-port=10818/tcp
287 sudo firewall-cmd --reload
288 sudo firewall-cmd --list-all
289 cd /home/
290 ll
291 zip -r THS1114.zip THS/
292 ll
293 ps -ef|grep http
294 kill -9 3420 3421 3422 3423 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436
295 ps -ef|grep http
296 kill -9 3424
297 ps -ef|grep http
298 /home/THS/bin/start.sh
299 cd /home/tyoa
300 ll
301 cd public/
302 ll
303 mkdir tyoa
304 mv static/ storage/ tyoa
305 ll
306 more 1.php
307 rm -rf 1.php
308 ll
309 cd tyoa/
310 ll
311 mv static/ storage/ ../
312 ll
313 cd ..
314 ll
315 /home/THS/bin/start.sh reload
316 /home/THS/bin/start.sh restart
317 /home/THS/bin/start.sh reload
318 ps -ef|grep http
319 kill -9 5507 5508 5509
320 /home/THS/bin/start.sh
321 /home/tycloud/start.sh
322 service nginx start
323 ps -ef|grep http
324 kill -9 2386 2387 2388
325 service nginx restart
326 /home/tycloud/start.sh
327 /home/THS/bin/start.sh
328 /home/THS/bin/start.sh reload
329 ps -ef|grep java
330 tail -f /var/log/nginx/error.log
331 ps aux | grep "nginx: worker process" | awk '{print $1}'
332 ps aux|grep nginx
333 cd /home/nginx/
334 ll
335 service nginx stop
336 reboot
337 ps -ef|grep java
338 kill -9 2413
339 cd /home/
340 ll
341 cd tycloud/
342 ll
343 cd hjjc-lims-dms/
344 ll
345 ./start.sh
346 ./start.sh start
347 ll
348 tail -555f tylog.log
349 wget http://10.61.10.73:8099/statTopic/list?deptId=2898
350 tail -555f /home/THS/logs/access.log
351 /home/THS/bin/start.sh
352 /home/tycloud/start.sh
353 ps -ef |grep http
354 /home/tycloud/start.sh reload
355 /home/THS/bin/start.sh reload
356 tail -f /home/THS/logs/error.log
357 service php-fpm start
358 tail -f /home/THS/logs/error.log
359 /home/THS/bin/start.sh reload
360 firewall-cmd --permanent --add-port=remove/tcp
361 firewall-cmd --permanent --remove-port=8686/tcp
362 firewall-cmd --reload
363 cd /home/tyoa
364 ll
365 rm -rf runtime/
366 mkdir runtime
367 ll
368 chown 755 runtime
369 ll
370 chmod 755 runtime/
371 ll
372 cd runtime/
373 ll
374 cd ll
375 ll
376 cd ..
377 chown root runtime/
378 ll
379 chmod 777 runtime/
380 ll
381 firewall-cmd --permanent --add-port=8686/tcp
382 firewall-cmd --reload
383 tail -f /home/THS/logs/error.log
384 cd /home/THS/
385 ll
386 chmod 777 temp
387 ll
388 tail -f /home/THS/logs/error.log
389 /home/THS/bin/start.sh reload
390 tail -f /home/THS/logs/error.log
391 vim /etc/httpd/httpd.conf
392 service http restart
393 service httpd restart
394 find \ -name "*httpd*"
395 find / -name "*httpd*"
396 vim /etc/httpd/conf/httpd.conf
397 cd /etc/httpd/conf.d/
398 ll
399 more php.conf
400 firewall-cmd --permanent --add-port=8011/tcp
401 firewall-cmd --reload
402 service httpd resatrt
403 service httpd restart
404 rpm -qi httpd
405 service httpd restart
406 systemctl stop httpd
407 rpm -qa | grep httpd
408 rpm -e httpd
409 rm -rf /etc/httpd
410 rm -rf /var/log/httpd
411 find / -name '*httpd*'
412 cd /home/temp/
413 rm -rf httpd-2.2.22
414 rm -rf httpd-2.2.8
415 rm -rf httpd-2.4.26
416 rm -rf httpd-2.4.62
417 ll
418 rm -rf php-5.6.40
419 rm -rf OA.tar.gz
420 rm -rf php-5.6.40.tar.gz
421 rm -rf nginx-1.12.2
422 rm -rf nginx-1.12.2.tar.gz
423 rm -rf redis-stable
424 rm -rf libiconv-1.17
425 rpm -qi httpd
426 rm -ivh /home/temp/httpd-2.4.57-11.el9_4.1.x86_64.rpm
427 rpm -ivh /home/temp/httpd-2.4.57-11.el9_4.1.x86_64.rpm
428 service httpd start
429 systemctl status httpd.service
430 service httpd stop
431 find / -name '*httpd*'
432 /home/THS/bin/start.sh reload
433 tail -f /home/THS/logs/error.log
434 tail -f /home/THS/logs/access.log
435 /home/THS/bin/start.sh reload
436 cd ../
437 ps -ef|grep http
438 kill -9 2395 6844 6845
439 ps -ef|grep http
440 service nginx start
441 tail -f /var/log/nginx/error.log
442 ll /var/lib/nginx/
443 ll
444 cd /var/lib/nginx/
445 ll
446 chmod 777 tmp
447 ll
448 tail -f /var/log/nginx/error.log
449 ll
450 chmod a+rw /var/lib/nginx/tmp/
451 ll
452 chown nginx:root /var/lib/nginx/tmp/
453 ll
454 service nginx restart
455 tail -f /var/log/nginx/error.log
456 cd /var/lib/nginx/tmp/
457 ll
458 cd fastcgi/
459 cd 1
460 ll
461 cd ..
462 ll
463 chmod a+rw /var/lib/nginx/tmp/fastcgi/
464 ll
465 tail -f /var/log/nginx/error.log
466 ps -ef|grep nginx
467 service nginx restart
468 ps -ef|grep nginx
469 kill -9 7302 7303
470 service nginx restart
471 ps -ef|grep nginx
472 ll
473 cd fastcgi/
474 ll
475 service nginx restart
476 ps -ef|grep nginx
477 tail -f /var/log/nginx/error.log
478 ps -ef|grep http
479 ps -ef|grep nginx
480 service nginx stop
481 /home/THS/bin/start.sh
482 firewall-cmd --permanent --remove-port=8011/tcp
483 firewall-cmd --permanent --remove-port=8686/tcp
484 firewall-cmd --reload
485 /home/THS/bin/start.sh reload
486 cd /home/nginx/
487 cd html
488 ll
489 mkdir baddd
490 mv index.html assets baddd
491 ll
492 mv assetsbak baddd
493 more nginx-if.conf
494 cd assets/
495 cp -r /home/nginx/html/baddd/assets/images/ .
496 ll
497 cd /home/THS/conf/
498 ll
499 cp -r httpserver.conf httpserver.conf1105ok
500 ll
501 cd /home/nginx/html/
502 ll
503 mkdir dms
504 tar -zxvf dms.tar.gz dms
505 mv dms.tar.gz dms
506 ll
507 cd dms/
508 ll
509 tar -zxvf dms.tar.gz
510 /home/THS/bin/start.sh reload
511 vim index.html
512 /home/THS/bin/start.sh reload
513 tail -f /home/THS/logs/error.log
514 ps -ef|grep http
515 kill -9 7768 10343 10344
516 ps -ef|grep http
517 /home/THS/bin/start.sh
518 ipvsadm -Ln
519 etstat -ntlp
520 netstat -ntlp
521 firewall-cmd --list-ports
522 firewall-cmd --list-all
523 firewall-cmd --permanent --add-port=81/tcp
524 firewall-cmd --reload
525 /home/THS/bin/start.sh reload
526 ps -ef|grep java
527 netstat -aon
528 /home/THS/bin/start.sh reload
529 tail -f /home/tycloud/hjjc-lims-dms/
530 ll
531 tail -f /home/tycloud/hjjc-lims-dms/tylog.log
532 /home/THS/bin/start.sh reload
533 uname -a
534 ll
535 ssh -v
536 ssh -V
537 openssl version -a
538 cd /home/
539 ll
540 telnet
541 net -ano
542 netstat -ano
543 service telnet-server start
544 service telnet start
545 service telnet.socket start
546 netstat -ano|grep "23"
547 sudo firewall-cmd --add-port=23/tcp --permanent
548 sudo firewall-cmd --reload
549 cd /etc/ssh/
550 ll
551 history
552 ll
553 mv /etc/ssh/ /etc/ssh.bak
554 cd /usr/bin/ssh
555 cd /usr/bin/
556 ll
557 cd /home/openssh
558 cd /etc/pam.d/
559 ll
560 cd /etc/
561 cd /etc/ssh/
562 ll
563 more sshd_config
564 pwd
565 ll
566 chmod -R 775 sshd_configrpmnew
567 vim sshd_config
568 systemctl ssh status
569 systemctl sshd status
570 vim ssh_config
571 vim sshd_config
572 service sshd status
573 get shadow information for root
574 more /etc/selinux/config
575 vim sshd_config
576 cp -r /etc/ssh/ /home/ssh.bak
577 cd /home/ssh.bak/
578 ll
579 cp -r /usr/bin/ssh /usr/bin/ssh.bak
580 cp -r /usr/bin/sshd /usr/bin/sshd.bak
581 cp -r /usr/sbin/sshd /usr/sbin/sshd.bak
582 cp -r /etc/pam.d/sshd /etc/pam.d/sshd.old
583 cd /home/
584 ll
585 tar -zxvf openssh-9.9p1.tar.gz
586 ll
587 cd openssh-9.9p1/
588 ll
589 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords
590 make
591 make clear
592 make clean
593 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam
594 make
595 zlib
596 zlib -v
597 zlib -V
598 cd ..
599 ll
600 tar -zxvf openssl-3.3.2.tar.gz
601 ll
602 cd openssl-3.3.2/
603 mkdir /usr/local/openssl_3.3.0
604 cd ..
605 ll
606 pwd
607 mv /home/openssl-3.3.2 /usr/local/
608 cd /usr/local/
609 ll
610 rm -rf openssl_3.3.0/
611 ll
612 cd openssl-3.3.2/
613 ll
614 pwd
615 mkdir build
616 ll
617 cd build/
618 pwd
619 ../config --prefix=/usr/local/openssl-3.3.2
620 make
621 make install
622 find / -name "aes.h"
623 make install
624 mv /usr/bin/openssl /usr/bin/openssl-bak
625 mv /usr/include/openssl /usr/include/openssl-bak
626 mv /usr/lib64/libssl.so /usr/lib64/libssl.so.bak
627 mv /usr/lib64/libcrypto.so /usr/lib64/libcrypto.so.bak
628 mv /usr/lib/libssl.so /usr/lib/libssl.so.bak
629 mv /usr/lib/libcrypto.so /usr/lib/libcrypto.so.bak
630 mv /usr/lib/libssl.so.3 /usr/lib/libssl.so.3.bak
631 mv /usr/lib64/libssl.so.3 /usr/lib64/libssl.so.3.bak
632 mv /usr/lib64/libcrypto.so.3 /usr/lib64/libcrypto.so.3.bak
633 mv /usr/lib/libcrypto.so.3 /usr/lib/libcrypto.so.3.bak
634 make install
635 make -j 4 && make install
636 make cleanmake -j 4 && make install
637 make -j 4 && make install
638 openssl -v
639 openssh -V
640 ssh -V
641 yum -y remove openssl
642 rpm -qa openssl
643 rpm -e openssl-1.1.1f-15.p05.ky10.x86_64
644 rpm -qa openssl
645 rpm -e openssl
646 find / -name "libcrypto.so.3"
647 ll
648 cd ..
649 rm -rf build
650 ll
651 [root@python1 updateSsh]#
652 [root@python1 openssl-1.1.1s]# ./config --prefix=/usr --shared && make && make install
653 ./config --prefix=/usr --shared && make && make install
654 ssh -V
655 find / -name "*libcrypto.so*"
656 ln -s /usr/lib64/libcrypto.so.3.2.2 /usr/lib64/libcrypto.so.3
657 rm //usr/lib64/libcrypto.so.3
658 ln -s /usr/lib64/libcrypto.so.3.2.2 /usr/lib64/libcrypto.so.3
659 find / -name "*libssl.so*"
660 mv
661 /usr/lib64/libssl.so.3
662 mv /usr/lib64/libssl.so.3
663 /usr/lib64/libssl.so.3
664 mv /usr/lib64/libssl.so.3 /usr/lib64/libssl.so.3.bak
665 mv /usr/lib64/libssl.so.3 /usr/lib64/libssl.so.3.bak2
666 ln -s /usr/lib64/libssl.so.3.2.2 /usr/lib64/libssl.so.3
667 openssl version -a
668 ssh -V
669 openssl version -a
670 pwd
671 cd ..
672 ll
673 cd /home/
674 ll
675 cd openssh-9.9p1/
676 ll
677 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords --with-ssl-dir=/usr/local/openssl-3.3.2
678 cd ../
679 ll
680 tar -zxvf openssh-9.8p1.tar.gz
681 cd openssh-9.8p1/
682 ll
683 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords --with-ssl-dir=/usr/local/openssl-3.3.2
684 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/
685 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/ --without-openssl-header-check
686 ssh -V
687 /usr/local/ssh/bin/ssh -V
688 cp -rf /home/openssh-9.8p1/contrib/redhat/sshd.init /etc/init.d/sshd
689 cp -rf /home/openssh-9.8p1/contrib/redhat/sshd.pam /etc/pam.d/sshd
690 cp -rf /usr/local/ssh/sbin/sshd /usr/sbin/sshd
691 echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
692 echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
693 tail -444f /etc/ssh/ssh_config
694 more -444f /etc/ssh/ssh_config
695 cp -rf /usr/local/src/ssh/sbin/sshd /usr/sbin/sshd
696 cd /usr/local/src/ssh/sbin/sshd
697 cd /usr/local/src/ssh/
698 cd /usr/local/ssh
699 make -j 4 && make install
700 ssh -V
701 history
702 make
703 cd openbsd-compat/
704 make
705 ll
706 cd ..
707 ll
708 make
709 cd openbsd-compat && make
710 ll
711 more Makefile
712 tail -8888f Makefile
713 cd /home/
714 tail -444f /etc/ssh/sshd_config
715 mv /home/ssh.bak/ /etc/ssh/
716 cd /etc/ssh/
717 ll
718 mv /usr/bin/ssh.bak /usr/bin/ssh
719 mv /usr/sbin/sshd.bak /usr/sbin/sshd
720 mv /etc/pam.d/sshd.old /etc/pam.d/sshd
721 more
722 more /home/openssh-9.8p1/openbsd-compat/getrrsetbyname.c
723 tail -444444f /home/openssh-9.8p1/openbsd-compat/getrrsetbyname.c
724 find / -name "getrrsetbyname.h"
725 tail -4444444f /home/openssh-9.8p1/openbsd-compat/getrrsetbyname.h
726 find / -name "openbsd"
727 find / -name "resolv.h"
728 find / -name "glibc*"
729 find / -name "libc.so.6*"
730 cd /home/openssh-9.8p1/
731 ll
732 tail -44444444444444444444f Makefile
733 tail -4444444444f Makefile
734 ll
735 pwd
736 ll
737 mv /etc/ssh.bak/ /etc/ssh
738 cd /home/openssh-9.8p1/
739 ll
740 more Makefile
741 make
742 make clean
743 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/
744 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/ --without-openssl-header-check
745 make -j 4 && make install
746 ./configure --host=arm --with-libs --with-zlib=/neo/arm/ssh/__install --with-ssl-dir=/neo/arm/ssh/__install --disable-etc-default-login CC=aarch64-himix100-linux-gcc AR=aarch64-himix100-linux-ar CFLAGS='-lcrypt'
747 tail -444f config.log
748 find / -name "libc*"
749 find / -name "libc.so.6*"
750 find / -name "ld-linux-x86-64.so.2*"
751 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/ --without-openssl-header-check CFLAGS="-I/usr/local/glibc-2.34/include" LDFLAGS="-L/usr/local/glibc-2.34/lib -Wl,--rpath=/usr/local/glibc-2.34/lib -Wl,--dynamic-linker=/usr/local/glibc-2.34/lib/ld-linux-x86-64.so.2"
752 find / -name "ld-linux-x86-64.so.2*"
753 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/ --without-openssl-header-check -Wl,--dynamic-linker=/usr/local/glibc-2.34/lib/ld-linux-x86-64.so.2
754 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/ --without-openssl-header-check --dynamic-linker=/usr/local/glibc-2.34/lib/ld-linux-x86-64.so.2
755 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam --with-ssl-dir=/usr/local/openssl-3.3.2/ --without-openssl-header-check && make && make install
756 find / -name "*libcrypto.so*"
757 find / -name "*libresolv.a*"
758 make
759 make clean
760 make
761 more configure
762 mv /etc/ssh/ /home/ssh-bak
763 mv /usr/bin/ssh /usr/bin/ssh.bak
764 mv /usr/sbin/sshd /usr/sbin/sshd.bak
765 mv /etc/pam.d/sshd /etc/pam.d/sshd.old
766 rpm -q openssh
767 cd /usr/local/openssl
768 cd /usr/
769 ll
770 cd local/
771 ll
772 mv openssl-3.3.2/ openssl
773 ll
774 pwd
775 cd /home/
776 ll
777 cd openssh
778 ll
779 cd 2
780 ll
781 cd ..
782 ll
783 rpm -qa|grep openssh
784 service openssh stop
785 service sshd stop
786 rpm -e --nodeps `rpm -qa | grep openssh`
787 ll
788 service sshd start
789 find / -name sshd
790 mv /etc/rc.d/init.d/sshd /etc/rc.d/init.d/sshd.bak
791 mv /usr/sbin/sshd /usr/sbin/sshd.bak
792 find / -name sshd
793 ll
794 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm
795 cd 2
796 ll
797 cp ../openssh-server-9.8p1-5.el9.x86_64.rpm .
798 ll
799 rpm -ivh *.rpm
800 cd ..
801 ll
802 cd 2
803 ll
804 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm
805 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm
806 service sshd start
807 ssh -V
808 systemctl sshd status
809 systemctl status sshd
810 ssh -V
811 find / -name sshd
812 /usr/sbin/ssh -V
813 find / -name ssh
814 cd /etc/ssh/
815 ll
816 ssh -V
817 cd /home/openssh
818 ll
819 cd 2
820 ll
821 rpm -qa|grep openssh
822 openssh -V
823 ssh
824 rpm -ivh *.rpm
825 rpm -ivh openssh-8.2p1-9.p18.ky10.x86_64.rpm
826 rpm -ivh openssh-server-8.2p1-9.p18.ky10.x86_64.rpm
827 rpm -ivh openssh-server-8.2p1-9.p18.ky10.x86_64.rpm openssh-8.2p1-9.p18.ky10.x86_64.rpm
828 openssl version -a
829 ssh -V && /usr/sbin/sshd -V
830 cd 2
831 rpm -ivh *.rpm
832 ssh -V
833 rpm -ivh *.rpm
834 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm
835 rpm -ivh gnutls-3.8.3-4.el9.x86_64.rpm
836 rpm -ivh openssl-libs-3.2.2-6.el9.x86_64.rpm
837 rpm -ivh nss-3.101.0-7.el9.x86_64.rpm
838 rpm -ivh *.rpm --nodeeps
839 rpm -ivh --force *.rpm
840 rpm -ivh --force *.rpm --nodeps
841 ssh -c
842 ssh -v
843 ssh -V
844 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm
845 rpm -ivh nss-3.101.0-7.el9.x86_64.rpm
846 rpm -ivh openssl-libs-3.2.2-6.el9.x86_64.rpm
847 openssl verion -a
848 cd /etc/ssh/
849 ll
850 more sshd_config.rpmnew
851 ll
852 cd /etc/ssh/sshd_config.d/
853 ll
854 systemctl ssh status
855 systemctl sshd status
856 systemctl restart sshd
857 systemctl status sshd
858 ssh -v
859 cd /home/openssh/2/
860 ll
861 rpm -ivh nss-softokn-3.101.0-6.el9.x86_64.rpm
862 rpm -ivh nspr-4.35.0-14.el9.x86_64.rpm
863 rpm -ivh nss-util-3.101.0-7.el9.x86_64.rpm
864 rpm -ivh nss-softokn-3.101.0-6.el9.x86_64.rpm
865 rpm -ivh nspr-4.35.0-14.el9.x86_64.rpm
866 rpm -ivh nss-3.101.0-7.el9.x86_64.rpm
867 nspr
868 rpm -ivh nss-softokn-3.101.0-6.el9.x86_64.rpm
869 ll
870 cd ..
871 ll
872 cd 2
873 ll
874 mv openss*.* ../
875 ll
876 rpm -ich *.rpm
877 openssh
878 rpm -qa | grep openssh
879 rpm -ivh gnutls-3.8.3-4.el9.x86_64.rpm
880 rpm -ivh nettle-3.9.1-1.el9.x86_64.rpm
881 rpm -ivh gnutls-3.8.3-4.el9.x86_64.rpm
882 rpm -ivh nettle-3.9.1-1.el9.x86_64.rpm
883 rpm -ivh nettle-3.9.1-1.el9.x86_64.rpm gnutls-3.8.3-4.el9.x86_64.rpm
884 ll
885 rp, -ivh nspr-4.35.0-14.el9.x86_64.rpm
886 rpm -ivh nspr-4.35.0-14.el9.x86_64.rpm
887 rpm -ivh nss-3.101.0-7.el9.x86_64.rpm
888 rpm -ivh nss-softokn-3.101.0-6.el9.x86_64.rpm
889 rpm -ivh nss-util-3.101.0-7.el9.x86_64.rpm
890 rpm -ivh nss-util-3.101.0-7.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm
891 rpm -ivh nss-softokn-3.101.0-6.el9.x86_64.rpm
892 rpm -ivh nss-softokn-3.101.0-6.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm
893 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm
894 rpm -ivh gnutls-3.8.3-4.el9.x86_64.rpm
895 rpm -ivh gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm
896 cp ../openssl-libs-3.2.2-6.el9.x86_64.rpm .
897 cp ../openssh-9.8p1-5.el9.x86_64.rpm .
898 ll
899 rpm -ivh *.rpm
900 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm
901 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm
902 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm
903 rpm -qa|grep gnutls
904 rpm -Uvh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm
905 rpm -ivh *.rpm --nodeps --force
906 openssh -v
907 ssh -v
908 cd ..
909 ll
910 rpm -ivh openssl-libs-3.2.2-6.el9.x86_64.rpm
911 ll
912 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm
913 ssh -v
914 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm
915 cd 2
916 ll
917 rpm -ivh openssh-9.8p1-5.el9.x86_64.rpm
918 ll
919 rpm -ivh openssh
920 rpm -qa|grep openssh
921 rpm -e openssh-*
922 rpm -qa|grep openssh
923 rpm -e openssh-server
924 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64
925 rpm -e openssh-8.2p1-16.p04.ky10.x86_64
926 rpm -e openssh-*
927 rpm -e openssh-9.8p1-5.el9.x86_64
928 rpm -e openssh-9*
929 rpm -e openssh-server-9.8p1-5.el9.x86_64
930 rpm -e openssh*
931 rpm -e openssh-9.8p1-5.el9.x86_64.rpm
932 rpm -e openssh-9.8p1-5.el9.x86_64
933 rpm -e openssh*
934 ll
935 rpm -qa|grep openssh
936 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64
937 rpm -e openssh-8.2p1-16.p04.ky10.x86_64
938 rpm -e openssh-8.2p1-16.p04.ky10.x86_64 openssh-server-8.2p1-16.p04.ky10.x86_64 openssh-clients-8.2p1-16.p04.ky10.x86_64
939 ll
940 cd ..
941 ll
942 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm
943 ssh -v
944 service sshd restart
945 systemctl status sshd
946 systemctl stop sshd
947 rpm -q openssh-server
948 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64
949 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64 openssh-8.2p1-16.p04.ky10.x86_64
950 rpm -Uvh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm
951 mv /home/ssh-bak /etc/ssh/
952 mv /usr/bin/ssh.bak /usr/bin/ssh
953 mv /usr/sbin/sshd.bak /usr/sbin/sshd
954 mv /etc/pam.d/sshd.old /etc/pam.d/sshd
955 service sshd start
956 systemctl status sshd
957 systemctl restart sshd
958 journalctl -xe
959 rpm -Uvh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm
960 rpm -e openssh-clients-8.2p1-16.p04.ky10.x86_64
961 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm
962 systemctl restart sshd
963 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm --force
964 ssh -v
965 service sshd start
966 ssh -V
967 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm
968 rpm -e openssh-help-8.2p1-16.p04.ky10.noarch
969 rpm -e openssh-help-8.2p1-16.p04.ky10.noarch openssh-8.2p1-16.p04.ky10.x86_64
970 rpm -e openssh-help-8.2p1-16.p04.ky10.noarch openssh-8.2p1-16.p04.ky10.x86_64 openssh-server-8.2p1-16.p04.ky10.x86_64 openssh-clients-8.2p1-16.p04.ky10.x86_64
971 find / -name sshd
972 more /etc/sysconfig/sshd
973 find / -name ssh.conf
974 find / -name sshd.conf
975 find / -name ssh*.conf
976 cd /etc/ssh
977 ll
978 more ssh_config
979 more sshd_config
980 vim sshd_config
981 firewall-cmd --permanent --add-port=20250/tcp
982 firewall-cmd --reload
983 service sshd restart
984 systemctl enable sshd
985 chkconfig sshd on
986 systemctl status sshd
987 service telnet.socket restart
988 systemctl telnet.socket status
989 systemctl status telnet.socket
990 chkconfig telnet.socket on
991 systemctl enable telnet.socket
992 systemctl status telnet.socket
993 systemctl preset sshd enable
994 systemctl preset sshd enabled
995 systemctl preset --set sshd.service enabled
996 systemctl status sshd
997 reboot
998 history
999 history > houzw731.txt
1 uname
2 uname -a
3 service mysql status
4 systemctl mysql status
5 sudo apt-get update
6 dpkg -l|grep mysql
7 ps -ef|grep dm
8 java
9 java -v
10 java -version
11 ping www.baidu.com
12 uname -a
13 java -version
14 ps -ef|grep mysql
15 mysql
16 where is mysql
17 find mysql
18 find / -name "*mysql*"
19 systemctl mysql start
20 mysqld_safe --skip-grant-tables &
21 ps -ef|grep mysql
22 mysql -uroot -p
23 ps -ef|grep nginx
24 find / -name "*nginx*"
25 cd /etc/nginx/
26 ll
27 systemctl nginx start
28 rz
29 ls
30 cd /home/
31 ll
32 ls
33 cd ..
34 ls
35 cd /home/
36 ll
37 ifconfig
38 find / -name "*my.ini*"
39 find / -name "*my.*"
40 tail -444f /etc/my.cnf
41 tail -4444f /etc/my.cnf
42 mysql -uroot -p
43 sudo systemctl start mysqld
44 ps -ef|grep mysql
45 kill -9 65914
46 ps -ef|grep mysql
47 kill -9 65990
48 ps -ef|grep mysql
49 mysqld &
50 ps -ef|grep mysql
51 find / -name "*mysql*"
52 /usr/bin/mysql_install_db
53 [root@10-61-10-72 home]# /usr/bin/mysql_install_db
54 Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
55 OK
56 To start mysqld at boot time you have to copy
57 support-files/mysql.server to the right place for your system
58 PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
59 To do so, start the server, then issue the following commands:
60 '/usr/bin/mysqladmin' -u root password 'new-password'
61 '/usr/bin/mysqladmin' -u root -h 10-61-10-72 password 'new-password'
62 sudo systemctl start mysql
63 cd /usr/
64 /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
65 mysql -uroot -p
66 ps -ef|grep mysql
67 ps -ef|grep mysqld
68 ps -ef|grep mysqld_safe
69 mysql -uroot -p
70 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
71 sudo /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
72 mysql -uroot -p
73 tail -444f /var/lib/mysql/10-61-10-72.err
74 cd /var/lib/mysql/
75 ls
76 ll
77 su mysql
78 sudo /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
79 tail -444f /var/lib/mysql/10-61-10-72.err
80 sudo /usr/bin/mysqld_safe --datadir='/var/lib/mysql' &
81 sudo /usr/bin/mysqld_safe --skip-grant-tables &
82 mysql -uroot -p
83 tail -444f /var/lib/mysql/10-61-10-72.err
84 ifconfig
85 find / -name "*my.cnf*"
86 cd /etc/
87 vim my.cnf
88 vim my.cnf.d/
89 find / -name "*mariadb-server.cnf*"
90 /etc/my.cnf.d/mariadb-server.cnf
91 vim /etc/my.cnf.d/mariadb-server.cnf
92 source /etc/my.cnf.d/mariadb-server.cnf
93 ps -ef |grep mysql
94 kill -9 81706
95 kill -9 81711
96 ps -ef |grep mysql
97 kill -9 81787
98 ps -ef |grep mysql
99 cd /usr/
100 sudo /usr/bin/mysqld_safe --skip-grant-tables &
101 ps -ef |grep mysql
102 systemctl iptable status
103 netstat
104 netstat -tuln
105 systemctl status firewalld
106 sudo firewall-cmd --add-port=3306/tcp --permanent
107 sudo firewall-cmd --query-port=3306/tcp
108 sudo firewall-cmd --add-port=3306/tcp --permanent
109 sudo firewall-cmd --query-port=3306/tcp
110 sudo firewall-cmd --reload
111 sudo firewall-cmd --query-port=3306/tcp
112 netstat -tuln
113 mysql -uroot -p
114 cd /home/
115 ll
116 tar -zxvf redis-stable.tar.gz
117 cd redis-stable/
118 ll
119 make
120 make install
121 systemctl restart nginx.service
122 systemctl restart redis
123 ll
124 systemctl restart redis-server
125 ll
126 cd src/
127 ll
128 cd ..
129 find / -name "*redis-serve*"
130 sudo /usr/local/bin/redis-server &
131 ps -ef|grep redis
132 sudo firewall-cmd --add-port=6379/tcp --permanent
133 sudo firewall-cmd --reload
134 ll
135 find / -name "*redis.conf*"
136 vim redis.conf
137 ps -ef|grep redis
138 kill -9 181768
139 ps -ef|grep redis
140 kill -9 181773
141 ps -ef|grep redis
142 sudo /usr/local/bin/redis-server &
143 ps -ef|grep redis
144 kill -9 182015
145 ps -ef|grep redis
146 kill -9 182020
147 ps -ef|grep redis
148 sudo /usr/local/bin/redis-server
149 ps -ef|grep redis
150 sudo /usr/local/bin/redis-server &
151 ps -ef|grep redis
152 kill -9 182366
153 kill -9 182371
154 ps -ef|grep redis
155 ll
156 pwd
157 sudo /usr/local/bin/redis-server /home/redis-stable
158 cp -r ./redis.conf /etc/redis/
159 mkdir /etc/redis
160 cp -r ./redis.conf /etc/redis/
161 sudo /usr/local/bin/redis-server /etc/redis/redis.conf &
162 top
163 find / -name "*server.cnf*"
164 vim /etc/my.cnf.d/mariadb-server.cnf
165 ps -ef|grep mysql
166 kill -9 82002
167 ps -ef|grep mysql
168 kill -9 82007
169 ps -ef|grep mysql
170 kill -9 82089
171 ps -ef|grep mysql
172 /bin/sh /usr/bin/mysqld_safe --skip-grant-tables
173 ps -ef|grep mysql
174 cd /dm8/script/root
175 ll
176 ./dm_service_installer.sh -t dmserver -dm_ini /dm/data/DAMENG/dm.ini -p DMSERVER
177 systemctl start DmServiceDMSERVER.service
178 systemctl status DmServiceDMSERVER.service
179 cd /home/
180 ll
181 mkdir dm8
182 mv dm8_20240703_HG_kylin10_64.zip ./dm8
183 cd dm8/
184 ll
185 unzip dm8_20240703_HG_kylin10_64.zip
186 ll
187 more dm8_20240703_HG_kylin10_64.README
188 ll
189 cd /
190 ll
191 mkdir data
192 ll
193 cd /home/
194 ll
195 groupadd dinstall
196 useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
197 passwd dmdba
198 cat >> /etc/security/limits.conf <<EOF
199 su - dmdba
200 sudo firewall-cmd --add-port=5236/tcp --permanent
201 sudo firewall-cmd --reload
202 systemctl status
203 service DmAPService restart
204 service DmAPService status
205 sudo firewall-cmd --reload
206 dmcli -U SYSDBA -P SYSDBA -H localhost
207 find / -name "*dmcli*"
208 /dm8/bin/dmcli -U SYSDBA -P SYSDBA -H localhost
209 disql
210 find / -name "*disql*"
211 /dm8/bin/disql
212 /dm8/bin/disql sysdba/syasba@10.61.10.72:5236
213 su dmdba
214 /dm8/script/root/root_installer.sh
215 cd /home/dmdba/
216 echo #PATH
217 echo $PATH
218 service DmAPService restart
219 mkdir -p /dm/data
220 chown dmdba:dinstall -R /dm
221 su - dmdba
222 pwd
223 cd ..
224 ll
225 pwd
226 cd dm
227 cd dm8/
228 ll
229 mount -o loop /home/dm8/dm8_20240703_HG_kylin10_64.iso /mnt
230 mkdir /dm8
231 chown dmdba:dinstall -R /dm8/
232 chmod -R 755 /dm8
233 su - dmdba
234 ps -ef|grep mysql
235 systemctl status mariadb
236 kill -9 183363
237 systemctl status mariadb
238 ps -ef|grep mys
239 kill -9 183448
240 systemctl status mariadb
241 systemctl start mariadb
242 systemctl status mariadb.service
243 vim /etc/my.cnf
244 vim /etc/my.cnf.d/mariadb-server.cnf
245 vim /etc/my.cnf.d/mysql-clients.cnf
246 vim /etc/my.cnf
247 vim /etc/my.cnf.d/enable_encryption.preset
248 systemctl restart mariadb
249 journalctl -xe
250 /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
251 /usr/bin/mysql_install_db --defaults-file=/etc/.my.cnf
252 /usr/bin/mysql_install_db --defaults-file=/etc/my.cnf
253 '/usr/bin/mysqladmin' -u root password 'root'
254 /usr/bin/mysqladmin -u root password 'root'
255 /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
256 /usr/bin/mysqladmin -u root password 'root'
257 systemctl restart mariadb
258 systemctl status mariadb.service
259 journalctl -xe
260 /usr/bin/mysql_install_db --user=mysql --skip-test-db
261 /usr/bin/mysql_install_db --defaults-file=/etc/.my.cnf
262 /usr/bin/mysql_install_db --defaults-file=/etc/my.cnf
263 /usr/bin/mysql_secure_installation
264 '/usr/bin/mysqladmin' -u root password 'root'
265 /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
266 '/usr/bin/mysqladmin' -u root password 'root'
267 ps -ef|grep mysql
268 '/usr/bin/mysqladmin' -u root password 'root'
269 /usr/bin/mysqladmin -u root password 'root'
270 /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
271 ps -ef|grep mysql
272 netstat -aon |grep 3306
273 netstat -aon
274 /usr/bin/mysql_secure_installation
275 systemctl enable --now mariadb.service
276 systemctl status mariadb.service
277 /usr/bin/mysql_install_db --user=mysql --skip-test-db
278 /usr/libexec/mysqld --skip-grant-tables --general-log &
279 netstat -aon |grep 3306
280 systemctl status mariadb.service
281 /usr/bin/mysql_install_db --defaults-file=/etc/my.cnf
282 '/usr/bin/mysqladmin' -u root password 'root'
283 systemctl status mariadb.service
284 cd /run/media/root
285 ls
286 cd Kylin-Server-10/
287 ls
288 cd Packages/
289 ls
290 find . -name '*mariadb*'
291 rpm -e mariadb
292 rpm -e mariadb*
293 rpm -e mariadb-server
294 rpm -e mariadb-10
295 rpm -e mariadb
296 rpm -e mariadb-common
297 rpm -e mariadb-errmessage
298 rpm -e mariadb-devel
299 rpm -e mariadb-common
300 rpm -e mariadb-connector-c
301 ll
302 find . -name '*mariadb*'
303 rpm -ivh mariadb*
304 rpm -ivh mariadb-server-10.3.9-12.p01.ky10.x86_64.rpm
305 rpm -ivh mariadb-common-10.3.9-12.p01.ky10.x86_64.rpm
306 rpm -ivh mariadb-errmessage-10.3.9-12.p01.ky10.x86_64.rpm
307 rpm -ivh mariadb-10.3.9-12.p01.ky10.x86_64.rpm
308 rpm -ivh mariadb-server-10.3.9-12.p01.ky10.x86_64.rpm
309 systemctl start mariadb.service
310 journalctl -xe
311 rpm -qa | grep -i mariadb
312 sudo systemctl stop mariadb
313 rpm -e mariadb mariadb-common mariadb-connector-c mariadb-errmessage mariadb-server
314 rpm -e mariadb mariadb-server
315 sudo rm -rf /etc/mysql
316 sudo rm -rf /var/lib/mysql
317 sudo rm -rf /var/log/mysql
318 find / -name "*mysql*"
319 rpm -ivh mariadb-server-10.3.9-12.p01.ky10.x86_64.rpm
320 rpm -ivh mariadb-10.3.9-12.p01.ky10.x86_64.rpm
321 rpm -ivh mariadb-server-10.3.9-12.p01.ky10.x86_64.rpm
322 systemctl start mariadb.service
323 systemctl status mariadb.service
324 mysql_secure_installation
325 systemctl status mariadb.service
326 /usr/bin/mysql_install_db --user=mysql --skip-test-db
327 history
328 '/usr/bin/mysqladmin' -u root password 'root'
329 '/usr/bin/mysqladmin' -u root -h * password 'root'
330 '/usr/bin/mysqladmin' -u root -h 10-61-10-73 password 'root'
331 '/usr/bin/mysqladmin' -u root -h 10.61.10.73 password 'root'
332 vim /etc/my.cnf.d/mariadb-server.cnf
333 service mariabd restart
334 service mariadb restart
335 mysql_secure_installation
336 mysql -u root -p
337 service mariadb restart
338 mysql -u root -p
339 mysql -u root -h 127.0.0.1 -p
340 mysql -u root@127.0.0.1 -p
341 mysql -h 127.0.0.1
342 systemctl status mariadb
343 mysql -h 127.0.0.1
344 reboot
345 systemctl status mariadb.service
346 systemctl start mariadb.service
347 cd /home/
348 ll
349 cd redis-stable/
350 ll
351 find / -name "*redis*"
352 redisserver &
353 /usr/local/bin/redis-server
354 /usr/local/bin/redis-server &
355 history
356 ps-ef |grep redis.conf
357 ps-ef |grep redi
358 ps -ef |grep redi
359 kill -9 4502
360 sudo /usr/local/bin/redis-server /etc/redis/redis.conf &
361 reboot
362 ll
363 history > houzw.txt
364 ll
365 hostory
366 history
367 systemctl start mariadb.service
368 sudo /usr/local/bin/redis-server /etc/redis/redis.conf &
369 cd /home/
370 ll
371 rm -rf OA.tar.gz
372 ll
373 rm -rf Install_TW6.1.5.8_Enterprise_Linux.bin
374 ll
375 rm -rf license.dat
376 ll
377 cd dm8/
378 ll
379 cd ..
380 date
381 rediscli
382 redis-cli
383 find / -name "*.DBF*"
384 history
385 more /etc/login
386 uname -a
387 more /etc/login
388 more /etc/ssh/sshd_config
389 chage -l username
390 chage -l root
391 more /etc/security/pwquality.conf
392 netstat -tlnp|more
393 more /etc/login.defs
394 netstat -tuanp|more
395 find / -name "*dm.ini*"
396 more
397 /dm/data/DAMENG/dm.ini
398 more /dm/data/DAMENG/dm.ini
399 systemctl status DmServiceDMSERVER.service
400 systemctl stop DmServiceDMSERVER.service
401 vim /dm/data/DAMENG/dm.ini
402 cp -r /dm/data/DAMENG/dm.ini /dm/data/DAMENG/dm.ini.bak
403 sudo firewall-cmd --permanent --remove-port=5236/tcp
404 sudo firewall-cmd --add-port=15236/tcp --permanent
405 sudo firewall-cmd --reload
406 systemctl start DmServiceDMSERVER.service
407 systemctl status DmServiceDMSERVER.service
408 find / -name "*.dbf"
409 find / -name "*.dbf*"
410 find / -name ".DBF*"
411 find / -name "*.DBF*"
412 cd /dm/data/DAMENG
413 ll
414 chmod 644 dm.ini.bak
415 ll
416 cd /etc/ssh/
417 ll
418 systemctl status sshd
419 sz d://openssl-libs-3.2.2-6.el9.x86_64.rpm
420 chcp 65001
421 sz d://openssl-libs-3.2.2-6.el9.x86_64.rpm
422 exit
423 pwd
424 ifconfig
425 cd /home/openssh/
426 ll
427 cd /home
428 ll
429 sz /home/openssl-libs-3.2.2-6.el9.x86_64.rpm
430 ls
431 ifconfig
432 rz /home/openssl-libs-3.2.2-6.el9.x86_64.rpm
433 rz --hrlp
434 rz --help
435 exit()
436 exit()
437 ifconfig
438 exit
439 service telnet.socket start
440 firewall-cmd --permanent --add-port=23/tcp
441 firewall-cmd --permanent --add-port=20250/tcp
442 firewall-cmd --permanent --add-port=20251/tcp
443 firewall-cmd --reload
444 cd /home
445 ll
446 telnet 10.61.10.73
447 service sshd stop
448 systemctl status sshd
449 rpm -qa | grep openssh
450 rpm -e --nodeps `rpm -qa | grep openssh`
451 find / -name sshd
452 find / -name ssh
453 mv /etc/ssh /etc/ssh.bak
454 find / -name ssh
455 cd /home/openssh/
456 ll
457 rpm -ivh *.rpm
458 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssh-clients-9.8p1-5.el9.x86_64.rpm openssh-server-9.8p1-5.el9.x86_64.rpm
459 cd /home/mysql/
460 ll
461 mv libstdc++-11.5.0-2.el9.x86_64.rpm ../
462 cd ..
463 rpm -ivh libstdc++-11.5.0-2.el9.x86_64.rpm
464 rpm -ivh libstdc++-11.5.0-2.el9.x86_64.rpm --force
465 rpm -ivh libstdc++-11.5.0-2.el9.x86_64.rpm --force --nodeps
466 cd openssh/
467 ll
468 rpm -ivh *.rpm
469 rpm -ivh crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssh-clients-9.8p1-5.el9.x86_64.rpm openssh-server-9.8p1-5.el9.x86_64.rpm
470 ll
471 ssh -v
472 systemctl start vsftpd
473 systemctl start ftpd
474 systemctl start ftp
475 rpm -qa | grep ftp
476 python -m httpserver
477 python -m http.server
478 ll
479 cd ..
480 ll
481 vim ftp.py
482 ll
483 chmod 777 ftp.py
484 ll
485 python ftp.py
486 vim ftp.py
487 python ftp.py
488 vim ftp.py
489 python ftp.py
490 ll
491 sz
492 sz d:/openssl-libs-3.2.2-6.el9.x86_64.rpm
493 telnet 10.61.10.73
494 ll
495 find / -name openssl
496 ll
497 sz ftp.py
498 vim f.py
499 ll
500 chomd 777 f.py
501 chmod 777 f.py
502 python f.py
503 vim f.py
504 python f.py
505 vim f.py
506 python f.py
507 vim f.py
508 python f.py
509 vim f.py
510 vim f1.py
511 python f1.py
512 python
513 ll
514 rm -rf f*.py
515 ll
516 vim f.py
517 chmod 777 f.py
518 ll
519 python f.py
520 vim f.py
521 python f.py
522 vim f.py
523 python f.py
524 ll
525 cd received_files/
526 ll
527 cd ..
528 python f.py
529 ll
530 cd received_files/
531 ll
532 mv openssl-libs-3.2.2-6.el9.x86_64.rpm /home/openssh/
533 cd /home/openssh/
534 ll
535 rpm -ivh *.rpm
536 find / -name libc.so.6
537 strings /usr/lib64/libc.so.6 | grep GLIBC
538 cd /home/
539 ll
540 python f.py
541 cd received_files/
542 ll
543 rpm -ivh glibc-2.34-125.el9_5.1.x86_64.rpm
544 rpm -ivh glibc-2.34-125.el9_5.1.x86_64.rpm --force
545 rpm -ivh glibc-2.34-125.el9_5.1.x86_64.rpm --force --nodeps
546 strings /usr/lib64/libc.so.6 | grep GLIBC
547 cd /home/openssh/
548 rpm -ivh *.rpm
549 rpm -ivh openssl-libs-3.2.2-6.el9.x86_64.rpm
550 rpm -ivh *.rpm
551 cd /home/
552 ll
553 python f.py
554 cd received_files/
555 ll
556 rpm -ivh libxcrypt-4.4.18-3.el9.x86_64.rpm
557 rpm -ivh libxcrypt-4.4.18-3.el9.x86_64.rpm --force
558 cd /home/openssh/
559 ll
560 rpm -ivh *.rpm
561 rpm -ivh gnutls-3.8.3-4.el9.x86_64.rpm
562 rpm -ivh gnutls-3.8.3-4.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm
563 rpm -ivh nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm
564 rpm -ivh nss-util-3.101.0-7.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm
565 rpm -ivh *.rpm --force
566 openssl -version
567 openssl version -a
568 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm
569 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm
570 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm
571 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm
572 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm --force
573 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm --force
574 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm
575 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm
576 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm
577 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm
578 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm
579 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm openssl-libs-3.2.2-6.el9.x86_64.rpm crypto-policies-20240828-2.git626aa59.el9.noarch.rpm gnutls-3.8.3-4.el9.x86_64.rpm nss-3.101.0-7.el9.x86_64.rpm nss-util-3.101.0-7.el9.x86_64.rpm nspr-4.35.0-14.el9.x86_64.rpm nettle-3.9.1-1.el9.x86_64.rpm nss-softokn-freebl-3.101.0-7.el9.x86_64.rpm nss-softokn-3.101.0-6.el9.x86_64.rpm
580 rpm -ivh *.rpm --force --nodeps
581 service sshd restart
582 vim /etc/ssh/sshd_config
583 systemctl enable sshd
584 systemctl status sshd
585 service sshd restart
586 ssh -v
587 ssh -V
588 rpm -qa|grep mariadb
589 rpm -e --nodeps `rpm -qa | grep mariadb`
590 find / -name mysql
591 mv /var/lib/mysql/ /var/lib/mysql.bak/
592 find / -name mysql
593 cd /home/mysql
594 ll
595 rpm -ivh *.rpm
596 vim /etc/my.cnf
597 systemctl start mysqld.service
598 journalctl -xe
599 vim /etc/my.cnf
600 systemctl start mysqld.service
601 vim /etc/my.cnf
602 tail -4444f /var/log/mysqld.log
603 service mysqld restart
604 vim /etc/my.cnf
605 service mysqld restart
606 rpm -qa|grep mysql
607 rpm -qa|grep mysql-c
608 rpm -e mysql-c
609 rpm -e `rpm -qa|grep mysql
610 rpm -e `rpm -qa|grep mysql-c`
611 find / -name mysql
612 rm -rf /var/lib/mysql
613 rm -rf /usr/lib64/mysql/
614 ll
615 cd /home/mysql/
616 ll
617 rpm -ivh mysql*.rpm
618 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize --lower_case_table_names=1
619 vim /etc/my.cnf
620 service mysqld restart
621 mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1
622 service mysqld stop
623 mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1
624 rm -rf /var/lib/mysql
625 mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1
626 vim /etc/my.cnf
627 mysql_secure_installation
628 service mysqld start
629 mysql -uroot -p
630 systemctl status mysqld
631 reboot
632 cd /home/mysql/
633 rpm -ivh *.rpm
634 service mysql start
635 service mysqld start
636 mysql_secure_installation
637 mysql -V
638 mysql -uroot -p
639 vi /etc/my.cnf
640 cat /var/log/mysqld.log | grep root@localhost
641 service mysqld restart
642 systemctl status mysqld.service
643 netstat -aon|grep 3306
644 netstat -aon
645 service mysqld restart
646 vi /etc/my.cnf
647 service mysqld restart
648 systemctl status mysqld.service
649 vi /etc/my.cnf
650 service mysqld restart
651 history
652 mysql_secure_installation
653 vi /etc/my.cnf
654 service mysqld restart
655 systemctl status mysqld.service
656 mysql_secure_installation
657 vi /etc/my.cnf
658 service mysqld restart
659 mysql -uroot -p
660 service mysqld restart
661 vi /etc/my.cnf
662 service mysqld restart
663 vi /etc/my.cnf
664 service mysqld restart
665 vi /etc/my.cnf
666 service mysqld restart
667 mysqld --initialize --user=mysql
668 vim /etc/my.cnf
669 service mysqld restart
670 vim /etc/my.cnf
671 service mysqld restart
672 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize
673 service mysqld restart
674 systemctl status mysqld.service
675 cd /data/mysql/
676 ll
677 vim /etc/my.cnf
678 tail -f /var/log/mysqld.log
679 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize --lower case table names=1
680 service mysqld restart
681 systemctl status mysqld.service
682 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize --lower_case_table_names=1
683 service mysqld restart
684 vim /etc/my.cnf
685 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize --lower_case_table_names=1
686 service mysqld restart
687 vim /etc/my.cnf
688 service mysqld restart
689 mysqld --initialize --user=mysql --lower_case_table_names=1
690 ./ mysqld --initialize --user=mysql --lower_case_table_names=1
691 ./mysqld --initialize --user=mysql --lower_case_table_names=1
692 mysqld --initialize --user=mysql --lower_case_table_names=1
693 tail -f /var/log/mysqld.log
694 vim /etc/my.cnf
695 cd /var/lib/mysql
696 ll
697 tail -f /var/log/mysqld.log
698 history > houzw1.txt