韦奇_linux服务部署

linux服务部署

远程登录 shell 服务器

启动 python 服务:

启动 ceshiren jar 包:

  • java -jar ceshiren.jar --server.port=8007
    image

  • 检查服务状态
    ps -ef | grep 8007

  • 创建weiqi_owners表

    id INT(4) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
    first_name VARCHAR(30),
    last_name VARCHAR(30),
    address VARCHAR(255),
    city VARCHAR(80),
    telephone VARCHAR(20),
    INDEX(last_name)
      ) engine=InnoDB;```
    

  • 添加数据
    IINSERT INTO petclinic.`weiqi_owners` ( id, first_name, last_name, address, city, telephone ) VALUES ( 2001, 'weiqi', 'weiqi_very', 'xian', 'xian', '15205186923' );


    image

  • 查询
    SELECT * FROM weiqi_owners where first_name = 'weiqi';
    image