阿里云使用问题汇总

9 篇文章 0 订阅

配置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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值