Whoring IBM LinuxOne Server Tutorial for Free

Free Whoring IBM LinuxOne Tutorial

1 Introduction

1.1 Preface

LinuxONE Community Cloud is a platform provided by IBM and Marist University for students to test applications and websites, providing free VPS for up to 120 days.

Warm reminder: This VPS is based on the S390X architecture, and its compatibility is not as good as that of the x86-64 or arm architecture. There are not many softwares that can be installed. This machine is more suitable for building a website. LNMP, LAMP, Pagoda, etc. can run, and the performance and concurrency are also good. It is quite strong, and it is also very good to be a compiler. If you are mining,
there is a high probability that it will not work, and the terms do not allow it . If you are highly skilled, you can try to compile xmrig yourself.
It is not recommended that you use this thing to build a proxy tool. It is easy to seal the number , but this machine
can indeed set up a Minecraft server, but the delay will be relatively high

1.2 configuration

CPU: 2 cores
Memory: 4G
Disk: 50G
Bandwidth: 1Gbps
Region: New York State, USA
Time: 120 days (subject to mail)
Price: $0

2. Basic preparation

  • An email address, GMail is recommended, domestic QQ, etc.
  • English basics, if you don't understand English, please use the browser translation plug-in
  • Linux basics

3. Application examples

Official website link: address

Click to jump to the official website to register.

image-20220908222833434

You need to fill in some basic information. You can fill in your own information, or use an American information generator to generate it. Just fill in "Machine Learning" and "develop website" for the reason for the application. If the description is unclear, it may not be approved.

American Information Generator URL: Generator

For example I generated

image-20220908214940399

Well, in order to demonstrate the effect, I registered another qq and opened a qq mailbox.

insert image description here

Confirm by email:

insert image description here

After successful registration, log in with the account password you just registered, and you will enter the following page after successful login.
insert image description here

Click Manage Instance

insert image description here

Click Create:

insert image description here

Here I chose RHEL8.4, all can be.

Click create to create a key, a key pair will be generated, and a pem file will be downloaded. That is the key in the figure above.

Select the key you just generated, and click Create in the lower right corner.
Then the instance state will last for a period of time during spawning.

insert image description here

When the instance is active, you can use the Xshell link.

4. Instance configuration
4.1 Remote connection
I use the Xshell tool, create a new session, enter the instance ip, select the public key mode, enter the user linux1, and click OK.

insert image description here

Note: Xshell4 cannot be connected (pro-test), and it will prompt that the encryption method is not supported. I downloaded Xshell7

There will be SSH security warnings:
insert image description here

Click Accept and Save, and select the key you just generated.

insert image description here

Click OK to connect to the server remotely.
insert image description here

In this way, only the Linux1 user is logged in, and he does not have permission to operate many files. So get the root user to operate.

4.2 Configure root user
Switch to root account

sudo -i

Set root password (can be skipped)

passwd

Open the ssh configuration file

vi /etc/ssh/sshd_config

Modify or add the following configuration

PermitRootLogin yes
PubkeyAuthentication yes

Right now:

insert image description here

Finally edit the authentication file authorized_keys

vi /root/.ssh/authorized_keys 

insert image description here

put two

no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"linux1\" rather than the user \"root\".';echo;sleep 10;exit 142"

are deleted. Then save wq and exit, so that you can create a new session and log in with the root account.

4.3 Configure httpd service
Install gcc-c++

yum install -y gcc gcc-c++

install httpd

yum install httpd -y

httpd command

systemctl start httpd.service #启动 或者 service httpd start(下面同理)

systemctl stop httpd.service #停止

systemctl restart httpd.service #重启

Set boot

systemctl enable httpd.service #开机启动

systemctl disable httpd.service #开机不启动

check httpd status

systemctl status httpd.service

Check firewall status

systemctl status firewalld 或者service firewalld status
#如果没有关闭,关闭即可
systemctl stop firewalld 或者 service firewalld stop

At this time, you should be able to access it. If you still don’t have it, just restart the server.

insert image description here

5. Domain name configuration
Open cloudflare, find DNS, and configure the host ip just now to springmvc.tk. The ip here is different from the previous picture because something went wrong, and I reinstalled the system.

insert image description here

Finally, let's take a look at the effect.

insert image description here
Finally, welcome to visit my blog Duck. Links can be exchanged.
My blog address 1
My blog address 2

Guess you like

Origin blog.csdn.net/weixin_44834205/article/details/126775909