minikube 实践
3月 23, 2023 |
Nix.Huang
启动集群 minikube start –force –container-runtime=contain […more]
server { listen 80; # server_name用于指定虚拟主机名 server_name […more]
cat Dockerfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM centos MAINTAINER REX # ADD 会将tar包解压 ADD ./jdk-17_linux-x64_bin.tar.gz /opt RUN mkdir -p /opt/jdk-17.0.4 ENV JAVA_HOME /opt/jdk-17.0.4 ENV PATH $PATH:$JAVA_HOME/bin ENV LANG="en_US.UTF-8" COPY ./websocket-server.jar /opt/ EXPOSE 8080 VOLUME ["/opt/logs"] WORKDIR /opt/ ENTRYPOINT java -jar /opt/websocket-server.jar |
// ‘.’表 […more]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
@Configuration public class Config { //将Integer 映射未枚举处理器 @MappedTypes({MState.class}) @MappedJdbcTypes(value ={JdbcType.TINYINT, JdbcType.INTEGER}) public static class MStateTypeHandler extends EnumOrdinalTypeHandler<MState> { public MStateTypeHandler() { super(MState.class); } } //JSON处理器 @MappedTypes({EventHandlingContext.class}) @MappedJdbcTypes(value ={JdbcType.VARCHAR, JdbcType.UNDEFINED}) public static class EventHandlingContextHandler extends FastjsonTypeHandler { public EventHandlingContextHandler() { super((Class)EventHandlingContext.class); } } //将处理器注册未bean @Bean public MStateTypeHandler getTypeHandlerForMState() { return new MStateTypeHandler(); } @Bean public FastjsonTypeHandler getJsonTypeHandler() { return new EventHandlingContextHandler(); } } |
spring boot 返回 Transfer-Encoding: chunked头而不是Content-Le […more]
ll /proc/{pid} 输出中, exe ->; ‘/usr/bin/-bash (deleted […more]