Create a phpmyadmin application which preconfiged to connect a localhost mysql service. You can use this service to login to a local mysql service.
Archive | How To
如何在基于ARM的EC2实例上安装Docker Compose
目前AWS推出了2021年6月前的EC2-t4g实例免费试用活动,由于t4g实例是基于ARM64架构,所以需要额外的一些步骤来安装Docker Compose
Debian9升级Debian10
查看当前版本
1 |
lsb_release -a |
升级当前系统
1 2 3 4 5 |
sudo apt update sudo apt upgrade sudo apt full-upgrade sudo apt --purge autoremove sudo reboot |
更改source到buster
1 2 3 4 5 6 |
sudo cp -v /etc/apt/sources.list /root/ sudo cp -rv /etc/apt/sources.list.d/ /root/ sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* ### see updated file now ### cat /etc/apt/sources.list |
升级系统
1 2 3 |
sudo apt update sudo apt full-upgrade sudo reboot |
查看新系统版本
1 2 |
uname -r lsb_release -a |
清理系统
1 |
sudo apt --purge autoremove |
更新php版本到php7.3
1 2 |
a2dismod php7.2 a2enmod php7.3 |
如何在Docker中运行v2ray
如何在Docker中运行v2ray
安装Docker
安装依赖
1 |
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common |
安装Key
1 |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - |
添加源
1 |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" |
安装docker-ce
1 2 |
apt-get update apt-get install docker-ce docker-ce-cli containerd.io |
测试
1 |
docker run hello-world |
输出
1 2 |
Hello from Docker! This message shows that your installation appears to be working correctly. |
解决Apache占用443端口
查询哪个程序占用了443端口
1 |
netstat -pntl | grep 443 |
显示为apache2占用
1 |
tcp6 0 0 :::443 :::* LISTEN 6836/apache2 |