centos7 选定默认启动内核,及删除无用内核

#使用cat /boot/grub2/grub.cfg |grep menuentry 查看系统可用内核
[root@bigapp-slave27 ~]# cat /boot/grub2/grub.cfg |grep menuentry
if [ x”${feature_menuentry_id}” = xy ]; then
menuentry_id_option=”–id”
menuentry_id_option=””
export menuentry_id_option
menuentry ‘CentOS Linux (3.10.0-514.16.1.el7.x86_64) 7 (Core)’ –class centos –class gnu-linux –class gnu –class os –unrestricted $menuentry_id_option ‘gnulinux-3.10.0-327.el7.x86_64-advanced-6f5840d0-55ac-4d3b-899b-61c0297c5347’ { (更多…)

Linux下端口映射工具rinetd

Linux下简单好用的工具rinetd,实现端口映射/转发/重定向

软件下载
wget https://github.com/samhocevar/rinetd/releases/download/v0.73/rinetd-0.73.tar.gz

解压安装
tar -xvzf rinetd-0.73.tar.gz
cd rinetd-0.73
yum install -y gcc gcc-c++ autoconf automake build-essential 安装依赖
./bootstrap
./configure
make && make install
rinetd –version 查看安装结果
(更多…)

CentOS 7 利用安装源安装Deluge

1.下载并安装Deluge

wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm

$ yum -y install epel-release

对于RHEL6/CentOS 6(复制/粘贴):
$ rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm

对于RHEL/CentOS 7(复制/粘贴):
$ rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

(更多…)

Linux shell加密解密方法(gzexe、shc)

我们写的shell脚本里面通常会包含帐号密码等信息或者你不想让别人看到的信息,那么把写好的shell脚本进行简单的加密显得有些必要了。常用的shell加密方法有两种,一种是通过gzexe加密,另一种是通过shc加密。
gzexe是用来压缩执行文件的程序。当您去执行被压缩过的执行文件时,该文件会自动解压然后继续执行,和使用一般的执行文件相同。shc是一个专业的加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件,这个办法很好的解决了脚本中含有IP、密码等不希望公开的问题。下面我将为大家演示这两个工具的使用

一、系统自带g的zexe

gzexe无需安装任何软件,是linux自带的功能,只需要执行命令即可,我们可以利用wget将文件放在root目录下,也可以通过sftp放在root目录,也可以直接利用cd命令选择任意目录 (更多…)

Aria2+AriaNg+oneindex+rclone+onedrive

oneindex
# cd /var/www/html/
# git clone https://github.com/donwa/oneindex.git
Cloning into 'oneindex'...
remote: Counting objects: 222, done.
remote: Compressing objects: 100% (126/126), done.
remote: Total 222 (delta 117), reused 188 (delta 87), pack-reused 0
Receiving objects: 100% (222/222), 51.07 KiB | 25.00 KiB/s, done.
Resolving deltas: 100% (117/117), done.
# mv oneindex/.git ./ && rm -rf oneindex
# git reset --hard

(更多…)