1、检查软件版本,及是否安装 openssh为例
- 是否安装 rpm -qa|grep openssh
- 备份
mv /etc/ssh/ /home/ssh-bakmv /usr/bin/ssh /usr/bin/ssh.bakmv /usr/sbin/sshd /usr/sbin/sshd.bakmv /etc/pam.d/sshd /etc/pam.d/sshd.old
2、机器如果不在身边,机器无法上网,需要先打开 telnet ftp等
上述是关闭的状态,需要打开,并添加开机自启动(linux老版本使用 chkconfig, 新版本使用 systemctl )
service telnet.socket restart
chkconfig telnet.socket onsystemctl enable telnet.socket
systemctl status telnet.socket
3、卸载程序
rpm -e openssh-server rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64rpm -e openssh-8.2p1-16.p04.ky10.x86_64rpm -e openssh-*rpm -e openssh-9.8p1-5.el9.x86_64rpm -e openssh-9*rpm -e openssh-server-9.8p1-5.el9.x86_64rpm -e openssh*rpm -e openssh-9.8p1-5.el9.x86_64.rpmrpm -e openssh-9.8p1-5.el9.x86_64rpm -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 osdef 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:breakf.write(data)# 运行服务器
start_server()
python2:
#!/usr/bin/env python
#coding=utf-8from 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:breakclient_socket.sendall(data)
最后,附一个 mysql 9的安装步骤吧
前3步同上,使用的包如下:依赖可以在网站界面找到并下载
rpm -ivh mysql*.rpmmysql_secure_installationmysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1vim /etc/my.cnf加入 lower_case_table_names=1 service mysqld restart
如果上述步骤错误,或者修改了配置无法启动服务,改回初始的配置也无法启动,可以把数据库重新初始化
rm -rf /var/lib/mysqlmysqld --initialize --user=mysql --lower_case_table_names=1
添加用户,设置复杂点的密码
开启防火墙,开放端口,导入数据
设置允许的 IP 访问此数据库,关闭数据库端口
此致,敬礼
-------------------------------------------------------------------------------------------------完结-------------------------------------------
过程脚本
1 ps -ef|grep dms2 kill -9 47543 more start.sh 4 ps -ef |grep dms5 vim start.sh 6 cd ..7 ps -ef|grep java8 ./start.sh 9 ps -ef|grep java10 kill -9 505311 kill -9 505912 ps -ef|grep java13 cd ybtcloud-imq/14 more start.sh 15 cd ..16 ./start.sh 17 cd ybtcloud-imq/18 ll19 tail -f tylog.log 20 ps -ef|grep java21 ./start.sh 22 tail -f tylog.log 23 ./start.sh 24 tail -f tylog.log 25 netstat -aon26 reboot27 service start php-fpm28 service php-fpm start29 cd /home/THS30 ll31 cd bin32 ll33 ./start.sh 34 cd ../../tycloud/35 ll36 ./start.sh 37 ps -ef|grep java38 cd /home39 ll40 cd tyoa41 ll42 mkdir bad43 mv app bad44 ll45 mv config/ composer.json bad46 ll47 mv extend/ bad48 ll49 mv public/ bad50 ll51 mv route/ runtime/ vendor vendor---/ vendorbak/ bad52 ll53 cd ..54 ll55 tar -zxvf tyoa.tar.gz 56 cd tyoa/57 ll58 cd ..59 ll60 mv app composer.json config/ crud/ extend/ public/ route/ runtime/ vendor/ tyoa61 ll62 cd nginx/63 ll64 cd ..65 ll66 mv THS1 THSManager/ TongWeb8.0.6.2 TongWeb7.0.4.9_M4_Enterprise_Linux temp167 ll68 cd tyoa69 ll70 cd config71 ll72 vim database.php73 find / -name "*php.ini*"74 vim /etc/php.ini 75 service php-fpm restart76 cd /home/temp/php77 rpm -ivh php-pdo-8.2.13-1.module_el9.4.0+65+49ff6472.x86_64.rpm 78 service php-fpm restart79 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 --force82 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 -v85 cd /usr/lib64/php/modules/86 ll87 pwd88 cd /home/temp/php/php-8.3.13/89 ll90 cd libs/91 ll92 cd ext93 cd ../ext/94 ll95 cd pdo_mysql/96 ll97 cp pdo_mysql.o /usr/lib64/php/modules/98 php -v99 cd /usr/lib64/php/modules/100 ll101 cd /home/temp/php/php-8.3.13/102 ./configure 103 make104 make install105 cd ext/pdo_mysql/106 ll107 php -v108 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 ll113 rm -rf mysql.o114 ll115 rm -rf pdo_mysql.o116 ll117 pwd118 rpm -ivh /home/temp/php/php-gd-8.2.13-1.module_el9.4.0+65+49ff6472.x86_64.rpm 119 ll120 php -v121 service php-fpm restart122 php -v123 pwd124 ll125 php -m126 service php-fpm restart127 php -v128 php -i | grep -i --color gd129 php -m130 cd /home/temp/php131 ll132 rpm -ivh php-gd-8.2.13-1.module_el9.4.0+65+49ff6472.x86_64.rpm 133 php -m134 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 -v137 php -m138 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 --force141 php -v142 service php-fpm restart143 cd /home/temp/php/php-8.3.13/144 ll145 cd ext146 ll147 cd pdo_mysql/148 ll149 cd tests/150 ll151 cd /usr/lib64/152 cd php/modules/153 ll154 ps -ef|grep java155 tail -f /home/tycloud/ybtcloud-plt/tylog.log 156 tail -444f /home/tycloud/ybtcloud-plt/tylog.log 157 reboot158 cd /home/THS/159 ll160 cd bin161 ll162 ./start.sh 163 cd /home/tycloud/164 ll165 ./start.sh 166 pwd167 ps -ef|grep java168 tail -f /home/tycloud/ybtcloud-ecologev/tylog.log 169 tail -444f /home/tycloud/ybtcloud-ecologev/tylog.log 170 reboot171 history172 ll173 history > houzw.txt174 mv houzw.txt houzw73.txt 175 cd /home/176 ll177 cd /home/178 ll179 cd tycloud/180 ll181 cd ybtcloud-ecologev/182 ll183 vim application-prod.yml 184 cd ..185 ll186 pwd187 /home/tycloud188 ifconfig189 reboot190 service php-fpm restart191 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 date195 service nginx restart196 tail -f /var/log/nginx/access.log197 service nginx start198 cd /home/THS/conf/199 ll200 cp httpserver.conf httpserver.confnginx201 ps -ef|grep http202 cd /home/THS/bin203 ll204 ./start.sh stop205 ps -ef|grep http206 more start.sh 207 ps -ef|grep http208 kill -9 2557209 ps -ef|grep http210 kill -9 httpserver211 kill httpserver212 kill -9 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568213 ps -ef|grep http214 kill -9 2569 2570 2571 2572 2573215 ps -ef|grep http216 /home/THS/bin/start.sh217 ps -ef|grep http218 /home/THS/bin/start.sh219 ./start.sh 220 ll221 cd ..222 ll223 cd ..224 ll225 cp temp/license.dat .226 ll227 /home/THS/bin/start.sh228 tail -f /home/tycloud/ybtcloud-plt/tylog.log 229 service nginx start230 systemctl status nginx231 netstat -aon232 ps -ef|grep http233 kill httpserver234 kill -9 6645 6646 6647 235 ps -ef|grep http236 /home/THS/bin/start.sh237 ps -ef|grep http238 kill -9 6973 6974 6975239 ps -ef|grep http240 service nginx restart241 tail -f /home/tycloud/ybtcloud-plt/tylog.log 242 service nginx restart243 ps -ef|grep http244 netstat -aon245 service nginx restart246 cd /home/247 ll248 chown 777 nginx249 ll250 service nginx restart251 tail -f /var/log/nginx/error.log252 service nginx restart253 tail -f /var/log/nginx/error.log254 service nginx restart255 tail -f /var/log/nginx/error.log256 service nginx restart257 tail -f /var/log/nginx/error.log258 service nginx restart259 tail -f /var/log/nginx/error.log260 reboot261 history 262 tail -f /home/tycloud/ybtcloud-plt/tylog.log263 cd /home/tycloud/ybtcloud-plt/264 ll265 cd logs/266 ll267 tail -222f log_error.log 268 /home/THS/bin/start.sh269 /home/tycloud/start.sh270 systemctl start php-fpm271 ps -ef|grep http272 kill -9 2396 2397 2398273 /home/THS/bin/start.sh274 date275 firewall-cmd --permanent --remove-port=8185/tcp276 firewall-cmd --permanent --remove-port=8880/tcp277 firewall-cmd --permanent --remove-port=8222/tcp278 firewall-cmd --permanent --remove-port=8686/tcp279 firewall-cmd --permanent --remove-port=9060/tcp280 firewall-cmd --permanent --remove-port=8088/tcp281 firewall-cmd --permanent --remove-port=8000/tcp282 firewall-cmd --permanent --remove-port=443/tcp283 sudo firewall-cmd --list-all284 sudo firewall-cmd --reload285 sudo firewall-cmd --list-all286 firewall-cmd --permanent --remove-port=10818/tcp287 sudo firewall-cmd --reload288 sudo firewall-cmd --list-all289 cd /home/290 ll291 zip -r THS1114.zip THS/292 ll293 ps -ef|grep http294 kill -9 3420 3421 3422 3423 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436295 ps -ef|grep http296 kill -9 3424297 ps -ef|grep http298 /home/THS/bin/start.sh299 cd /home/tyoa300 ll301 cd public/302 ll303 mkdir tyoa304 mv static/ storage/ tyoa305 ll306 more 1.php307 rm -rf 1.php 308 ll309 cd tyoa/310 ll311 mv static/ storage/ ../312 ll313 cd ..314 ll315 /home/THS/bin/start.sh reload316 /home/THS/bin/start.sh restart317 /home/THS/bin/start.sh reload318 ps -ef|grep http319 kill -9 5507 5508 5509320 /home/THS/bin/start.sh321 /home/tycloud/start.sh322 service nginx start323 ps -ef|grep http324 kill -9 2386 2387 2388325 service nginx restart326 /home/tycloud/start.sh327 /home/THS/bin/start.sh328 /home/THS/bin/start.sh reload329 ps -ef|grep java330 tail -f /var/log/nginx/error.log331 ps aux | grep "nginx: worker process" | awk '{print $1}'332 ps aux|grep nginx333 cd /home/nginx/334 ll335 service nginx stop336 reboot337 ps -ef|grep java338 kill -9 2413339 cd /home/340 ll341 cd tycloud/342 ll343 cd hjjc-lims-dms/344 ll345 ./start.sh 346 ./start.sh start 347 ll348 tail -555f tylog.log 349 wget http://10.61.10.73:8099/statTopic/list?deptId=2898350 tail -555f /home/THS/logs/access.log 351 /home/THS/bin/start.sh352 /home/tycloud/start.sh353 ps -ef |grep http354 /home/tycloud/start.sh reload355 /home/THS/bin/start.sh reload356 tail -f /home/THS/logs/error.log 357 service php-fpm start358 tail -f /home/THS/logs/error.log 359 /home/THS/bin/start.sh reload360 firewall-cmd --permanent --add-port=remove/tcp361 firewall-cmd --permanent --remove-port=8686/tcp362 firewall-cmd --reload363 cd /home/tyoa364 ll365 rm -rf runtime/366 mkdir runtime367 ll368 chown 755 runtime369 ll370 chmod 755 runtime/371 ll372 cd runtime/373 ll374 cd ll375 ll376 cd ..377 chown root runtime/378 ll379 chmod 777 runtime/380 ll381 firewall-cmd --permanent --add-port=8686/tcp382 firewall-cmd --reload383 tail -f /home/THS/logs/error.log 384 cd /home/THS/385 ll386 chmod 777 temp387 ll388 tail -f /home/THS/logs/error.log 389 /home/THS/bin/start.sh reload390 tail -f /home/THS/logs/error.log 391 vim /etc/httpd/httpd.conf392 service http restart393 service httpd restart394 find \ -name "*httpd*"395 find / -name "*httpd*"396 vim /etc/httpd/conf/httpd.conf397 cd /etc/httpd/conf.d/398 ll399 more php.conf 400 firewall-cmd --permanent --add-port=8011/tcp401 firewall-cmd --reload402 service httpd resatrt403 service httpd restart404 rpm -qi httpd405 service httpd restart406 systemctl stop httpd407 rpm -qa | grep httpd408 rpm -e httpd409 rm -rf /etc/httpd410 rm -rf /var/log/httpd411 find / -name '*httpd*'412 cd /home/temp/413 rm -rf httpd-2.2.22414 rm -rf httpd-2.2.8415 rm -rf httpd-2.4.26416 rm -rf httpd-2.4.62417 ll418 rm -rf php-5.6.40419 rm -rf OA.tar.gz 420 rm -rf php-5.6.40.tar.gz 421 rm -rf nginx-1.12.2422 rm -rf nginx-1.12.2.tar.gz 423 rm -rf redis-stable424 rm -rf libiconv-1.17425 rpm -qi httpd426 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 start429 systemctl status httpd.service430 service httpd stop431 find / -name '*httpd*'432 /home/THS/bin/start.sh reload433 tail -f /home/THS/logs/error.log 434 tail -f /home/THS/logs/access.log 435 /home/THS/bin/start.sh reload436 cd ../437 ps -ef|grep http438 kill -9 2395 6844 6845439 ps -ef|grep http440 service nginx start441 tail -f /var/log/nginx/error.log442 ll /var/lib/nginx/443 ll444 cd /var/lib/nginx/445 ll446 chmod 777 tmp447 ll448 tail -f /var/log/nginx/error.log449 ll450 chmod a+rw /var/lib/nginx/tmp/451 ll452 chown nginx:root /var/lib/nginx/tmp/453 ll454 service nginx restart455 tail -f /var/log/nginx/error.log456 cd /var/lib/nginx/tmp/457 ll458 cd fastcgi/459 cd 1460 ll461 cd ..462 ll463 chmod a+rw /var/lib/nginx/tmp/fastcgi/464 ll465 tail -f /var/log/nginx/error.log466 ps -ef|grep nginx467 service nginx restart468 ps -ef|grep nginx469 kill -9 7302 7303470 service nginx restart471 ps -ef|grep nginx472 ll473 cd fastcgi/474 ll475 service nginx restart476 ps -ef|grep nginx477 tail -f /var/log/nginx/error.log478 ps -ef|grep http479 ps -ef|grep nginx480 service nginx stop481 /home/THS/bin/start.sh482 firewall-cmd --permanent --remove-port=8011/tcp483 firewall-cmd --permanent --remove-port=8686/tcp484 firewall-cmd --reload485 /home/THS/bin/start.sh reload486 cd /home/nginx/487 cd html488 ll489 mkdir baddd490 mv index.html assets baddd491 ll492 mv assetsbak baddd493 more nginx-if.conf 494 cd assets/495 cp -r /home/nginx/html/baddd/assets/images/ .496 ll497 cd /home/THS/conf/498 ll499 cp -r httpserver.conf httpserver.conf1105ok500 ll501 cd /home/nginx/html/502 ll503 mkdir dms504 tar -zxvf dms.tar.gz dms505 mv dms.tar.gz dms506 ll507 cd dms/508 ll509 tar -zxvf dms.tar.gz 510 /home/THS/bin/start.sh reload511 vim index.html 512 /home/THS/bin/start.sh reload513 tail -f /home/THS/logs/error.log 514 ps -ef|grep http515 kill -9 7768 10343 10344516 ps -ef|grep http517 /home/THS/bin/start.sh518 ipvsadm -Ln519 etstat -ntlp520 netstat -ntlp521 firewall-cmd --list-ports522 firewall-cmd --list-all523 firewall-cmd --permanent --add-port=81/tcp524 firewall-cmd --reload525 /home/THS/bin/start.sh reload526 ps -ef|grep java527 netstat -aon528 /home/THS/bin/start.sh reload529 tail -f /home/tycloud/hjjc-lims-dms/530 ll531 tail -f /home/tycloud/hjjc-lims-dms/tylog.log 532 /home/THS/bin/start.sh reload533 uname -a534 ll535 ssh -v536 ssh -V537 openssl version -a538 cd /home/539 ll540 telnet541 net -ano542 netstat -ano543 service telnet-server start544 service telnet start545 service telnet.socket start546 netstat -ano|grep "23"547 sudo firewall-cmd --add-port=23/tcp --permanent548 sudo firewall-cmd --reload549 cd /etc/ssh/550 ll551 history552 ll553 mv /etc/ssh/ /etc/ssh.bak554 cd /usr/bin/ssh555 cd /usr/bin/556 ll557 cd /home/openssh558 cd /etc/pam.d/559 ll560 cd /etc/561 cd /etc/ssh/562 ll563 more sshd_config564 pwd565 ll566 chmod -R 775 sshd_configrpmnew567 vim sshd_config568 systemctl ssh status569 systemctl sshd status570 vim ssh_config571 vim sshd_config572 service sshd status573 get shadow information for root574 more /etc/selinux/config575 vim sshd_config576 cp -r /etc/ssh/ /home/ssh.bak577 cd /home/ssh.bak/578 ll579 cp -r /usr/bin/ssh /usr/bin/ssh.bak580 cp -r /usr/bin/sshd /usr/bin/sshd.bak581 cp -r /usr/sbin/sshd /usr/sbin/sshd.bak582 cp -r /etc/pam.d/sshd /etc/pam.d/sshd.old583 cd /home/584 ll585 tar -zxvf openssh-9.9p1.tar.gz 586 ll587 cd openssh-9.9p1/588 ll589 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords590 make591 make clear592 make clean593 ./configure --prefix=/usr/local/ssh --sysconfdir=/etc/ssh --with-pam594 make595 zlib596 zlib -v597 zlib -V598 cd ..599 ll600 tar -zxvf openssl-3.3.2.tar.gz 601 ll602 cd openssl-3.3.2/603 mkdir /usr/local/openssl_3.3.0604 cd ..605 ll606 pwd607 mv /home/openssl-3.3.2 /usr/local/608 cd /usr/local/609 ll610 rm -rf openssl_3.3.0/611 ll612 cd openssl-3.3.2/613 ll614 pwd615 mkdir build616 ll617 cd build/618 pwd619 ../config --prefix=/usr/local/openssl-3.3.2620 make621 make install622 find / -name "aes.h"623 make install624 mv /usr/bin/openssl /usr/bin/openssl-bak625 mv /usr/include/openssl /usr/include/openssl-bak626 mv /usr/lib64/libssl.so /usr/lib64/libssl.so.bak627 mv /usr/lib64/libcrypto.so /usr/lib64/libcrypto.so.bak628 mv /usr/lib/libssl.so /usr/lib/libssl.so.bak629 mv /usr/lib/libcrypto.so /usr/lib/libcrypto.so.bak630 mv /usr/lib/libssl.so.3 /usr/lib/libssl.so.3.bak631 mv /usr/lib64/libssl.so.3 /usr/lib64/libssl.so.3.bak632 mv /usr/lib64/libcrypto.so.3 /usr/lib64/libcrypto.so.3.bak633 mv /usr/lib/libcrypto.so.3 /usr/lib/libcrypto.so.3.bak634 make install635 make -j 4 && make install636 make cleanmake -j 4 && make install637 make -j 4 && make install638 openssl -v639 openssh -V640 ssh -V641 yum -y remove openssl642 rpm -qa openssl643 rpm -e openssl-1.1.1f-15.p05.ky10.x86_64644 rpm -qa openssl645 rpm -e openssl646 find / -name "libcrypto.so.3"647 ll648 cd ..649 rm -rf build650 ll651 [root@python1 updateSsh]#652 [root@python1 openssl-1.1.1s]# ./config --prefix=/usr --shared && make && make install653 ./config --prefix=/usr --shared && make && make install654 ssh -V655 find / -name "*libcrypto.so*"656 ln -s /usr/lib64/libcrypto.so.3.2.2 /usr/lib64/libcrypto.so.3657 rm //usr/lib64/libcrypto.so.3658 ln -s /usr/lib64/libcrypto.so.3.2.2 /usr/lib64/libcrypto.so.3659 find / -name "*libssl.so*"660 mv 661 /usr/lib64/libssl.so.3662 mv /usr/lib64/libssl.so.3 663 /usr/lib64/libssl.so.3664 mv /usr/lib64/libssl.so.3 /usr/lib64/libssl.so.3.bak665 mv /usr/lib64/libssl.so.3 /usr/lib64/libssl.so.3.bak2666 ln -s /usr/lib64/libssl.so.3.2.2 /usr/lib64/libssl.so.3667 openssl version -a668 ssh -V669 openssl version -a670 pwd671 cd ..672 ll673 cd /home/674 ll675 cd openssh-9.9p1/676 ll677 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords --with-ssl-dir=/usr/local/openssl-3.3.2678 cd ../679 ll680 tar -zxvf openssh-9.8p1.tar.gz 681 cd openssh-9.8p1/682 ll683 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib --with-md5-passwords --with-ssl-dir=/usr/local/openssl-3.3.2684 ./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-check686 ssh -V687 /usr/local/ssh/bin/ssh -V688 cp -rf /home/openssh-9.8p1/contrib/redhat/sshd.init /etc/init.d/sshd689 cp -rf /home/openssh-9.8p1/contrib/redhat/sshd.pam /etc/pam.d/sshd690 cp -rf /usr/local/ssh/sbin/sshd /usr/sbin/sshd691 echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config692 echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config693 tail -444f /etc/ssh/ssh_config694 more -444f /etc/ssh/ssh_config695 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/ssh699 make -j 4 && make install700 ssh -V701 history702 make703 cd openbsd-compat/704 make705 ll706 cd ..707 ll708 make709 cd openbsd-compat && make710 ll711 more Makefile712 tail -8888f Makefile713 cd /home/714 tail -444f /etc/ssh/sshd_config715 mv /home/ssh.bak/ /etc/ssh/716 cd /etc/ssh/717 ll718 mv /usr/bin/ssh.bak /usr/bin/ssh719 mv /usr/sbin/sshd.bak /usr/sbin/sshd720 mv /etc/pam.d/sshd.old /etc/pam.d/sshd721 more 722 more /home/openssh-9.8p1/openbsd-compat/getrrsetbyname.c723 tail -444444f /home/openssh-9.8p1/openbsd-compat/getrrsetbyname.c724 find / -name "getrrsetbyname.h"725 tail -4444444f /home/openssh-9.8p1/openbsd-compat/getrrsetbyname.h726 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 ll732 tail -44444444444444444444f Makefile733 tail -4444444444f Makefile734 ll735 pwd736 ll737 mv /etc/ssh.bak/ /etc/ssh738 cd /home/openssh-9.8p1/739 ll740 more Makefile741 make742 make clean743 ./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-check745 make -j 4 && make install746 ./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.2754 ./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.2755 ./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 install756 find / -name "*libcrypto.so*"757 find / -name "*libresolv.a*"758 make759 make clean760 make761 more configure762 mv /etc/ssh/ /home/ssh-bak763 mv /usr/bin/ssh /usr/bin/ssh.bak764 mv /usr/sbin/sshd /usr/sbin/sshd.bak765 mv /etc/pam.d/sshd /etc/pam.d/sshd.old766 rpm -q openssh767 cd /usr/local/openssl768 cd /usr/769 ll770 cd local/771 ll772 mv openssl-3.3.2/ openssl773 ll774 pwd775 cd /home/776 ll777 cd openssh778 ll779 cd 2780 ll781 cd ..782 ll783 rpm -qa|grep openssh784 service openssh stop785 service sshd stop786 rpm -e --nodeps `rpm -qa | grep openssh`787 ll788 service sshd start789 find / -name sshd790 mv /etc/rc.d/init.d/sshd /etc/rc.d/init.d/sshd.bak791 mv /usr/sbin/sshd /usr/sbin/sshd.bak792 find / -name sshd793 ll794 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm 795 cd 2796 ll797 cp ../openssh-server-9.8p1-5.el9.x86_64.rpm .798 ll799 rpm -ivh *.rpm800 cd ..801 ll802 cd 2803 ll804 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 start807 ssh -V808 systemctl sshd status809 systemctl status sshd810 ssh -V811 find / -name sshd812 /usr/sbin/ssh -V813 find / -name ssh814 cd /etc/ssh/815 ll816 ssh -V817 cd /home/openssh818 ll819 cd 2820 ll821 rpm -qa|grep openssh822 openssh -V823 ssh824 rpm -ivh *.rpm825 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 -a829 ssh -V && /usr/sbin/sshd -V830 cd 2831 rpm -ivh *.rpm832 ssh -V 833 rpm -ivh *.rpm834 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 --nodeeps839 rpm -ivh --force *.rpm840 rpm -ivh --force *.rpm --nodeps841 ssh -c842 ssh -v843 ssh -V844 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 -a848 cd /etc/ssh/849 ll850 more sshd_config.rpmnew 851 ll852 cd /etc/ssh/sshd_config.d/853 ll854 systemctl ssh status855 systemctl sshd status856 systemctl restart sshd857 systemctl status sshd858 ssh -v859 cd /home/openssh/2/860 ll861 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 nspr868 rpm -ivh nss-softokn-3.101.0-6.el9.x86_64.rpm 869 ll870 cd ..871 ll872 cd 2873 ll874 mv openss*.* ../875 ll876 rpm -ich *.rpm877 openssh878 rpm -qa | grep openssh879 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 ll885 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 ll899 rpm -ivh *.rpm900 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 gnutls904 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 --force906 openssh -v907 ssh -v908 cd ..909 ll910 rpm -ivh openssl-libs-3.2.2-6.el9.x86_64.rpm 911 ll912 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm 913 ssh -v914 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm 915 cd 2916 ll917 rpm -ivh openssh-9.8p1-5.el9.x86_64.rpm 918 ll919 rpm -ivh openssh920 rpm -qa|grep openssh921 rpm -e openssh-*922 rpm -qa|grep openssh923 rpm -e openssh-server 924 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64925 rpm -e openssh-8.2p1-16.p04.ky10.x86_64926 rpm -e openssh-*927 rpm -e openssh-9.8p1-5.el9.x86_64928 rpm -e openssh-9*929 rpm -e openssh-server-9.8p1-5.el9.x86_64930 rpm -e openssh*931 rpm -e openssh-9.8p1-5.el9.x86_64.rpm932 rpm -e openssh-9.8p1-5.el9.x86_64933 rpm -e openssh*934 ll935 rpm -qa|grep openssh936 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64937 rpm -e openssh-8.2p1-16.p04.ky10.x86_64938 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_64939 ll940 cd ..941 ll942 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm 943 ssh -v944 service sshd restart945 systemctl status sshd946 systemctl stop sshd947 rpm -q openssh-server948 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64949 rpm -e openssh-server-8.2p1-16.p04.ky10.x86_64 openssh-8.2p1-16.p04.ky10.x86_64950 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/ssh953 mv /usr/sbin/sshd.bak /usr/sbin/sshd 954 mv /etc/pam.d/sshd.old /etc/pam.d/sshd955 service sshd start956 systemctl status sshd957 systemctl restart sshd958 journalctl -xe959 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 sshd963 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm --force964 ssh -v965 service sshd start966 ssh -V967 rpm -ivh openssh-server-9.8p1-5.el9.x86_64.rpm openssh-9.8p1-5.el9.x86_64.rpm968 rpm -e openssh-help-8.2p1-16.p04.ky10.noarch969 rpm -e openssh-help-8.2p1-16.p04.ky10.noarch openssh-8.2p1-16.p04.ky10.x86_64970 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_64971 find / -name sshd972 more /etc/sysconfig/sshd973 find / -name ssh.conf974 find / -name sshd.conf975 find / -name ssh*.conf976 cd /etc/ssh977 ll978 more ssh_config979 more sshd_config980 vim sshd_config981 firewall-cmd --permanent --add-port=20250/tcp982 firewall-cmd --reload983 service sshd restart984 systemctl enable sshd985 chkconfig sshd on986 systemctl status sshd987 service telnet.socket restart988 systemctl telnet.socket status989 systemctl status telnet.socket990 chkconfig telnet.socket on991 systemctl enable telnet.socket992 systemctl status telnet.socket993 systemctl preset sshd enable994 systemctl preset sshd enabled995 systemctl preset --set sshd.service enabled996 systemctl status sshd997 reboot998 history999 history > houzw731.txt 1 uname2 uname -a3 service mysql status4 systemctl mysql status5 sudo apt-get update6 dpkg -l|grep mysql7 ps -ef|grep dm8 java9 java -v10 java -version11 ping www.baidu.com12 uname -a13 java -version14 ps -ef|grep mysql15 mysql16 where is mysql17 find mysql18 find / -name "*mysql*"19 systemctl mysql start20 mysqld_safe --skip-grant-tables &21 ps -ef|grep mysql22 mysql -uroot -p23 ps -ef|grep nginx24 find / -name "*nginx*"25 cd /etc/nginx/26 ll27 systemctl nginx start28 rz29 ls30 cd /home/31 ll32 ls33 cd ..34 ls35 cd /home/36 ll37 ifconfig38 find / -name "*my.ini*"39 find / -name "*my.*"40 tail -444f /etc/my.cnf41 tail -4444f /etc/my.cnf42 mysql -uroot -p43 sudo systemctl start mysqld44 ps -ef|grep mysql45 kill -9 6591446 ps -ef|grep mysql47 kill -9 6599048 ps -ef|grep mysql49 mysqld &50 ps -ef|grep mysql51 find / -name "*mysql*"52 /usr/bin/mysql_install_db53 [root@10-61-10-72 home]# /usr/bin/mysql_install_db54 Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...55 OK56 To start mysqld at boot time you have to copy57 support-files/mysql.server to the right place for your system58 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 mysql63 cd /usr/64 /usr/bin/mysqld_safe --datadir='/var/lib/mysql'65 mysql -uroot -p66 ps -ef|grep mysql67 ps -ef|grep mysqld68 ps -ef|grep mysqld_safe69 mysql -uroot -p70 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 -p73 tail -444f /var/lib/mysql/10-61-10-72.err74 cd /var/lib/mysql/75 ls76 ll77 su mysql78 sudo /usr/bin/mysqld_safe --datadir='/var/lib/mysql'79 tail -444f /var/lib/mysql/10-61-10-72.err80 sudo /usr/bin/mysqld_safe --datadir='/var/lib/mysql' &81 sudo /usr/bin/mysqld_safe --skip-grant-tables &82 mysql -uroot -p83 tail -444f /var/lib/mysql/10-61-10-72.err84 ifconfig85 find / -name "*my.cnf*"86 cd /etc/87 vim my.cnf88 vim my.cnf.d/89 find / -name "*mariadb-server.cnf*"90 /etc/my.cnf.d/mariadb-server.cnf91 vim /etc/my.cnf.d/mariadb-server.cnf92 source /etc/my.cnf.d/mariadb-server.cnf93 ps -ef |grep mysql94 kill -9 8170695 kill -9 8171196 ps -ef |grep mysql97 kill -9 8178798 ps -ef |grep mysql99 cd /usr/100 sudo /usr/bin/mysqld_safe --skip-grant-tables &101 ps -ef |grep mysql102 systemctl iptable status103 netstat104 netstat -tuln105 systemctl status firewalld106 sudo firewall-cmd --add-port=3306/tcp --permanent107 sudo firewall-cmd --query-port=3306/tcp108 sudo firewall-cmd --add-port=3306/tcp --permanent109 sudo firewall-cmd --query-port=3306/tcp110 sudo firewall-cmd --reload111 sudo firewall-cmd --query-port=3306/tcp112 netstat -tuln113 mysql -uroot -p114 cd /home/115 ll116 tar -zxvf redis-stable.tar.gz 117 cd redis-stable/118 ll119 make120 make install121 systemctl restart nginx.service122 systemctl restart redis123 ll124 systemctl restart redis-server125 ll126 cd src/127 ll128 cd ..129 find / -name "*redis-serve*"130 sudo /usr/local/bin/redis-server &131 ps -ef|grep redis132 sudo firewall-cmd --add-port=6379/tcp --permanent133 sudo firewall-cmd --reload134 ll135 find / -name "*redis.conf*"136 vim redis.conf 137 ps -ef|grep redis138 kill -9 181768139 ps -ef|grep redis140 kill -9 181773141 ps -ef|grep redis142 sudo /usr/local/bin/redis-server &143 ps -ef|grep redis144 kill -9 182015145 ps -ef|grep redis146 kill -9 182020147 ps -ef|grep redis148 sudo /usr/local/bin/redis-server 149 ps -ef|grep redis150 sudo /usr/local/bin/redis-server &151 ps -ef|grep redis152 kill -9 182366153 kill -9 182371154 ps -ef|grep redis155 ll156 pwd157 sudo /usr/local/bin/redis-server /home/redis-stable158 cp -r ./redis.conf /etc/redis/159 mkdir /etc/redis160 cp -r ./redis.conf /etc/redis/161 sudo /usr/local/bin/redis-server /etc/redis/redis.conf &162 top163 find / -name "*server.cnf*"164 vim /etc/my.cnf.d/mariadb-server.cnf165 ps -ef|grep mysql166 kill -9 82002167 ps -ef|grep mysql168 kill -9 82007169 ps -ef|grep mysql170 kill -9 82089171 ps -ef|grep mysql172 /bin/sh /usr/bin/mysqld_safe --skip-grant-tables173 ps -ef|grep mysql174 cd /dm8/script/root175 ll176 ./dm_service_installer.sh -t dmserver -dm_ini /dm/data/DAMENG/dm.ini -p DMSERVER177 systemctl start DmServiceDMSERVER.service178 systemctl status DmServiceDMSERVER.service179 cd /home/180 ll181 mkdir dm8182 mv dm8_20240703_HG_kylin10_64.zip ./dm8183 cd dm8/184 ll185 unzip dm8_20240703_HG_kylin10_64.zip 186 ll187 more dm8_20240703_HG_kylin10_64.README 188 ll189 cd /190 ll191 mkdir data192 ll193 cd /home/194 ll195 groupadd dinstall196 useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba197 passwd dmdba198 cat >> /etc/security/limits.conf <<EOF199 su - dmdba200 sudo firewall-cmd --add-port=5236/tcp --permanent201 sudo firewall-cmd --reload202 systemctl status 203 service DmAPService restart204 service DmAPService status205 sudo firewall-cmd --reload206 dmcli -U SYSDBA -P SYSDBA -H localhost207 find / -name "*dmcli*"208 /dm8/bin/dmcli -U SYSDBA -P SYSDBA -H localhost209 disql210 find / -name "*disql*"211 /dm8/bin/disql212 /dm8/bin/disql sysdba/syasba@10.61.10.72:5236213 su dmdba214 /dm8/script/root/root_installer.sh215 cd /home/dmdba/216 echo #PATH217 echo $PATH218 service DmAPService restart219 mkdir -p /dm/data220 chown dmdba:dinstall -R /dm221 su - dmdba222 pwd223 cd ..224 ll225 pwd226 cd dm227 cd dm8/228 ll229 mount -o loop /home/dm8/dm8_20240703_HG_kylin10_64.iso /mnt230 mkdir /dm8231 chown dmdba:dinstall -R /dm8/232 chmod -R 755 /dm8233 su - dmdba234 ps -ef|grep mysql235 systemctl status mariadb236 kill -9 183363237 systemctl status mariadb238 ps -ef|grep mys239 kill -9 183448240 systemctl status mariadb241 systemctl start mariadb242 systemctl status mariadb.service243 vim /etc/my.cnf244 vim /etc/my.cnf.d/mariadb-server.cnf 245 vim /etc/my.cnf.d/mysql-clients.cnf 246 vim /etc/my.cnf247 vim /etc/my.cnf.d/enable_encryption.preset 248 systemctl restart mariadb249 journalctl -xe250 /usr/bin/mysql_install_db --defaults-file=~/.my.cnf251 /usr/bin/mysql_install_db --defaults-file=/etc/.my.cnf252 /usr/bin/mysql_install_db --defaults-file=/etc/my.cnf253 '/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 mariadb258 systemctl status mariadb.service259 journalctl -xe260 /usr/bin/mysql_install_db --user=mysql --skip-test-db 261 /usr/bin/mysql_install_db --defaults-file=/etc/.my.cnf262 /usr/bin/mysql_install_db --defaults-file=/etc/my.cnf263 /usr/bin/mysql_secure_installation264 '/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 mysql268 '/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 mysql272 netstat -aon |grep 3306273 netstat -aon274 /usr/bin/mysql_secure_installation275 systemctl enable --now mariadb.service 276 systemctl status mariadb.service277 /usr/bin/mysql_install_db --user=mysql --skip-test-db 278 /usr/libexec/mysqld --skip-grant-tables --general-log &279 netstat -aon |grep 3306280 systemctl status mariadb.service281 /usr/bin/mysql_install_db --defaults-file=/etc/my.cnf282 '/usr/bin/mysqladmin' -u root password 'root'283 systemctl status mariadb.service284 cd /run/media/root285 ls286 cd Kylin-Server-10/287 ls288 cd Packages/289 ls290 find . -name '*mariadb*'291 rpm -e mariadb292 rpm -e mariadb*293 rpm -e mariadb-server 294 rpm -e mariadb-10295 rpm -e mariadb296 rpm -e mariadb-common 297 rpm -e mariadb-errmessage 298 rpm -e mariadb-devel299 rpm -e mariadb-common 300 rpm -e mariadb-connector-c 301 ll302 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.service310 journalctl -xe311 rpm -qa | grep -i mariadb312 sudo systemctl stop mariadb313 rpm -e mariadb mariadb-common mariadb-connector-c mariadb-errmessage mariadb-server314 rpm -e mariadb mariadb-server315 sudo rm -rf /etc/mysql316 sudo rm -rf /var/lib/mysql317 sudo rm -rf /var/log/mysql318 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.service323 systemctl status mariadb.service324 mysql_secure_installation325 systemctl status mariadb.service326 /usr/bin/mysql_install_db --user=mysql --skip-test-db327 history328 '/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.cnf333 service mariabd restart334 service mariadb restart335 mysql_secure_installation336 mysql -u root -p337 service mariadb restart338 mysql -u root -p339 mysql -u root -h 127.0.0.1 -p340 mysql -u root@127.0.0.1 -p341 mysql -h 127.0.0.1342 systemctl status mariadb343 mysql -h 127.0.0.1344 reboot345 systemctl status mariadb.service 346 systemctl start mariadb.service 347 cd /home/348 ll349 cd redis-stable/350 ll351 find / -name "*redis*"352 redisserver &353 /usr/local/bin/redis-server354 /usr/local/bin/redis-server &355 history356 ps-ef |grep redis.conf 357 ps-ef |grep redi358 ps -ef |grep redi359 kill -9 4502360 sudo /usr/local/bin/redis-server /etc/redis/redis.conf &361 reboot362 ll363 history > houzw.txt 364 ll365 hostory366 history367 systemctl start mariadb.service368 sudo /usr/local/bin/redis-server /etc/redis/redis.conf &369 cd /home/370 ll371 rm -rf OA.tar.gz 372 ll373 rm -rf Install_TW6.1.5.8_Enterprise_Linux.bin 374 ll375 rm -rf license.dat 376 ll377 cd dm8/378 ll379 cd ..380 date381 rediscli382 redis-cli383 find / -name "*.DBF*"384 history385 more /etc/login386 uname -a387 more /etc/login388 more /etc/ssh/sshd_config389 chage -l username390 chage -l root391 more /etc/security/pwquality.conf392 netstat -tlnp|more393 more /etc/login.defs394 netstat -tuanp|more395 find / -name "*dm.ini*"396 more 397 /dm/data/DAMENG/dm.ini398 more /dm/data/DAMENG/dm.ini399 systemctl status DmServiceDMSERVER.service400 systemctl stop DmServiceDMSERVER.service401 vim /dm/data/DAMENG/dm.ini402 cp -r /dm/data/DAMENG/dm.ini /dm/data/DAMENG/dm.ini.bak403 sudo firewall-cmd --permanent --remove-port=5236/tcp404 sudo firewall-cmd --add-port=15236/tcp --permanent405 sudo firewall-cmd --reload406 systemctl start DmServiceDMSERVER.service407 systemctl status DmServiceDMSERVER.service408 find / -name "*.dbf"409 find / -name "*.dbf*"410 find / -name ".DBF*"411 find / -name "*.DBF*"412 cd /dm/data/DAMENG413 ll414 chmod 644 dm.ini.bak 415 ll416 cd /etc/ssh/417 ll418 systemctl status sshd419 sz d://openssl-libs-3.2.2-6.el9.x86_64.rpm420 chcp 65001421 sz d://openssl-libs-3.2.2-6.el9.x86_64.rpm422 exit423 pwd424 ifconfig425 cd /home/openssh/426 ll427 cd /home428 ll429 sz /home/openssl-libs-3.2.2-6.el9.x86_64.rpm430 ls431 ifconfig432 rz /home/openssl-libs-3.2.2-6.el9.x86_64.rpm433 rz --hrlp434 rz --help435 exit()436 exit()437 ifconfig438 exit439 service telnet.socket start440 firewall-cmd --permanent --add-port=23/tcp441 firewall-cmd --permanent --add-port=20250/tcp442 firewall-cmd --permanent --add-port=20251/tcp443 firewall-cmd --reload444 cd /home445 ll446 telnet 10.61.10.73447 service sshd stop448 systemctl status sshd449 rpm -qa | grep openssh450 rpm -e --nodeps `rpm -qa | grep openssh`451 find / -name sshd452 find / -name ssh453 mv /etc/ssh /etc/ssh.bak454 find / -name ssh455 cd /home/openssh/456 ll457 rpm -ivh *.rpm458 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 ll461 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 --force465 rpm -ivh libstdc++-11.5.0-2.el9.x86_64.rpm --force --nodeps466 cd openssh/467 ll468 rpm -ivh *.rpm469 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 ll471 ssh -v472 systemctl start vsftpd473 systemctl start ftpd474 systemctl start ftp475 rpm -qa | grep ftp476 python -m httpserver477 python -m http.server478 ll479 cd ..480 ll481 vim ftp.py482 ll483 chmod 777 ftp.py 484 ll485 python ftp.py 486 vim ftp.py 487 python ftp.py 488 vim ftp.py 489 python ftp.py 490 ll491 sz492 sz d:/openssl-libs-3.2.2-6.el9.x86_64.rpm493 telnet 10.61.10.73 494 ll495 find / -name openssl496 ll497 sz ftp.py498 vim f.py499 ll500 chomd 777 f.py 501 chmod 777 f.py 502 python f.py 503 vim f.py504 python f.py 505 vim f.py506 python f.py 507 vim f.py508 python f.py 509 vim f.py510 vim f1.py511 python f1.py 512 python513 ll514 rm -rf f*.py515 ll516 vim f.py517 chmod 777 f.py 518 ll519 python f.py 520 vim f.py521 python f.py 522 vim f.py523 python f.py 524 ll525 cd received_files/526 ll527 cd ..528 python f.py 529 ll530 cd received_files/531 ll532 mv openssl-libs-3.2.2-6.el9.x86_64.rpm /home/openssh/533 cd /home/openssh/534 ll535 rpm -ivh *.rpm536 find / -name libc.so.6537 strings /usr/lib64/libc.so.6 | grep GLIBC538 cd /home/539 ll540 python f.py 541 cd received_files/542 ll543 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 --force545 rpm -ivh glibc-2.34-125.el9_5.1.x86_64.rpm --force --nodeps546 strings /usr/lib64/libc.so.6 | grep GLIBC547 cd /home/openssh/548 rpm -ivh *.rpm549 rpm -ivh openssl-libs-3.2.2-6.el9.x86_64.rpm 550 rpm -ivh *.rpm551 cd /home/552 ll553 python f.py 554 cd received_files/555 ll556 rpm -ivh libxcrypt-4.4.18-3.el9.x86_64.rpm 557 rpm -ivh libxcrypt-4.4.18-3.el9.x86_64.rpm --force558 cd /home/openssh/559 ll560 rpm -ivh *.rpm561 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 --force566 openssl -version567 openssl version -a568 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 --force573 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 --force574 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 --nodeps581 service sshd restart582 vim /etc/ssh/sshd_config583 systemctl enable sshd584 systemctl status sshd585 service sshd restart586 ssh -v587 ssh -V588 rpm -qa|grep mariadb589 rpm -e --nodeps `rpm -qa | grep mariadb`590 find / -name mysql591 mv /var/lib/mysql/ /var/lib/mysql.bak/592 find / -name mysql593 cd /home/mysql594 ll595 rpm -ivh *.rpm596 vim /etc/my.cnf597 systemctl start mysqld.service598 journalctl -xe599 vim /etc/my.cnf600 systemctl start mysqld.service601 vim /etc/my.cnf602 tail -4444f /var/log/mysqld.log603 service mysqld restart604 vim /etc/my.cnf605 service mysqld restart606 rpm -qa|grep mysql607 rpm -qa|grep mysql-c608 rpm -e mysql-c609 rpm -e `rpm -qa|grep mysql610 rpm -e `rpm -qa|grep mysql-c`611 find / -name mysql612 rm -rf /var/lib/mysql613 rm -rf /usr/lib64/mysql/614 ll615 cd /home/mysql/616 ll617 rpm -ivh mysql*.rpm618 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize --lower_case_table_names=1619 vim /etc/my.cnf620 service mysqld restart621 mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1622 service mysqld stop623 mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1624 rm -rf /var/lib/mysql625 mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --lower_case_table_names=1626 vim /etc/my.cnf627 mysql_secure_installation628 service mysqld start629 mysql -uroot -p630 systemctl status mysqld631 reboot632 cd /home/mysql/633 rpm -ivh *.rpm634 service mysql start635 service mysqld start636 mysql_secure_installation637 mysql -V638 mysql -uroot -p639 vi /etc/my.cnf640 cat /var/log/mysqld.log | grep root@localhost641 service mysqld restart642 systemctl status mysqld.service643 netstat -aon|grep 3306644 netstat -aon645 service mysqld restart646 vi /etc/my.cnf647 service mysqld restart648 systemctl status mysqld.service649 vi /etc/my.cnf650 service mysqld restart651 history652 mysql_secure_installation653 vi /etc/my.cnf654 service mysqld restart655 systemctl status mysqld.service656 mysql_secure_installation657 vi /etc/my.cnf658 service mysqld restart659 mysql -uroot -p660 service mysqld restart661 vi /etc/my.cnf662 service mysqld restart663 vi /etc/my.cnf664 service mysqld restart665 vi /etc/my.cnf666 service mysqld restart667 mysqld --initialize --user=mysql668 vim /etc/my.cnf669 service mysqld restart670 vim /etc/my.cnf671 service mysqld restart672 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize673 service mysqld restart674 systemctl status mysqld.service675 cd /data/mysql/676 ll677 vim /etc/my.cnf678 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=1680 service mysqld restart681 systemctl status mysqld.service682 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize --lower_case_table_names=1683 service mysqld restart684 vim /etc/my.cnf685 mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize --lower_case_table_names=1686 service mysqld restart687 vim /etc/my.cnf688 service mysqld restart689 mysqld --initialize --user=mysql --lower_case_table_names=1690 ./ mysqld --initialize --user=mysql --lower_case_table_names=1691 ./mysqld --initialize --user=mysql --lower_case_table_names=1692 mysqld --initialize --user=mysql --lower_case_table_names=1693 tail -f /var/log/mysqld.log694 vim /etc/my.cnf695 cd /var/lib/mysql696 ll697 tail -f /var/log/mysqld.log698 history > houzw1.txt