随笔分类 -  linux

linux命令添加至环境变量
摘要:vim /etc/profile 最后一行添加 /usr/local/nginx/sbin/ 命令目录 export PATH="/usr/local/nginx/sbin/:$PATH" 保存后 source /etc/profile 阅读全文

posted @ 2022-08-11 14:59 旭彬 阅读(207) 评论(0) 推荐(0)

rar 压缩解压
摘要:rar wget https://www.rarlab.com/rar/rarlinux-x64-612.tar.gz # 压缩文件 rar a -r test.rar file # 解压文件 unrar x test.rar a : 添加到压缩文件 -r : 递归处理 x : 以绝对路径解压文件 阅读全文

posted @ 2022-08-11 14:38 旭彬 阅读(171) 评论(0) 推荐(0)

使用 p7zip 加密解密
摘要:1. 安装 yum install p7zip p7zip-plugins 2. 加密打包 7z a -ptest test.7z test.php -p 密码 test.php 可以是目录 或者 多个文件3. 解密打包 7z x -ptest test.7z -r -o./now 4. 查看手册 阅读全文

posted @ 2022-03-29 18:10 旭彬 阅读(363) 评论(0) 推荐(0)

windows挂载到linux虚拟机mount命令
摘要:mount -t cifs -o username=admin,password=asdasd,dir_mode=0777,file_mode=0777 //192.168.44.1/blog /www/wwwroot/blog username windows电脑用户password 密码 dir 阅读全文

posted @ 2020-12-25 16:37 旭彬 阅读(661) 评论(0) 推荐(0)

阿里云服务器磁盘扩容
摘要: 阅读全文

posted @ 2020-07-30 18:24 旭彬 阅读(156) 评论(0) 推荐(0)