-
远程登录 shell 服务器(连接方式查看入学须知贴)。
ssh xxxx@shell.ceshiren.com
-
启动 python 服务:
python -m http.server 8300

-
检查服务状态。
ps -ef | grep python

netstat -nlp | grep :8300

-
浏览器访问服务。

-
-
启动 ceshiren jar 包:
nohup java -jar ceshiren.jar --server.port=8082 > nohup.out 2>&1 &

-
检查服务状态。
ps -ef | grep java

netstate -nlp | grep :8082

-
浏览器访问服务。

-
-
搭建 PetClinic 宠物医院。
nohup java -jar spring-petclinic.jar --server.port=8089 > nohup.out 2>&1 &
ps -ef | grep spring-petclinic.jar


- 使用 SQL 语句新增数据宠物主人数据。
INSERT IGNORE INTO owners VALUES (23, ‘qi1’, ‘wang2’, ‘国和路666号’, ‘上海’, ‘021-24345252’); - 在 Petclinic 页面中新增宠物主人信息。
- 使用 SQL 语句新增数据宠物主人数据。
-
编写 SQL 语句查询新增数据的正确性。
-
端口选择:8090-9000 之间的某一个,不要冲突。
-
提交服务启动之后的浏览器访问截图即可。



