• BLOG
  • ARCHIVES
  • ABOUT
  • LINKS
  • GUESTBOOK
  • ssh 免密码登陆

    March 31, 2016
    linux上没有xshell之类很好的密码保存的工具,索性把登陆方式全部改为密钥登陆了。ssh-keygen #文件名可以改一下,这边改的是~/.ssh/ssh-key, 为了和git的key区分开来公钥导入到vpsssh-copy-id -i ~/.ssh/ssh-key.pub root@xxx -p port因为创建的密钥名字不是默认的,所以需要在本地加上vim /etc/ssh/ssh_config #最后加上 IdentityFile ~/.ssh/id_rsa IdentityFile ...
    Read more »
  • Mysql 修改为 UTF-8编码

    March 30, 2016
    Mysql默认的编码没有全部都是utf-8.中文之类的有点问题。每次都是去网上搜,又有很多都是mysql5.1的改法,会导致Mysql无法启动(所以在这边记录一下Mysql 5.1[mysqld] default-character-set=utf8 [client] default-character-set=utf8Mysql 5.5[mysqld] character-set-server=utf8 collation-server=utf8_general_ci [client] def...
    Read more »
  • Flask 部署在 tornado 和 nginx 上

    March 30, 2016
    没测试过性能。测试用。记录一下。uwsgi配置起来太麻烦了。Flask app目录同级创建一个 tornado_server.py。内容如下:#coding=utf-8 #!/usr/bin/python from tornado.wsgi import WSGIContainer from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop from manage import app http_serv...
    Read more »
  • 初始化MYSQL犯了一个低级错误

    March 30, 2016
    // return 0 is ok int executesql(MYSQL *conn, const char *sql) { if(mysql_real_query(conn, sql, strlen(sql))) { sleep(20); conn = NULL; return 1; } else { return 0; } } //return 0 is ok int init_mysql_conn(...
    Read more »
  • 给网站上了SSL

    March 1, 2016
    发现用了hexo之后不太写东西了,因为发布起来太麻烦了。。基本没有什么访问量,所以直接上了lighttpd和typecho,把原来hexo的东西转移过来了。ssl是namecheap申请的,active的时候网站timeout了,通过support才把ssl激活。激活之后会收到一些文件。blog_messyidea_com.ca-bundle blog_messyidea_com.crt blog_messyidea_com.p7b生成ssl-bundle.crtcat blog_messyid...
    Read more »
  • PAGE 4 OF 9
    PREV PAGE NEXT PAGE

© 2025 Mess Ideas.

The theme is apollo, Powered by Typecho .