分享页面
已经找到“” 的记录2710条
Ubuntu18.04系统如何安装cordova
 

Cordova 是用于使用HTML,CSSJS构建移动应用的平台。那么在ubuntu18.04中如何安装cordova呢?本文给出详细说明。

1.首先更新软件列表

sudo apt-get update

2.安装node.jsnpm

sudo apt-get install nodejs

sudo apt-get install npm

3.安装cordova

sudo npm install -g cordova

4.查看cordova版本

cordova -v

y

安装完成

Ubuntu18.04系统安装elasticsearch
 

elasticsearch是一个开源的分布式、RESTful 风格的搜索和数据分析引擎。在Ubuntu18.04中如何安装elasticsearch?本文将对此问题进行说明。

1.首先更新软件列表

sudo apt-get update

2.然后安装java环境

sudo apt-get install openjdk-8-jre

sudo apt-get install openjdk-8-jdk

3.安装成功之后,配置环境参数

sudo vi /etc/profile

将下面的内容加入 /etc/profile 文件顶部

export JAVA_HOME=/usr/java/jdk1.8.0_144

export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH

export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

export JRE_HOME=$JAVA_HOME/jre

保存退出

4.重启或者

source /etc/profile

使配置生效

5.获取elasticsearch安装包密钥

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

6.安装apthttps协议转换工具

apt-get install apt-transport-https

7.添加安装源到本地

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

8.更新软件列表并安装elasticsearch

sudo apt-get update && sudo apt-get install elasticsearch

9.重新加载配置

sudo /bin/systemctl daemon-reload

10.设置服务开机启动

sudo /bin/systemctl enable elasticsearch.service

11.启动服务

sudo systemctl start elasticsearch.service

12.测试

curl http://127.0.0.1:9200

安装成功

Ubuntu18.04系统如何安装ClamAV
 

ClamAV是一个在命令行下查毒软件,因为它不将杀毒作为主要功能,默认只能查出您计算机内的病毒。在ubuntu18.04中如何安装ClamAV呢?本文给出详细说明。

1.首先更新软件列表

sudo apt update

2.安装ClamAV

sudo apt install clamav

3.测试是否安装成功

clamscan -V

Ubuntu18.04系统如何安装cherrypy
 

cherryPy是一个基于Python的面向对象的HTTP框架那么在ubuntu18.04中如何安装cherrypy呢?本文给出详细说明。

1.首先确认安装了python3

说明:一般linux系统默认都有安装python环境,包括python2python3,在命令行中python默认指的是python2python2已经接近淘汰,但由于linux系统环境中还有大量基于python2的软件,因此在linux系统中还保留着python2。目前推荐使用python3

2.更新软件列表

sudo apt-get update

3.安装python3-pip

sudo apt install python3-pip

4.安装requests

sudo pip3 install cherrypy

5.编写测试程序

vi hello.py

写入测试程序

import cherrypy

class HelloWorld:

@cherrypy.expose

def hello(self):

return ‘hello’

cherrypy.quickstart(HelloWorld())

6.运行

python3 hello.py

Ubuntu18.04系统如何安装c 环境
 

C C语言的继承,它是一种使用非常广泛的计算机编程语言。那么在ubuntu18.04系统中如何安装c 环境呢?本文给出详细说明。

1.首先更新软件列表

sudo apt-get update

2.安装gccg

sudo apt-get install gcc

sudo apt-get install g  

3.编写测试代码

vi hello.cpp

写入以下内容

#include <iostream>

using namespace std;

int main()

{

cout << "Hello, world!" << endl;

return 0;

}

保存退出

4.编译代码

g hello.cpp -o hello

生成了名为hello的可执行文件

5.运行文件,测试安装完成

./hello

Ubuntu18.04系统如何安装bottle
 

bottle是一个轻巧的Python WSGI Web框架。单一文件,只依赖 Python标准库。那么在ubuntu18.04中如何安装bottle呢?本文给出详细说明。

1.首先确认安装了python3

说明:一般linux系统默认都有安装python环境,包括python2python3,在命令行中python默认指的是python2python2已经接近淘汰,但由于linux系统环境中还有大量基于python2的软件,因此在linux系统中还保留着python2。目前推荐使用python3

2.更新软件列表

sudo apt-get update

3.安装python3-pip

sudo apt-get install python3-pip

4.安装bottle

sudo pip3 install bottle

5.创建一个bottle程序

vi hello.py

在其中写入

from bottle import route,run
@route('/')

def hello():

return '<h1>hello bottle</h1>'

run(host='0.0.0.0',port=8000,debug=True)

保存退出

 

6.运行hello.py

python3 hello.py

7.打开浏览器输入主机ip8000测试

安装成功

Ubuntu18.04系统如何安装BeautifulSoup库
 

Beautiful Soup 是一个可以从HTMLXML文件中提取数据的Python那么在ubuntu18.04中如何安装BeautifulSoup呢?本文给出详细说明。

1.首先确认安装了python3

说明:一般linux系统默认都有安装python环境,包括python2python3,在命令行中python默认指的是python2python2已经接近淘汰,但由于linux系统环境中还有大量基于python2的软件,因此在linux系统中还保留着python2。目前推荐使用python3

2.更新软件列表

sudo apt-get update

3.安装python3-pip

sudo apt install python3-pip

4.安装BeautifulSoup

sudo pip3 install BS4

5.查看是否安装成功

pip3 list | grep beautifulsoup

Ubuntu18.04系统如何安装ansible
 

ansible是一种自动化运维工具。在ubuntu18.04中如何安装ansible工具呢?本文给出详细说明。

1.首先添加ansible存储库

sudo apt-add-repository ppa:ansible/ansible

2.更新软件列表

sudo apt update

3.安装ansible

sudo apt install ansible

4.测试是否安装成功

ansible --version

Ubuntu18.04系统如何安装angular
 

angular诞生于2009,是一款优秀的前端JS框架。那么在ubuntu18.04中如何安装angular呢?本文给出详细说明。

1.首先更新软件列表

sudo apt-get update

2.安装node.jsnpm

sudo apt-get install nodejs

sudo apt-get install npm

3.安装angular

sudo npm install -g @angular/cli

4.查看angular版本

ng version

提示node.js版本过低

5.安装nodejs版本管理工具

sudo npm install n -g

6.安装最新版本的node.js

sudo n stable

7.再次查看angular版本

Ubuntu18.04系统如何安装anaconda
 

anaconda是一个开源的Python发行版本。在ubuntu18.04中如何安装anaconda呢?本文给出详细说明。

1.首先更新软件列表

sudo apt update

2.下载anaconda安装脚本

Wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2020.02-Linux-x86_64.sh

3.测运行脚本进行安装,途中如果有选项的话,一律选择yes

 

4.安装完后修改环境参数

sudo vi ~/.bashrc

增加以下内容

export PATH="/home/xupp/anaconda3/bin:$PATH"

保存退出后,重新加载环境参数

source ~/.bashrc

5.启动python3

python3

安装完成

扫码添加专属客服

扫码关注公众号