rubygems

Compile Passenger Native Support with RVM for different Ruby versions

岁酱吖の 提交于 2020-08-11 08:47:58
问题 Clean installation on CentOS 7. Installed RVM in ~/.rvm as new user Passenger All sites hosted are owned by Apache user Installed RVM with 2 rubies: 1.9.3-p551 (default) 2.3.0 I installed and compiled Passenger as a gem in the default Ruby 1.9.3. However, I keep getting these entries in my /var/log/httpd/error_log on the sites that use Ruby 2.3.0: App 12909 stdout: App 12909 stderr: [passenger_native_support.so] trying to compile for the current user (apache) and Ruby interpreter... App 12909

Compile Passenger Native Support with RVM for different Ruby versions

两盒软妹~` 提交于 2020-08-11 08:47:08
问题 Clean installation on CentOS 7. Installed RVM in ~/.rvm as new user Passenger All sites hosted are owned by Apache user Installed RVM with 2 rubies: 1.9.3-p551 (default) 2.3.0 I installed and compiled Passenger as a gem in the default Ruby 1.9.3. However, I keep getting these entries in my /var/log/httpd/error_log on the sites that use Ruby 2.3.0: App 12909 stdout: App 12909 stderr: [passenger_native_support.so] trying to compile for the current user (apache) and Ruby interpreter... App 12909

Compile Passenger Native Support with RVM for different Ruby versions

我们两清 提交于 2020-08-11 08:46:12
问题 Clean installation on CentOS 7. Installed RVM in ~/.rvm as new user Passenger All sites hosted are owned by Apache user Installed RVM with 2 rubies: 1.9.3-p551 (default) 2.3.0 I installed and compiled Passenger as a gem in the default Ruby 1.9.3. However, I keep getting these entries in my /var/log/httpd/error_log on the sites that use Ruby 2.3.0: App 12909 stdout: App 12909 stderr: [passenger_native_support.so] trying to compile for the current user (apache) and Ruby interpreter... App 12909

centos7搭建redis集群

陌路散爱 提交于 2020-08-08 09:39:26
搭建环境 系统: centos 7.4 服务器金山云 安装ruby环境 [root@jsy-bj-test00 ~]# yum install -y ruby rubygems 复制6份redis服务 [work@jsy-bj-test00 ~]$ cp -rp redis redis1 [work@jsy-bj-test00 ~]$ cp -rp redis redis2 [work@jsy-bj-test00 ~]$ cp -rp redis redis3 redis配置文件修改 #六个节点需做如下更改 [work@jsy-bj-test00 ~]$ vim redis1/etc/redis.conf [work@jsy-bj-test00 ~]$ sed -i 's/port 6379/port 6380/g' redis5/etc/redis.conf #修改端口 port 6380 #打开注释,开启集群模式 cluster-enabled yes #集群的配置文件 cluster-config-file nodes-6380.conf [work@jsy-bj-test00 ~]$ sed -i 's/cluster-config-file nodes-6379.conf/cluster-config-file nodes-6380.conf/g' redis5/etc

redis主从全分布集群(单机模拟)

痞子三分冷 提交于 2020-08-08 05:17:10
全分布式redis集群搭建:单节点多实例 1. 准备:redis-3.0.4.tar.gz redis-3.3.0.gem 2 redis-cluster目录下解压redis 3.0 : # tar xf redis.....gz 3 redis目录下make命令编译拷贝bin至 /opt/sxt/redis/下 # make && make PREFIX=/opt/sxt/redis install 成功后会有哨兵显示 4 测试 是否成功 # re+table 5 安装rubby编译环境 # yum -y install ruby rubygems 6 redis-cluster 目录下安装 redis gem 模块: # gem install --local redis-3.3.0.gem 8 创建文件目录、主从节点并匹配端口(已完成): redis集群 3.x版本 物理节点1个 指定3个主节点端口为7000、7001、7002 对应的3个从节点端口为7003、7004、7005 mkdir cluster-test cd cluster-test mkdir 7000 7001 7002 7003 7004 7005 9 创建配置文件redis.conf(启集群模式: 3.0 支持单机集群,但必须在配置文件中说明) (已完成) 指定不冲突的端口 及 <对应端口号> 文件内容

CentOS各个版本镜像下载地址

不想你离开。 提交于 2020-08-06 07:51:44
CentOS各个版本镜像下载地址 # CentOS7.6 下载地址 # CentOS-7-x86_64-DVD-1810.iso CentOS 7.6 DVD 版 4G http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso # CentOS-7-x86_64-Everything-1810.iso CentOS 7.6 Everything版 10G http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-Everything-1810.iso # CentOS-7-x86_64-LiveGNOME-1810.iso CentOS 7.6 LiveGNOME版 1G 桌面版 http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1810.iso # CentOS-7-x86_64-LiveKDE-1810.iso CentOS 7.6 LiveKDE版 2G 桌面版 http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64

How can I remove default version of bundler?

这一生的挚爱 提交于 2020-08-04 02:34:29
问题 I tried to change default bundle version but it getting updated with 2 default version. How can I modify to single default? $ gem list bundler *** LOCAL GEMS *** bundler (2.0.1, default: 1.16.6, default: 1.16.2) If I do gem uninstall not removing defaults, $ gem uninstall bundler Successfully uninstalled bundler-2.0.1 $ gem list bundle *** LOCAL GEMS *** bundler (default: 1.16.6, default: 1.16.2) How can I set (like the below) default as single version? bundler (2.0.1, default: 1.16.6) 回答1: I

How can I remove default version of bundler?

混江龙づ霸主 提交于 2020-08-04 02:28:33
问题 I tried to change default bundle version but it getting updated with 2 default version. How can I modify to single default? $ gem list bundler *** LOCAL GEMS *** bundler (2.0.1, default: 1.16.6, default: 1.16.2) If I do gem uninstall not removing defaults, $ gem uninstall bundler Successfully uninstalled bundler-2.0.1 $ gem list bundle *** LOCAL GEMS *** bundler (default: 1.16.6, default: 1.16.2) How can I set (like the below) default as single version? bundler (2.0.1, default: 1.16.6) 回答1: I

What exactly is a gem native extension?

半世苍凉 提交于 2020-08-01 09:34:29
问题 I feel that a native extension is like libraries that you should install onto your system before trying to install those gems, which depend on the native extensions. Like the ImageMagic library. Is that correct? Is there something else that we should know about native extensions? 回答1: A gem native extension might link to a separate library that needs to be pre-installed, and RMagick is an example of that. However, the term really just means "includes some code that needs to be compiled for

centos7搭建redis集群

陌路散爱 提交于 2020-07-27 05:16:40
搭建环境 系统: centos 7.4 服务器金山云 安装ruby环境 [root@jsy-bj-test00 ~]# yum install -y ruby rubygems 复制6份redis服务 [work@jsy-bj-test00 ~]$ cp -rp redis redis1 [work@jsy-bj-test00 ~]$ cp -rp redis redis2 [work@jsy-bj-test00 ~]$ cp -rp redis redis3 redis配置文件修改 #六个节点需做如下更改 [work@jsy-bj-test00 ~]$ vim redis1/etc/redis.conf [work@jsy-bj-test00 ~]$ sed -i 's/port 6379/port 6380/g' redis5/etc/redis.conf #修改端口 port 6380 #打开注释,开启集群模式 cluster-enabled yes #集群的配置文件 cluster-config-file nodes-6380.conf [work@jsy-bj-test00 ~]$ sed -i 's/cluster-config-file nodes-6379.conf/cluster-config-file nodes-6380.conf/g' redis5/etc