Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install raspberry pie in java web server

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install Raspberry Pi in Java web server. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

I. Installation preparation (hardware part)

Raspberry Pi motherboard

TF card>=8G

card reader

a PC

Power supply + power cord 5V 2A

network cable

USB mouse +USB keyboard (not needed later)

LCD (not required later)

HDMI to VGA video cable (not needed later)

II. Installation system

First format the TF card on PC in fat32 format.

Download system files

Raspbian system download: www.raspberrypi.org/downloads

Or download the latest version of BT Seed directly from http://downloads.raspberrypi.org/raspbian_latest.torrent

Download and extract 2015- 05 - 05-raspbian-wheezy.img (latest version at time of posting)

(The latest version turns off ssh by default, you need to manually create an SSH file in the tf root directory, no suffix is required)

Download Win32 Disk Imager

Official download address: sourceforge.net/projects/win32diskimager/

After downloading and installing successfully, run the program, connect the TF card to the computer, select the drive letter where TF is located, here is the I disk, select the system file decompressed in step 2, and click the Write button. Perform system installation.

After successful installation, insert the TF card into the Raspberry Pi and power it on. Initiate. Remember to connect the mouse keyboard, monitor.

The first time we start we see the raspi-config interface.

Here we have a simple setup. (See another article for detailed settings for raspi-config.) http://my.oschina.net/javawing/blog/497139)

Here we select only the first option Expand Filesystem. All the way to the car.

We chose finish. After the restart, the official start of the raspberry pi to build java web server journey.

Before starting to build the server, do some small configuration first.

Enable root

Some students may have come into contact with linux system before, we are generally root user to operate.

Raspberry Pi cannot be used as root user by default. We first use the default pi user to log in to the system, and the password is also the default raspberry

After successful landing, execute the following command

The new version of the system defaults to close root remote SSH login, which needs to be enabled.

vi /etc/ssh/sshd_config

Modify PermitRootLogin without out-password to PermitRootLogin yes

sudo passwd root//Enter root password twice sudo passwd --unlock root //Unlock root

Replace vim editor

The vim editor that comes with the Raspberry Pi is really not easy to use. So we need to replace it.

First uninstall the default vim editor and execute the following command

sudo apt-get remove vim-common

Then reinstall vim

sudo apt-get install vim

Support ll command

Raspberry Pi does not support ll command by default

cd vi .bashrc//find alias ll='ls $LS_OPTIONS -l' remove the leading ## alias ls='ls $LS_OPTIONS'alias ll='ls $LS_OPTIONS -l'# alias l='ls $LS_OPTIONS -lA'

Then save exit and restart Raspberry Pi. I can support the II command.

Thank you for reading! About "how to install Raspberry Pi in Java web server" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report