Server simple instructions

Server related

basic information:

The server uses the centos 7 version of the Linux distribution, with basic configurations such as mysql, nginx, and java deployed

  1. connect to the server

Using ssh public key authentication method, you need to provide your personal public key before connecting, and then you can connect using client tools such as secureCRT or xshell

Regarding the ssh public key, it is recommended to install git on the windows computer. Git will add part of the linux command line, including the command to generate the ssh public key. For the specific generation method, please see https://www.jianshu.com/p/6761199bedba

  1. server information

ip address: 39.108.111.126

Port: 22

​ Account: Created by the administrator after providing the public key

  1. Server deployment steps

  2. Directory Structure

    1. The base directory is under /data/test
      1. /data/test/page puts static resources, each project builds a directory
      2. /data/test/service puts the server project, for the springboot project it is put a jar file
      3. /data/test/nginx_conf nginx配置
  3. Operating specifications,

    1. All operations must use the test account, the account password is test, has joined the www user group
    2. Need to be familiar with common linux commands
  4. Steps

    1. After ssh connects to the server,
      1. your test
        1. Switch user to test, enter the password test and change the user to test
      2. Upload compressed files,
        1. For secureCRT, drag directly to the interface and select ZModem to upload.
        2. For xshell, it seems that you can drag and upload directly
      3. Unzip the zip file
        1. unzip file.zip
      4. Move files
        1. mv original file new file path or name
      5. Delete Files
        1. rm file name
    2. sprintboot project operation mode
      1. Switch test account
      2. Upload the jar package to /data/test/service
      3. Excuting an order
        1. java -jar xxx.jar &
        2. Or nohup java -jar xxx.jar

Guess you like

Origin blog.csdn.net/HolleDream/article/details/107827912