`
sillycat
  • 浏览: 2492504 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Debian System(1)Java and NodeJS Env

 
阅读更多
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



分享到:
评论

相关推荐

    debianize:用于在 debian 文件中打包的 NodeJS 模块

    Debian 软件包生成器。 入门 这个插件需要 Grunt。 如果您以前没有使用过 ,请务必查看指南,因为它解释了如何创建以及安装和使用 Grunt 插件。 熟悉该过程后,您可以使用以下命令安装此插件: npm install ...

    debian安装java环境文档

    安装文档,构建java平台,好东西约,好东西

    oracle-java8, Debian的最新 Java 8软件包.zip

    oracle-java8, Debian的最新 Java 8软件包 简介用于Debian的Java 8软件包。支持Debian版本目前,软件包已经在Debian版本上进行了测试:扩展 i386/amd64jessie i386/amd64wheezy i386/amd64我没有在Ubun

    ansible-nodejs:在 Debian Ubuntu linux 系统上安装 Nodejs 的 Ansible 角色

    适用于 Debian/Ubuntu 的 ansible-nodejs 在 Debian/Ubuntu linux 系统上安装 Nodejs 的 Ansible 角色。NodeSource 和 Chris Lea Chris Lea 正在与合作,为 Ubuntu 用户提供最新的稳定 NodeJS。 这意味着不再使用 ...

    Linux(Debian)上编译运行Java程序入门.docx

    Linux(Debian)上编译运行Java程序入门教程,通过这个例子,相信小伙伴们在Linux上开始Java编程时可以拥有一个不那么痛苦的新手起步。

    mysql-connector-java_8.0.13-1debian9_all.deb

    mysql-connector-java_8.0.13-1debian9_all.deb,一个linux的驱动

    libjasper1_1.900.1-debian1-2.4+deb8u3_amd64.deb

    解决深度系统v15中无法安装libjasper1的问题,直接下载安装即可。原始的网址为:http://ftp.br.debian.org/debian/pool/main/j/jasper/libjasper1_1.900.1-debian1-2.4+deb8u3_amd64.deb

    debian-handbook.pdf

    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 ...

    tofrodos_1.7.8.debian.1-1_amd64.deb

    Ubuntu系统打开Windows下生成的文本文件,会在每行的末尾出现’^M’ 原因就是Windows和Linux的回车符是不同的 ...执行:root@Ebisu:/home/software# dpkg -i tofrodos_1.7.8.debian.1-1_amd64.deb 即可。

    mysql-server_8.0.25-1debian10.zip

    MySQL 是世界上最流行的开源数据库。无论您是快速发展的网络资产、技术 ISV 还是大型企业,MySQL 都可以经济高效地帮助您交付高性能、可扩展的数据库应用程序。...mysql-server_8.0.25-1debian10_amd64.deb-bundle.tar

    debian操作系统常用命令.docx

    date :print or set the system date and time 2. stty -a: 可以查看或者打印控制字符(Ctrl-C, Ctrl-D, Ctrl-Z等) 3. passwd: print or set the system date and time (用passwd -h查看) 4. logout, login: 登录...

    The Debian Adminstrator's Handbook

    Debian系统管理员的手册,内容非常丰富。更新到了 Debian 7。epub 格式适合在移动设备上阅读。这本书的网站上(http://debian-handbook.info/)有pdf版本。

    Debian7SystemAdministrationBestPractices.pdf 英文原版

    Debian 7 System Administration Best Practices

    debian gnu linux debian gnu linux

    debian gnu linux debian gnu linuxdebian gnu linux debian gnu linuxdebian gnu linux debian gnu linuxdebian gnu linux debian gnu linuxdebian gnu linux debian gnu linuxdebian gnu linux debian gnu linux

    debian source.list

    debian source.list **** http://ftp2.jp.debian.org *** http://debian.okey.net *** http://mirror.dlut.edu.cn http://www.91duoduo.com/jishu/linux_xx.html?noid=afblfi

    debian-10.3.0-amd64-DVD-1

    debian-10.3.0-amd64-DVD-1

    oracle-java8:Debian的最新Java 8软件包

    请注意,Java 8的公开更新已结束,Oracle将在2019年1月之后不再发布任何更新。有关详细信息,请参阅介绍用于Debian的Java 8软件包。支持的Debian版本到目前为止,软件包已在以下Debian版本上进行了测试: 克星i386 /...

    The Debian Administrator's Handbook.epub

    It could only be written by authors who master both the technical aspects and the inner workings of the Debian project, and who know the needs of seasoned professionals as well as enthusiasts....

    mysql-connector-java-Debian

    mysql-connector-java-Debian

    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 debian-8.11.1-amd64-DVD-1

Global site tag (gtag.js) - Google Analytics