1.通过之前的小鸡登录ssh srv1*.blue.kundencontroller.de ,passwd 修改ssh密码
2.设置nat64,让小鸡可以访问ipv4
echo -e “nameserver 2a01:4f8:c2c:123f::1\nnameserver 2a00:1098:2c::1\nnameserver 2a00:1098:2b::1” > /etc/resolv.conf
3.编辑/etc/yum/pluginconf.d/fastestmirror.conf,修改enable=0 ,yum update
4.安装ttyd,可以用webssh方式登录小鸡。(套cloudflare)
#下载ttyd
wget -O ttyd https://github.com/tsl0922/ttyd/releases/download/1.6.0/ttyd_linux.x86_64
#添加执行权限
chmod +x ttyd
#移动目录
mv ttyd /usr/local/ttyd/
创建一个ttyd.service文件:vi /usr/lib/systemd/system/ttyd.service内容如下:
[Unit]
Description=ttyd
After=network.target
[Service]
ExecStart=/usr/local/ttyd/ttyd -c usrname:password -p 2087 -6 -S -C /usr/local/ttyd/cloudflare.pem -K /usr/local/ttyd/cloudflare.key bash
[Install]
WantedBy=multi-user.target
然后 systemctl enable ttyd
安装openlitespeed
yum install epel-release
rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
yum install openlitespeed
yum remove lsphp73-mysqlnd
yum install lsphp73-mysqlnd
yum install lsphp73 lsphp73-common lsphp73-gd lsphp73-process lsphp73-mbstring lsphp73-xml lsphp73-mcrypt lsphp73-pdo lsphp73-imap lsphp73-json
修改/usr/local/lsws/admin/conf/admin_config.conf,将其中的端口改为8443(支持cloudflare,ip*改为[ANY]支持ipv6)
可选:将webadmin.crt webadmin.key 替换为cloudflare的证书
登录后台(初始密码获取:cat /usr/local/lsws/adminpasswd),管理控制台设置-监听器-IP地址[ANY] IPv6
监听器Default IP地址[ANY]
监听器Defaultssl IP地址[ANY]
安装mysql 5.7
rpm -ivh https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
yum install mysql-community-server
systemctl start mysqld
chown -R mysql:mysql /var/lib/mysql 这个步骤很重要,权限加上。
grep ‘temporary password’ /var/log/mysqld.log 获取root的临时密码
mysql -uroot -p 登录mysql
ALTER USER ‘root’@’localhost’ IDENTIFIED BY ”; 修改root密码
安装phpmyadmin
在Example的html目录下安装phpmyadmin,记得需要设置phpmyadmin目录的归属chown nobody:nobody 不然没有写权限。可以通过setup配置 config.inc.php