随笔分类 -  linux

摘要:1 centos 安装 yum install crontabs 2 编辑配置 crontab -e 实例 1 0 * * * /opt/backup/back_mysql.sh >> /opt/backup/backup.log #(每天的0点01分执行 */20 * * * * /usr/bin 阅读全文
posted @ 2021-12-27 15:15 睁yan-ii 阅读(78) 评论(0) 推荐(0) 编辑
摘要:Linux如何查看端口 1、lsof -i:端口号 用于查看某一端口的占用情况,比如查看8000端口使用情况,lsof -i:8000 # lsof -i:8000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME lwfs 22065 root 阅读全文
posted @ 2021-10-29 11:01 睁yan-ii 阅读(824) 评论(0) 推荐(0) 编辑
摘要:目录 du -sh /tmp 文件 du -h /tmp/aaa.jar 阅读全文
posted @ 2021-08-23 16:11 睁yan-ii 阅读(21) 评论(0) 推荐(0) 编辑
摘要:linux命令-scp,sftp远程上传下载文件 1.本地下载远程的文件 scp user@ip:/源文件绝对地址 目的文件 #scp root@ip:/home/log.log ./ 2.scp带密码下载远程文件 #sudo apt-get install sshpass #sshpass -p 阅读全文
posted @ 2021-07-26 18:36 睁yan-ii 阅读(93) 评论(0) 推荐(0) 编辑
摘要:Linux的压缩/解压缩文件处理 zip & unzip Linux的压缩/解压缩命令详解及实例 压缩服务器上当前目录的内容为xxx.zip文件 zip -r xxx.zip ./* 解压zip文件到当前目录 unzip filename.zip 另:有些服务器没有安装zip包执行不了zip命令,但 阅读全文
posted @ 2021-07-13 16:19 睁yan-ii 阅读(392) 评论(0) 推荐(0) 编辑
摘要:Java版本:jdk-16.0.1_linux-x64_bin.tar linux ubuntu 18.04 # 都可以 jdk-16.0.1_linux-x64_bin.tar 下载链接:http://123.56.2.32:8888/group1/M00/00/00/rBwalWDlfXKAUp 阅读全文
posted @ 2021-07-07 18:13 睁yan-ii 阅读(169) 评论(0) 推荐(0) 编辑
摘要:1,你要先强制退出 :q! 2,退出后在执行 :sudo !! 3,再次编辑你要编辑的内容 vim ... 4,再保存就可以了 :wq! 阅读全文
posted @ 2021-06-22 16:43 睁yan-ii 阅读(714) 评论(0) 推荐(0) 编辑
摘要:几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 内存使用情况? free -h 每个cpu是几核(假设cpu配置相同) more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l cat 阅读全文
posted @ 2021-06-04 16:55 睁yan-ii 阅读(2060) 评论(0) 推荐(0) 编辑
摘要:一、防火墙的开启、关闭、禁用命令 (1)设置开机启用防火墙:systemctl enable firewalld.service (2)设置开机禁用防火墙:systemctl disable firewalld.service (3)启动防火墙:systemctl start firewalld ( 阅读全文
posted @ 2021-05-27 18:26 睁yan-ii 阅读(44) 评论(0) 推荐(0) 编辑
摘要:基本格式: scp 需要拷贝的源路径 拷贝后存放的路径 服务器向服务器传输数据scp scp -r docker_tar 10.10.3.255:/root 1.从本机拷贝到远程主机 将当前目录下的 myfile 拷贝到 目的主机 192.168.1.100 的home 目录下: scp myfil 阅读全文
posted @ 2021-05-24 17:45 睁yan-ii 阅读(437) 评论(0) 推荐(0) 编辑
摘要:查看最近500行日志: tail -500 nohup.out 实时查看启动日志 :tail -f nohup 给nohup启动日志存入自命名文件并实时查看 :nohup java -jar boot-1.6.1.jar ->test1.txt & tail -f test1.txt 阅读全文
posted @ 2021-05-23 00:19 睁yan-ii 阅读(2051) 评论(0) 推荐(0) 编辑
摘要:locate pycharm |grep /pycharm$ 阅读全文
posted @ 2021-05-19 16:26 睁yan-ii 阅读(971) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示