目录
踩坑一:"Unable to require openssl"
踩坑二:"undefind method",Psych:Module"
踩坑一:"Unable to require openssl"
ERROR: While executing gem... (Gem::EXception)
Unable to require openssl,install OpenSSL and rebuild ruby (preferred) or use non-HTTPS source
解决步骤:
1. yum install openssl-devel -y 2. 在ruby安装包/root/ruby-2.4.1/ext/openssl,执行ruby ./extconf.rb 3.执行make 若出现make: *** No rule to make target `/include/ruby.h', needed by `ossl.o'. Stop.; 在Makefile顶部中的增加top_srcdir = ../.. 4.执行make install
踩坑二:"undefind method",Psych:Module"
原因为psych版本过低
gem install psych -v 3.3.2
踩坑三:访问oxidized,浏览器返回500
nginx 查看日志 => (13: Permission denied),failed (13: Permission denied) 失败(13:权限被拒绝)解决
1、查看nginx启动用户和使用用户是否一致
ps aux | grep nginx