Ganky 发布的文章

参考:https://registry.hub.docker.com/r/tznb/oray

1、花生壳根据MAC地址生成SN序列号

2、Docker限制了MAC头,范围在:开始MAC 00:0C:29:00:00:00 结束 00:0C:29:ff:ff:ff

可在这里自动生成MAC地址:https://www.jisuan.mobi/pBNz13N3Nmm6HyWW.html

3、运行容器(系统没有镜像会自动下载)

docker run -dit --name "oray" --restart=always --mac-address "00:0C:29:4F:39:5C" tznb/oray:1.0

4、进入Docker容器,查看序列号

docker exec -it oray bash
phddns status

5、更改步骤3的容器名称(oray)和MAC地址,即可实现多开

1.安装ssh并启动

yum -y install openssh-server
systemctl start sshd

2.修改 /etc/ssh/sshd_config 配置信息

去掉如下注释
Port 22
ListenAddress 0.0.0.0
ListenAddress ::
Permitrootlogin yes

GSSAPICleanupCredentials no 改为 GSSAPICleanupCredentials yes

3.重启ssh

/usr/sbin/sshd -D

4.设置容器root密码

passwd root

如果没有passwd指令则还需要安装

yum -y install passwd

5.最后如果有映射22端口则可尝试ssh进入CentOS

转自:https://www.jianshu.com/p/820ab34e916f

1.安装

apt-get install cron

2.编辑

crontab  -e

3.启动、关闭与重启

/etc/init.d/cron start
/etc/init.d/cron stop
/etc/init.d/cron restart

4.查看任务

 crontab  -l

5.举例

0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ #每星期早上5点备份数据
*/10 * * * * wget --output-document=/dev/null http://www.baidu.com #每10分钟刷一下百度首页并且不保留数据

1.安装

apt install shadowsocks-libev

2.修改"/etc/shadowsocks-libev/config.json"配置

{
    "server":["::"],
    "mode":"tcp_and_udp",
    "server_port":8388,
    "local_port":1080,
    "password":"mimamima",
    "timeout":600,
    "method":"aes-256-cfb"
}

3.启动

/etc/init.d/shadowsocks-libev start    # for sysvinit, or
systemctl start shadowsocks-libev      # for systemd

1.获取root权限

su -

2.安装vim

apt install vim

如果装系统时没有安装ssh还要安装ssh

apt install ssh

3.root权限修改ssh配置

vim /etc/ssh/sshd_config
PermitRootLogin yes

4.重启ssh服务后即可用root登录

/etc/init.d/ssh restart