- 浏览: 2552169 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Debian System(1)Java and NodeJS Env
First of all, how I know I am using debian, ubuntu or centOS. Try this command
> cat /etc/issue
Debian GNU/Linux 6.0 \n \l
Yeah, I am using Debian 6.0
Download the debian iOS from here https://www.debian.org/
https://www.debian.org/distrib/
I plan to use the latest version.
1. Set up System
add to the sudoers
http://sillycat.iteye.com/blog/1154358
Check the IP
>/sbin/ifconfig -a
2. Install JAVA
It is really useful to follow this doc
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
>su root
>echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
>echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
>sudo apt-get update
>su carl
>sudo apt-get install oracle-java6-installer
>sudo apt-get install oracle-java7-installer
>sudo apt-get install oracle-java8-installer
>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
Switch the java version
>sudo update-alternatives --config java
>sudo update-alternatives --config javac
3. Install Mysql
> wget http://repo.mysql.com/mysql-apt-config_0.2.1-1debian7_all.deb
> sudo dpkg -i mysql-apt-config_0.2.1-1debian7_all.deb
> sudo apt-get update
> sudo apt-get install mysql-server-5.6
4. Install git
> wget https://www.kernel.org/pub/software/scm/git/git-2.3.4.tar.gz
> ./configure
> make prefix=/home/carl/tool/git-2.3.4 all
Error Message:
In file included from credential-store.c:1:0:
cache.h:21:18: fatal error: zlib.h: No such file or directory
compilation terminated.
Solution:
> sudo apt-get install build-essential
> sudo apt-get install zlib1g-dev
Error Message:
INDEX lib/
* tclsh failed; using unoptimized loading
MSGFMT po/bg.msg make[1]: *** [po/bg.msg] Error 127
make: *** [all] Error 2
Solution:
> sudo apt-get install gettext
Error Message:
fatal: Unable to find remote helper for 'https'
Solution:
> sudo apt-get install libcurl4-openssl-dev
> make prefix=/home/carl/tool/git-2.3.4 all
> make prefix=/home/carl/tool/git-2.3.4 install
Add the git to the /opt directory and add it to the path
Set the password Cache time
> git config --global credential.helper "cache --timeout=360000"
5. Install NodeJS Env
> wget http://nodejs.org/dist/v0.12.1/node-v0.12.1.tar.gz
> ./configure --prefix=/home/carl/tool/node-v0.12.1
make and install on the right location
6. Install memcache server
> wget http://www.memcached.org/files/memcached-1.4.22.tar.gz
> wget https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
unzip and install libevent first.
> ./configure --prefix=/home/carl/tool/memcached-1.4.22
make and install, adding to the path, start the server
> memcached -d -m 50 -p 11211 -u carl -l 0.0.0.0
7. Install RabbitMQ
Install the erlang first
> wget http://www.erlang.org/download/otp_src_17.4.tar.gz
>export LANG=C
configure and make and make install
Error Message:
configure: error: No curses library functions found
configure: error: /bin/bash '/home/phunware/install/otp_src_17.4/erts/configure' failed for erts
Solution:
> sudo apt-get install ncurses-dev
Install RabbitMQ
>wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-generic-unix-3.5.0.tar.gz
Unzip that file and change the sbin/rabbitmq-defaults, add the ERL_DIR path there.
Follow these command to start the rabbitMQ server
http://sillycat.iteye.com/blog/2066116
Start the Server
>sudo sbin/rabbitmq-server
Check and Stop the Server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop
Install chrome browser
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo chmod 644 /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get install google-chrome-stable
8. Problem with the rootfs
http://forums.debian.net/viewtopic.php?f=30&t=85821
Need to use the entire disk. - Guided - use entire disk and set up LVM, All files in one partition
References:
http://linux.ittoolbox.com/groups/technical-functional/redhat-l/how-to-check-if-my-linux-box-is-redhat-or-other-flavour-1214138
http://serverfault.com/questions/516190/how-to-install-mysql-5-6-on-debian-7-wheezy
First of all, how I know I am using debian, ubuntu or centOS. Try this command
> cat /etc/issue
Debian GNU/Linux 6.0 \n \l
Yeah, I am using Debian 6.0
Download the debian iOS from here https://www.debian.org/
https://www.debian.org/distrib/
I plan to use the latest version.
1. Set up System
add to the sudoers
http://sillycat.iteye.com/blog/1154358
Check the IP
>/sbin/ifconfig -a
2. Install JAVA
It is really useful to follow this doc
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
>su root
>echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
>echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
>sudo apt-get update
>su carl
>sudo apt-get install oracle-java6-installer
>sudo apt-get install oracle-java7-installer
>sudo apt-get install oracle-java8-installer
>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
Switch the java version
>sudo update-alternatives --config java
>sudo update-alternatives --config javac
3. Install Mysql
> wget http://repo.mysql.com/mysql-apt-config_0.2.1-1debian7_all.deb
> sudo dpkg -i mysql-apt-config_0.2.1-1debian7_all.deb
> sudo apt-get update
> sudo apt-get install mysql-server-5.6
4. Install git
> wget https://www.kernel.org/pub/software/scm/git/git-2.3.4.tar.gz
> ./configure
> make prefix=/home/carl/tool/git-2.3.4 all
Error Message:
In file included from credential-store.c:1:0:
cache.h:21:18: fatal error: zlib.h: No such file or directory
compilation terminated.
Solution:
> sudo apt-get install build-essential
> sudo apt-get install zlib1g-dev
Error Message:
INDEX lib/
* tclsh failed; using unoptimized loading
MSGFMT po/bg.msg make[1]: *** [po/bg.msg] Error 127
make: *** [all] Error 2
Solution:
> sudo apt-get install gettext
Error Message:
fatal: Unable to find remote helper for 'https'
Solution:
> sudo apt-get install libcurl4-openssl-dev
> make prefix=/home/carl/tool/git-2.3.4 all
> make prefix=/home/carl/tool/git-2.3.4 install
Add the git to the /opt directory and add it to the path
Set the password Cache time
> git config --global credential.helper "cache --timeout=360000"
5. Install NodeJS Env
> wget http://nodejs.org/dist/v0.12.1/node-v0.12.1.tar.gz
> ./configure --prefix=/home/carl/tool/node-v0.12.1
make and install on the right location
6. Install memcache server
> wget http://www.memcached.org/files/memcached-1.4.22.tar.gz
> wget https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
unzip and install libevent first.
> ./configure --prefix=/home/carl/tool/memcached-1.4.22
make and install, adding to the path, start the server
> memcached -d -m 50 -p 11211 -u carl -l 0.0.0.0
7. Install RabbitMQ
Install the erlang first
> wget http://www.erlang.org/download/otp_src_17.4.tar.gz
>export LANG=C
configure and make and make install
Error Message:
configure: error: No curses library functions found
configure: error: /bin/bash '/home/phunware/install/otp_src_17.4/erts/configure' failed for erts
Solution:
> sudo apt-get install ncurses-dev
Install RabbitMQ
>wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-generic-unix-3.5.0.tar.gz
Unzip that file and change the sbin/rabbitmq-defaults, add the ERL_DIR path there.
Follow these command to start the rabbitMQ server
http://sillycat.iteye.com/blog/2066116
Start the Server
>sudo sbin/rabbitmq-server
Check and Stop the Server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop
Install chrome browser
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo chmod 644 /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get install google-chrome-stable
8. Problem with the rootfs
http://forums.debian.net/viewtopic.php?f=30&t=85821
Need to use the entire disk. - Guided - use entire disk and set up LVM, All files in one partition
References:
http://linux.ittoolbox.com/groups/technical-functional/redhat-l/how-to-check-if-my-linux-box-is-redhat-or-other-flavour-1214138
http://serverfault.com/questions/516190/how-to-install-mysql-5-6-on-debian-7-wheezy
发表评论
-
Diskspace Check and Fix
2020-04-01 00:28 417Diskspace Check and Fix First ... -
Play Raspberry Pi(6)Upgrade and Docker
2016-06-17 00:27 483Play Raspberry Pi(6)Upgrade and ... -
Docker(4)Docker on Raspberry
2015-07-15 13:25 1105Docker(4)Docker on Raspberry I ... -
VirtualBox Network
2015-06-10 11:48 781VirtualBox Network Last one ye ... -
Debian System(2)Debian Desktop
2015-04-02 03:51 732Debian System(2)Debian Desktop ... -
Play Raspberry Pi(3)Disable the logging on squid
2015-01-07 00:13 1138Play Raspberry Pi(3)Disable th ... -
Ubuntu Rebuild Environment(1)
2014-07-09 22:25 1319Ubuntu Rebuild Environment(1)Re ... -
VirtualBox Importing OVA
2014-05-14 03:35 1231VirtualBox Importing OVAJust im ... -
Data Import Process
2012-09-05 11:21 1259Data Import Process 1. prepare ... -
Artifactory on Linux(1)
2011-12-13 22:41 1388Artifactory on Linux(1) Downlo ... -
Hudson/Jenkins Installation on Redhat4
2011-12-13 22:40 1357Hudson/Jenkins Installation on ... -
Archiva In Linux(1)
2011-12-13 13:56 1579Archiva In Linux(1) 1. install ... -
kingate(1)Install on redhat4
2011-11-02 23:02 1350kingate(1)Install on redhat4 1 ... -
JBOSS Performance Tuning
2011-09-22 16:20 1831JBOSS Performance Tuning 2. JV ... -
Forget MySQL Root Password
2011-09-15 14:29 1555Forget MySQL Root Password 1. ... -
Linux Deploy Rails3 with Ruby1.9.2(5)Fix the Error Messages
2011-09-03 11:12 756Linux Deploy Rails3 with Ruby1. ... -
Linux Deploy Rails3 with Ruby1.9.2(4)Configure the rails in Apache2
2011-09-03 11:11 1610Linux Deploy Rails3 with Ruby1. ... -
Yum Problem after Python Upgrade
2011-08-23 17:09 4125Yum Problem after Python Upgrad ... -
Linux Deploy Rails3 with Ruby1.9.2(3)
2011-08-23 14:27 2219Linux Deploy Rails3 with Ruby1. ... -
Linux Deploy Rails3 with Ruby1.9.2(2)
2011-08-21 17:00 1677Linux Deploy Rails3 with Ruby1. ...
相关推荐
"debian安装java环境文档" 在 Debian 环境中安装 Java 环境是一个复杂的过程,涉及到多个组件的安装和配置,本文档将指导您完成 Debian 下的 Java 环境安装,包括 JDK、Tomcat 和 MySQL 的安装和配置。 一、JDK 的...
Debian 软件包生成器。 入门 这个插件需要 Grunt。 如果您以前没有使用过 ,请务必查看指南,因为它解释了如何创建以及安装和使用 Grunt 插件。 熟悉该过程后,您可以使用以下命令安装此插件: npm install ...
oracle-java8, Debian的最新 Java 8软件包 简介用于Debian的Java 8软件包。支持Debian版本目前,软件包已经在Debian版本上进行了测试:扩展 i386/amd64jessie i386/amd64wheezy i386/amd64我没有在Ubun
在Linux(Debian)系统上编译和运行Java程序可能会对初学者来说有些陌生,但遵循正确的步骤,这个过程其实相当简单。以下是一个详细的指南,帮助你从零开始熟悉这个流程。 首先,确保你的系统已经安装了Java ...
适用于 Debian/Ubuntu 的 ansible-nodejs 在 Debian/Ubuntu linux 系统上安装 Nodejs 的 Ansible 角色。NodeSource 和 Chris Lea Chris Lea 正在与合作,为 Ubuntu 用户提供最新的稳定 NodeJS。 这意味着不再使用 ...
mysql-connector-java_8.0.13-1debian9_all.deb,一个linux的驱动
这个压缩包文件包含了三个不同版本的Debian操作系统镜像:debian.11.3、debian_bullseye和debian_buster。每个版本都有其独特的特性和改进,下面将详细讨论这些版本。 首先,我们来看`debian.11.3`,也被称为Debian...
1. 对于基于Debian/Ubuntu的系统,运行`sudo apt-get update && sudo apt-get install nodejs npm`。 2. 对于基于RPM的系统(如Fedora、CentOS),运行`sudo yum install epel-release && sudo yum install nodejs ...
解决深度系统v15中无法安装libjasper1的问题,直接下载安装即可。原始的网址为:http://ftp.br.debian.org/debian/pool/main/j/jasper/libjasper1_1.900.1-debian1-2.4+deb8u3_amd64.deb
Debian is a very successful operating system, which is pervasive in our digital lives more than people often imagine or are aware of. A few data points will suffice to make this clear. At the time of ...
sudo update-alternatives --install /usr/lib/jvm/default-java/jre/lib/ext/mysql-connector-java.jar mysql-connector-java.jar /usr/share/java/mysql-connector-java-x.x.x.jar 1 ``` 3. **验证安装**:你...
本篇文章将详细指导Debian 7 "Wheezy"和Debian 8 "Jessie"用户如何安装Oracle Java 8。 首先,我们来看Java 8的主要特性。Oracle Java 8引入了Lambda表达式,这是Java语言的重大革新,它允许程序员以简洁的方式处理...
debian-8.11.1-amd64-DVD-1 debian-8.11.1-amd64-DVD-1 debian-8.11.1-amd64-DVD-1 debian-8.11.1-amd64-DVD-1 debian-8.11.1-amd64-DVD-1
- **1.4.1 System V 初始化**: Debian 使用 System V 初始化脚本,这是一套广泛应用于 Unix 系统的初始化机制。 - **1.4.2 包管理系统 APT**: Advanced Package Tool (APT) 是 Debian 及其衍生发行版中最常用的包...
1. **检查系统信息**:首先,确认你的 Linux 发行版(如 Ubuntu, CentOS, Debian 等),因为不同发行版的安装方法略有差异。 2. **更新包列表**:确保你的系统软件包是最新的,运行以下命令: - 对于基于 apt 的...
### Debian参考手册知识点详解 #### 一、简介 **Debian参考手册**是一份非常详尽的指南,专为Debian系统的用户和管理员设计。它不仅涵盖了Debian的基础概念、安装指南,还深入探讨了软件包管理、系统优化、网络...
MySQL 是世界上最流行的开源数据库。无论您是快速发展的网络资产、技术 ISV 还是大型企业,MySQL 都可以经济高效地帮助您交付高性能、可扩展的数据库应用程序。...mysql-server_8.0.25-1debian10_amd64.deb-bundle.tar
debian-10.3.0-amd64-DVD-1
《Debian系统管理员参考手册》是由Raphaël Hertzog和Roland Mas撰写的一本详细的手册,主要面向希望深入了解Debian系统的管理员和用户。Debian是一个基于Linux内核的操作系统,以其强大的社区支持、多平台兼容性和...
对于Ubuntu或Debian系的Linux用户,可以使用apt包管理器进行安装: ```bash sudo apt-get update sudo apt-get install redis-server ``` 对于CentOS或Fedora用户,可以使用yum: ```bash sudo yum install epel-...