Novice how to get connected to the server after a cloud server? How to add users? How to connect FTP upload files? How to install Node?

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_32281471/article/details/91357922

How connect to the server
how to add new users
how to upload files via FTP
how to install Node

Today, Ali clouds parted and a new server instance, configure how to get our hands after recording under the new server.

Ali cloud the new server console, select the server to see running instances, IP for the public is the public network connection address .

How connect to the server

Mounted on Mac ZenTermLite, click + open, easily take session name, the host address is an address of the public network (the figure corresponding public address).
Here Insert Picture Description
With the user name root, password and click authentication, enter the password in the application instance when created.

Here Insert Picture Description
Click OK, the connection will automatically connect to the server (as root).

How to add new users

First check the system's users

> cat /etc/passwd

Here Insert Picture Description

We created a user uftp, used for uploading files. You will be asked to enter a password.

> adduser uftp

Here Insert Picture Description
This line command will automatically create user directories.

delete users

> userdel uftp

How to upload files via FTP

Ftp server need to install the service, installation vsftp.

> apt install vsftpd

Configuration vsftp.

> vi /etc/vsftp.conf

In # Uncomment this to enable any form of FTP write command.place, add the following statement
Here Insert Picture Description

While creating /etc/vsftpd.user_list

> touch /etc/vsftpd.user_list
> vi /etc/vsftpd.user_list

Add users, you can restart the service.

> sudo /etc/init.d/vsftpd start  # 启动vsftp服务
> sudo /etc/init.d/vsftpd stop # 停止vsftp服务
> sudo /etc/init.d/vsftpd restart # 重启vsftp服务

Here Insert Picture Description
First download a FIleZilla, this is a FTP client. Entry

Here Insert Picture Description
You can list the directory, then you can begin to upload and download files.
Here Insert Picture Description

How to install Node

Linux installation above choose to compile from the source file, open http://nodejs.cn/download/ , select the installation package.

Here Insert Picture Description
Find node-v10.16.0.tar.gz
Here Insert Picture Description
copy the link address after
Here Insert Picture Description
wget to download to your machine, tar to extract the files

> wget https://npm.taobao.org/mirrors/node/v10.16.0/node-v10.16.0.tar.gz
> tar -zxvf node-v10.16.0.tar.gz 

Executed as the root user

> ./configure
> make && make install

Quietly waiting. . . Compile and install the entire process will be relatively long. . .

After waiting executed, on the command line input

> node -v
v10.16.0

Show Node version, that is, the installation was successful


No public attention sealing talk technology, gives technical information, your support is my greatest motivation
lxfriday_xyz

Guess you like

Origin blog.csdn.net/qq_32281471/article/details/91357922