lnmp vhost add
主域名:www.wangdake.top
更多域名:wangdake.top
网站目录:/home/wwwroot/www.wangdake.top
Allow Rewrite rule:y typecho
Enable PHP Pathinfo:n
Allow access log:n
Enable IPv6:y
添加数据库和用户:y
Add SSL Certificate:y 2
Using 301 to Redirect HTTP to HTTPS:y

yum install screen -y
screen -S lnmp
wget https://soft.lnmp.com/lnmp/lnmp1.9.tar.gz -O lnmp1.9.tar.gz && tar zxf lnmp1.9.tar.gz && cd lnmp1.9 && ./install.sh lnmp
MySQL:5.5.62
Enable InnoDB:y
PHP:7.4.30

Install lnmp takes 71 minutes.
Install lnmp V1.9 completed! enjoy it.

awk printf 不会插入换行符
获取WiFi连接设备MAC:hostapd_cli list_sta | awk 'NR>1{print $1}'
Read-only file system:mount -o remount,rw /
网络adb:adb connect ip_address:port
root vi无颜色:vi ~/.bashrc alias vi='vim'

查看centos版本:cat /etc/redhat-release
查看服务及状态:systemctl list-unit-files --type=service
查看已安装软件包:yum list installed
查看网线连接状态:cat /sys/class/net/eth0/operstate
查看网卡连接状态:ethtool eth0 | grep detected

vi /etc/systemd/system/obtain-ipv6.service

[Unit]
Description=Auto Obtain IPV6 Address
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/obtain-ipv6.sh start
ExecStop=/usr/bin/obtain-ipv6.sh stop
ExecReload=/usr/bin/obtain-ipv6.sh reload

[Install]
WantedBy=multi-user.target

systemctl enable obtain-ipv6.service
vi /usr/bin/obtain-ipv6.sh

#!/bin/bash
if [ $1 == "start" ];then
    dhclient -6 ens3
elif [ $1 == "STOP" ];then
    dhclient -6 -r
elif [ $1 == "reload" ];then
    dhclient -6 -r
    dhclient -6 ens3
fi

chmod u+x /usr/bin/obtain-ipv6.sh