一键su切换root用户shell脚本

每次su拿root权限输入密码麻烦,设置shell脚本一键切换 打开新文件vi su #!/bin/expect spawn su expect “Password:” exp_send “passwd\r”    //passwd 为root密码 interact  :wq保存 添加执行权限:chmod +x su 切换root : ./su

订阅转换

Linux
订阅转换

项目地址:https://github.com/tindy2013/subconverter 项目地址:https://github.com/leosam2048/sub-web   1、下载后端转换并打开api wget https://github.com/tindy2013/subconverter/releases/download/v0.6.3/subconverter_linux64.tar.gz tar -x……

卸载阿里安骑士、云盾

关闭开机启动 service aegis stop #停止服务 chkconfig --del aegis # 删除服务 卸载安骑士 wget http://update.aegis.aliyun.com/download/uninstall.sh sh uninstall.sh wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh sh quartz_uni……

险些,恢复了

想安装一个seo插件,提示说php版本过低,然后去升级了一下,结果玩崩了。。然后折腾半天备份   好在腾讯云之前设置了定时快照,保了一命,所幸资料也没丢,回滚到了两天前

Linux终端命令着色ls等

创建别名,让ls --color=auto成为默认行为 alias ls="ls --color=auto" 标签: ls  

Folderclone转存Google Drive共享文件

项目地址:https://github.com/Spazzlo/folderclone 把共享链接转存到团队盘,没有的可以添加团队盘https://leoyum.com/513.html 安装folderclone Linux: CentOS: yum update yum install python3-pip git screen -y git clone https://github.com……

Linux一键脚本

bench wget -qO- bench.sh | bash   Superbench wget -qO- git.io/superbench.sh|bash   LemonBench curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast TCP wget dl.leoyum.com/linux/bbr/tcpx.sh   LNMP wget http://soft.vp……

使用rclone挂载OneDrive网盘

安装rclone: Linux环境:curl https://rclone.org/install.sh | sudo bash 配置rclone: rclone config 以下是配置过程 [root@MC ~]# rclone config#配置 2020/03/16 22:02:44 NOTICE: Config file "/root/.config/rclone/rclone.conf" not……

手动安装Nginx+PHP

在阿里香港试用机(T5)上直接用yum安装,不用编译,省去CPU的消耗 yum remove httpd php* yum install nginx yum install php php-fpm yum install php-gd php-mysql php-mbstring php-xml php-mcrypt  php-imap php-odbc php-pear php -xmlrpc ……

yum:There are unfinished transactions remaining.

There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try remo……

Top