iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT service iptables save #保存iptables规则
Ubuntu/Debian
1 2
iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT iptables-save > /etc/iptables.up.rules #保存iptables规则
数据库授权
1 2 3 4
# mysql -uroot -p MySQL [(none)]> grant all privileges on db_name.* to db_user@'%' identified by 'db_pass'; #授权语句,特别注意有分号 MySQL [(none)]> flush privileges; MySQL [(none)]> exit; #退出数据库控制台,特别注意有分号
无法连接仓库:Command "git ls-remote -h -- git@github.com:mtrucc/ice-electron.git HEAD" returned status code 128: stdout: stderr: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.