sudo apt install mysql-server -y
sudo mysql_secure_installation
注意事项:
sudo service mysql restart
sudo service mysql status
默认无密码,只能通过本地连接
sudo mysql -u root
SELECT user, host FROM mysql.user WHERE user='root';
CREATE USER 'root'@'%' IDENTIFIED WITH 'mysql_native_password' BY 'your_password';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
[mysqld]
bind-address = 0.0.0.0
sudo ufw allow 3306/tcp
sudo ufw reload
mysql -h 192.168.110.16 -u root -p
show databases;
然后输入 your_password(输入字符不可见,如如后直接回车即可)
注意事项,:
export https_proxy=http://192.168.110.10:7897 http_proxy=http://192.168.110.10:7897 all_proxy=socks5://192.168.110.10:7897
export https_proxy= http_proxy= all_proxy=
sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
vim ~/.zshrc
# 在文件末尾添加以下内容
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# 修改默认zsh
chsh -s $(which zsh)
# 启用zsh
source ~/.zshrc
# 查看当前shell
echo $SHELL
# 安装宝塔
wget -O install.sh https://download.bt.cn/install/install_lts.sh && sudo bash install.sh ed8484bec
# 运行bt修改你的信息
bt