Fork me on GitHub

Ubuntu安装Python2.7,nodejs,Redis

安装Python2.7

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt-get update
sudo apt-get install python2.7

$ sudo apt-get install python-pip

 

安装nodejs

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

推荐如下安装方式

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

 

NPM镜像使用方法:
1.通过config命令
npm config set registry https://registry.npm.taobao.org
npm info underscore (如果上面配置正确这个命令会有字符串response)
2.命令行指定
npm --registry https://registry.npm.taobao.org info underscore
3.编辑 ~/.npmrc 加入下面内容
registry = https://registry.npm.taobao.org

 

root账号下运行Chrome

cd /opt/google/chrome

gedit google-chrome

 

安装Redis
$ wget http://download.redis.io/releases/redis-4.0.1.tar.gz


$ tar xzf redis-4.0.1.tar.gz


$ cd redis-4.0.1


$ make


Run Redis with:
$ src/redis-server 1>&2 2>/dev/null &


Run Redis Command
$ src/redis-cli

 

posted @   ZHK的博客  阅读(1283)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core内存结构体系(Windows环境)底层原理浅谈
· C# 深度学习:对抗生成网络(GAN)训练头像生成模型
· .NET 适配 HarmonyOS 进展
· .NET 进程 stackoverflow异常后,还可以接收 TCP 连接请求吗?
· SQL Server统计信息更新会被阻塞或引起会话阻塞吗?
阅读排行:
· 本地部署 DeepSeek:小白也能轻松搞定!
· 传国玉玺易主,ai.com竟然跳转到国产AI
· 自己如何在本地电脑从零搭建DeepSeek!手把手教学,快来看看! (建议收藏)
· 我们是如何解决abp身上的几个痛点
· 如何基于DeepSeek开展AI项目
历史上的今天:
2015-12-01 C++ 函数
点击右上角即可分享
微信分享提示