您的位置:首页 > 其它

阿里云使用问题汇总

2018-01-16 09:43 274 查看
配置mysql,tomcat开机自动启动

# apt-get install sysv-rc-conf
# sysv-rc-conf //打开了命令行方式的自启动服务管理界面:


用鼠标点击,也可以用键盘方向键定位,用空格键选择, “X”表示开启该服务。用Ctrl+N翻下一页,用Ctrl+P翻上一页,用Q退出。

也可以用命令:

# sysv-rc-conf --level 2345 mysql off


http://blog.csdn.net/chszs/article/details/49469655

一、MySQL

mysql “ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded”


版本 mysql 5.7,解决

root#~:sudo su
root#~:/etc/init.d/mysql stop
root#~:mysqld_safe --skip-grant-tables &
root#~:mysql -uroot
mysql->use mysql;
mysql->update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';
//将 123qwe 修改为你自己的新密码
mysql->update user set plugin="mysql_native_password";
mysql->flush privileges;
mysql->quit;
root#~/etc/init.d/mysql stop
root#~kill -9 $(pgrep mysql)
root#~/etc/init.d/mysql start
root#~mysql -u root -p


http://blog.csdn.net/xinliuqianxue/article/details/52156568

https://stackoverflow.com/questions/37879448/mysql-fails-on-mysql-error-1524-hy000-plugin-auth-socket-is-not-loaded

https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socket

执行 gunicorn -b 0.0.0.0:80 manage:app 时报错:

Gunicorn Connection in Use: (‘0.0.0.0’,80)

解决:kill -9 $(lsof -i:80 -t) 2> /dev/null

https://stackoverflow.com/questions/16756624/gunicorn-connection-in-use-0-0-0-0-5000

http://blog.csdn.net/raptor/article/details/8681357

解决Linux关闭终端(关闭SSH等)后运行的程序自动停止

http://ian.wang/220.htm

https://www.cnblogs.com/bohaoist/p/4965103.html

http://blog.csdn.net/gatieme/article/details/52777721
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: