阿里云安装Learning Locker

近期,在阿里云ECs上安装了Learning Locker系统,整个安装过程并非一帆风顺,主要遇到了安装脚本出错及无法访问Github等问题,在此将其进行整理和记录。安全教育平台官方网站

一、基本环境

硬件:双核,4G,60G硬盘的虚拟javascript主机

软件:因为以前用CentOS成功安装过,所以这次一开始使用的是CentOS7。不过由于当前官方首推Ubunutuÿ数据库系统0c;所以就更换成Ubuntu 20。

二、软件介绍

Learning Locker是一个开源的学习行为数据记录数数据库管理系统据库,官方网站是:learninglocker.net。大致介绍如下:

Learning Locker is aubuntu是什么操作系统 conlinux系统安装formant open sourshell怎么读ce Learning Record Store网络安全知识内容 (LRS) started in 2013 by HT2 Labs (now Learning Pool); a type of data repository designed to store learning activity statements generashell怎么读ted by xAPI (Tin Can) compliant learninlinux常用命令g activities. This website provides technical documentation for Learning Locker, for anything else please see the main websit数据库管理系统e.

三、安装方法

安装方法有两种:一是借助官方提供的安装脚shell本(http://docs.learn安全inglocker.net/guides-ilinux是什么操作系统nstalling/&#ubuntu和linux的区别xff09;,二是手工定制安装(http://docs.learninglocker.net/guides-custom-installation/)。由于安装所需的安装包比较多,网络安全内容怎么写而且有些安装包还需要指定初始用户配置,所以最安全、数据库系统的核心是最快捷的方式就是第一种。

四、安装过程

&#linux操作系统基础知识xff08;一&#xjavascript是干什么的ff09;登录服务器,切换成root身份,然后执行:

curl -o- -L https://raw.githubusercontent.com/LearningLocker/deployubuntu命令/mas数据库原理及应用ter/deployll.sh > deployll.sh && bash deployll.sh

或者

wget -qO depl弹性计算公式oylljavascript:void(0).sh https://raw.githubusercontent.com/LearningLocker/deploy/master/deployllubuntu怎么读.sh && bash deployll.sh

此时,会在当前目录下执行deployll.sh这个安装脚本文件。

&#ubuntu20.04安装教程xff08;二)在安装过程中,首先要安装一系列软件包,此时选择y或默认使用回车即可确认。一路回车下来,会发现在有些软件包哪里将由于下载慢而导致putty连接超时而中断。因此,需要设置putty的connection设置里的(0 to turn off)的值为30。以及服务端SSH配置里加入:Slinux操作系统基础知识erverAliveInterval=30

(三)接下来,就会遭遇到一个技术问题:数据库管理系统deployll.sh: line 740: nodejs: command not数据库系统概论第五版课后答案 found。详细安全工程师信息如下shelly-lanf1a;

deployll.sh: line 269: netstat: command not found
[LL] We require a path to install to and a path to symlink to. The reason for this is that the script can be re-run in order to update
cleanly. The path we'll ask you for is a base path for the releases to be installed to so if you select the default of:
/usr/local/learninglocker/releases
then we will create a sub-directory under here for every release and symlink the latest install to the final install path (which
the nginx config points at. This is so that roll-backs can be done easier and we can perform a complete install before finally
switching the nginx config over which'll minimise downtime on upgrades
[LL] What base directory do you want to install to? (Press 'enter' for the default of /usr/local/learninglocker/releases)
[LL] Directory '/usr/local/learninglocker/releases' doesn't exist - should we create it? [y|n] (Press enter for default of 'y')
[LL] What path should the release be symlinked to? (Press enter for the default of /usr/local/learninglocker/current)
[LL] I need a user to install the code under - what user would you like me to use? (press enter for the default of 'learninglocker')
[LL] User 'learninglocker' doesn't exist - do you want me to create them? [y|n] (enter for default of 'y')
[LL] Creating user 'learninglocker'....done!
[LL] MongoDB isn't installed - do you want to install it? [y|n] (press 'enter' for default of 'y')
[LL] Redis isn't installed - do you want to install it? [y|n] (press 'enter' for default of 'y')
[LL] Learning Locker ideally works best with ClamAV (anti virus software) installed but it is not an absolute requirement. Do you want to install it? [y|n] (press 'enter' for the default of 'y')
[LL] Installing node version: 10.x
deployll.sh: line 740: nodejs: command not found
[LL] Something went wrong in installing/updating nodejs. This is likely a fault in your apt config. Can't continue
# 

国内对此讨论很少,国外也不多,ubuntu20.04安装教程最终在Gi网络安全thub的Learning Locker的论坛上找到一个:“https://gilinux重启命令thub.com/LearningLocker/learninglocker/issues/1564”。里面涉及到可能的解决方法,以及在解决问题过网络安全工程师程中出现的新javascript怎么读问题,实际上看上去着实麻烦。但我这里还算幸运,此时需要编辑脚本文件代码。用vi编辑deployll.sh,定位到740行,可以看到附近有几处“nodejs --version”。问题就在于:“if-statement assumes nodejs exshell怎么读ecutable to be named价格弹性计算 nodejs - latest installed version v10.23.0 ha网络安全大赛s only executable node”。所以,需要将第一处无法识别的nodejshellfishs --version换成node --version即可。

ÿ点弹性计算08;四&#linux重启命令xff09;然后,继续做下来又会遇到一个“难问题”——“ fatal: unable to alinux是什么操作系统ccess ‘https://github.com/...’”,即Github无法访问。解决的方法有很多种&#xlinux是什么操作系统ff0c;比如:https://blog.csdn.net/weixin_4531709安全教育平台1/article/details/113409909。我是linux必学的60个命令ping了Githublinux重启命令,确认没有连接后,选择添加特定的IP到ho网络安全内容怎么写sts文件中解决的。需要添加哪些IP以及基本操作过程与下述文章基本相同,在此便不赘述了:https://blog.csdn.net/u013302168/article/details/120572007价格弹性计算

(五)接下来,就能顺利渡过难关,安装完毕ÿubuntu20.04安装教程1a;

阿里云安装Learning Locker