`
jrails
  • 浏览: 100862 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
社区版块
存档分类
最新评论
文章列表
# Preconfiguration setup shell> groupadd mysql shell> useradd -r -g mysql mysql # Beginning of source-build specific instructions shell> tar zxvf mysql-VERSION.tar.gz shell> cd mysql-VERSION shell> cmake . shell> make shell> make install # End of source-build specific instruction ...
来源 http://dev.mysql.com/doc/refman/5.1/zh/installing.html#quick-install 你必须执行的安装MySQL源码分发版的基本命令是: shell> groupadd mysql shell> useradd -g mysql mysql shell> gunzip < mysql-VERSION.tar.gz | tar -xvf - shell> cd mysql-VERSION shell> ./configure --prefix=/usr/local/mysql shel ...
Creating /etc/init.d/local sudo vi /etc/init.d/local This file is a shell script and it should start with: #!/bin/sh Making the file executable Make this file executable with: sudo chmod +x /etc/init.d/local link the new local file with Init We are going to use this script a System V init script ...
class SQLManager @params = nil @record = nil @columns = nil @orders = nil @groups = nil @conditions = nil @joins = nil @havings = nil @firsts = nil @lasts = nil @limit = nil @offset = nil @table_name = nil def initialize(record,init_params={}) if( ...
单数转复数 "abc".pluralize   ---> abcs 复数转单数 "abcs".singularize    ---> abc 转变类 "abcs".classify   --> Abc 下划线命名: 'UserRole'.underscore = user_role Title命名: 'UserRole'.titlecase = User Role module ActiveSupport Inflector.inflections do |inflect| inflect. ...
class SQLManager @params = nil @record = nil @columns = nil @orders = nil @groups = nil @conditions = nil @joins = nil @havings = nil @firsts = nil @lasts = nil @limit = nil @offset = nil @table_name = nil def initialize(record) @record = record @table_name = ...
Marshal.load(Marshal.dump(arr))

ICON 收藏

经常用的几个Icon网站,虽然不是新鲜贴,但还是放了出来 1、iconfinder,http://www.iconfinder.com/,比较全面的ICON网站,有154600多个图标,内容相当丰富; 2、findicons,http://findicons.com/,名字和前面的差不多,号称“全球所以的图片都在您指尖”,这个口号霸气。 3、iconpng,收录21372个图标,http://www.iconpng.com/ 4、easyicon,收录4万多个图标,http://www.easyicon.cn/ 5、softicon,对分类做的比较好,http://www.softic ...

MySQL复制

http://dev.mysql.com/doc/refman/5.1/zh/replication.html
下载文件  ....
请下载文档
http://wiki.ubuntu.com.cn/index.php?title=PostfixBasicSetupHowto&variant=zh-cn#.E5.AE.89.E8.A3.85_Postfix   http://wiki.ubuntu.org.cn/IRedMail
Nginx 配置 SSL 证书 + HTTPS 站点小记今天给几个站点配置了认证的 ssl 证书,但是苦于自己技术不过关,或是知识不足,导致还有那么一小点 Bug 的出现,这里就我配置 HTTPS 站点的经验来总结一下吧。一、什么是 SSL 证书,什么是 HTTPS 网站?SSL证书是数字证书的一种,类似于驾驶证、护照和营业执照的电子副本。SSL证书通过在客户端浏览器和Web服务器之间建立一条SSL安全通道(Secure socket layer(SSL)安全协议是由Netscape Communication公司设计开发。该安全协议主要用来提供对用户和服务器的认证;对传送的数据进行加密和隐藏; ...
require 'openssl' key = OpenSSL::PKey::RSA.new(1024) digest = OpenSSL::Digest::SHA1.new() issu = sub = OpenSSL::X509::Name.new() sub.add_entry('O', 'Organization') sub.add_entry('OU', 'Project Implementation') sub.add_entry('CN', 'Ruby OpenSSL') cer = OpenSSL::X509::Certificate.new() ...
require 'openssl' pri_key = OpenSSL::PKey::RSA.new(2048) pub_key = pri_key.public_key paw = pub_key.public_encrypt('123456') p paw paw2 = pri_key.private_decrypt(paw) p paw2
Global site tag (gtag.js) - Google Analytics