关于运维命令
这是我日常生活中写的命令,自己也会经常用到,经常会忘记,所以直接收集起来,ctrl+f 搜索,就非常方便,也是非常简单的,这里的命令我也会经常更新,写出更多的命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| mysql -uroot -p123 coordination < db_backuo.sql mysqldump -usa -pabcd1234 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; scp db_backuo.sql 10.0.9.86:/haha/ docker cp bc6c1dcd0664:/db_backuo.sql /root/ docker exec -it bc6c1dcd0664 bash find /usr/local/tomcat/webapps/admin/WEB-INF/classes -name '*.yml' -exec grep -Hn '10.0.9.6:3306' {} \; /data/xt/www/node_modules/.bin/nuxt build npm install vue-template-compiler npm install vue npm install vue-loader@latest --save-dev npm install vue@2.7.14 /data/xt/www/node_modules/.bin/nuxt start PATH=/usr/local/jdk1.8.0_341/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
npm install pm2 pm2 start /data/xt/www/node_modules/.bin/nuxt ln -s /data/node-v14.15.0-linux-x64/ /data/node netstat -nltp ps -ef | grep 进程号 docker run -itd --name nginx-prod -p 443:443 -p 80:80 -p 81:81 --network host -v /data/nginx/logs:/var/log/nginx/logs -v /data/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf -v /data/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /data/nginx/certs:/etc/nginx/certs docker.io/nginx:1.22 GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.0.9.86' IDENTIFIED BY '123'; CREATE USER 'sa'@'localhost' IDENTIFIED BY 'abcd1234##'; select * from tmp_t_productChkDetailed limit 10; SELECT User, Host FROM mysql.user; show grants for root@'localhost'; show variables like '%max_connect%'; set global max_connect_errors = 500; set global max_connect = 500; flush privileges; echo xiaocai@123 | passwd --stdin root nohup npm run start-dev & journalctl -xe nohup npm run start-dev > my.log 2>my.log & echo xiaocai | passwd --stdin root ssh-keygen ssh-copy-id root@10.0.9.231 :set paste wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.8.0-x86_64.rpm hostnamectl /usr/share/nginx/html/index.html yumdownloader --resolve --destdir=. unzip telnet 10.0.9.228 9200
|