后台一些记录

2018-10-31  本文已影响63人  仕明同学
image.png image.png
image.png image.png
已连接。
新零售-39.108.108.242 :0>set key value
"OK"
新零售-39.108.108.242 :0>set retail:logistics:real_time_location:deliveryman_id_1 lishiming
"OK"
新零售-39.108.108.242 :0>get "{\"latitude\":22.5,\"gettingDataTime\":\"2018-10-17 17:28:00\",\"longitude\":23.1}"
null
新零售-39.108.108.242 :0>get  retail:logistics:real_time_location:deliveryman_id_1
"lishiming"
新零售-39.108.108.242 :0>set retail:logistics:real_time_location:deliveryman_id_1 "{\"latitude\":22.5,\"gettingDataTime\":\"2018-10-17 17:28:00\",\"longitude\":23.1}" 
"OK"
新零售-39.108.108.242 :0>set  shiming "{\"latitude\":22.5,\"gettingDataTime\":\"2018-10-17 17:28:00\",\"longitude\":23.1}"
"OK"
新零售-39.108.108.242 :0>get shiming
"{"latitude":22.5,"gettingDataTime":"2018-10-17 17:28:00","longitude":23.1}"
新零售-39.108.108.242 :0>del shiming
"1"
新零售-39.108.108.242 :0>del shiming
"0"
新零售-39.108.108.242 :0>get shiming
null
新零售-39.108.108.242 :0>type "{\"latitude\":22.5,\"gettingDataTime\":\"2018-10-17 17:28:00\",\"longitude\":23.1}"
"none"
新零售-39.108.108.242 :0>type retail:logistics:real_time_location:deliveryman_id_1
"string"
新零售-39.108.108.242 :0>
image.png
新零售-39.108.108.242 :0>exists "{\"latitude\":22.5,\"gettingDataTime\":\"2018-10-17 17:28:00\",\"longitude\":23.1}"
"0"
新零售-39.108.108.242 :0>exists retail:logistics:real_time_location:deliveryman_id_1
"1"
新零售-39.108.108.242 :0>
image.png image.png
新零售-39.108.108.242 :0>incr num
"1"
新零售-39.108.108.242 :0>incr num
"2"
新零售-39.108.108.242 :0>get num
"2"
image.png
新零售-39.108.108.242 :0>incrby shiming 3
"3"
新零售-39.108.108.242 :0>incrby shiming 40
"43"
新零售-39.108.108.242 :0>get shiming
"43"
image.png
新零售-39.108.108.242 :0>decr shiming
"42"
新零售-39.108.108.242 :0>decr shiming
"41"
新零售-39.108.108.242 :0>
image.png
新零售-39.108.108.242 :0>incrbyfloat shiming 102.54
"143.54000000000000001"
新零售-39.108.108.242 :0>
image.png
新零售-39.108.108.242 :0>append shiming " woaini "
"29"
新零售-39.108.108.242 :0>get shiming
"143.54000000000000001 woaini "
新零售-39.108.108.242 :0>
image.png
新零售-39.108.108.242 :0>mset shiming1 1 shiming2 2
"OK"
新零售-39.108.108.242 :0>get shiming2
"2"
新零售-39.108.108.242 :0>mget shiming  shiming1
 1)  "143.54000000000000001 woaini "
 2)  "1"
新零售-39.108.108.242 :0>
image.png
新零售-39.108.108.242 :0>set key 你好
"ERR syntax error"
新零售-39.108.108.242 :0>SET  key  你好
"ERR syntax error"
新零售-39.108.108.242 :0>set key "你好"
"OK"
新零售-39.108.108.242 :0>get key
"你好"
新零售-39.108.108.242 :0>strlen key
"6"
新零售-39.108.108.242 :0>
image.png image.png image.png image.png image.png image.png image.png image.png

只读事务(@Transactional(readOnly = true))的一些概念 :https://blog.csdn.net/andyzhaojianhui/article/details/51984157

 /**
     * 对于只读查询,可以指定事务类型为readonly,即只读事务。
     * 由于只读事务不存在数据的修改,因此数据库将会为只读事务提供一些优化手段
     * @param orderCode
     * @return
     */
    @Override
    @Transactional(readOnly = true)
    public DeliveryOrder receiveDeliveryOrder(Long orderCode) {
        return deliveryOrderService.getByOrderCode(orderCode);
    }
@Transactional
@Override
public void save() {
    User user = new User("服部半藏");
    userMapper.insertSelective(user);

    if (true) {
        throw new RuntimeException("save 抛异常了");
    }
}

Propagation.REQUIRED

如果当前存在事务,则加入该事务,如果当前不存在事务,则创建一个新的事务。

Propagation.SUPPORTS

如果当前存在事务,则加入该事务;如果当前不存在事务,则以非事务的方式继续运行。

Propagation.MANDATORY

如果当前存在事务,则加入该事务;如果当前不存在事务,则抛出异常。

Propagation.REQUIRES_NEW

重新创建一个新的事务,如果当前存在事务,暂停当前的事务。

Propagation.NOT_SUPPORTED

以非事务的方式运行,如果当前存在事务,暂停当前的事务。

Propagation.NEVER

以非事务的方式运行,如果当前存在事务,则抛出异常。

Propagation.NESTED

和 Propagation.REQUIRED 效果一样。

查询服务器liux系统

cd / ,即进入根目录。

pwd 命令pwd——查看当前路径

ls 列出文件

tab补全

cd opt/

cd data/

ps -ef|grep logistics ps命令将某个进程显示出来 grep命令是查找中间的|是管道命令 是指ps命令与grep同时执行

less retail-logistics.log less 工具也是对文件或其它输出进行分页显示的工具,应该说是linux正统查看文件内容的工具,功能极其强大。less 的用法比起 more 更加的有弹性。 在 more 的时候,我们并没有办法向前面翻, 只能往后面看,但若使用了 less 时,就可以使用 [pageup] [pagedown] 等按 键的功能来往前往后翻看文件,更容易用来查看一个文件的内容!除此之外,在 less 里头可以拥有更多的搜索功能,不止可以向下搜,也可以向上搜。

tailf retail-logistics.log 动态跟踪日志文件logfile,最初的时候打印文件的最后10行内容。


[dev@dev-lhn1d-retail-api1 ~]$ 
[dev@dev-lhn1d-retail-api1 ~]$ ls
logs  nohup.out
[dev@dev-lhn1d-retail-api1 ~]$ cd /data
-bash: cd: /data: No such file or directory
[dev@dev-lhn1d-retail-api1 ~]$ ls
logs  nohup.out
[dev@dev-lhn1d-retail-api1 ~]$ cd /
[dev@dev-lhn1d-retail-api1 /]$ ls
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  nohup.out  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
[dev@dev-lhn1d-retail-api1 /]$ cd opt/
[dev@dev-lhn1d-retail-api1 opt]$ ls
apache-maven-3.5.4-bin.tar.gz  jdk-8u181-linux-x64.tar.gz  newretail_services  sh
[dev@dev-lhn1d-retail-api1 opt]$ cd newretail_services/
[dev@dev-lhn1d-retail-api1 newretail_services]$ ls
blissmall-eureka  blissmall-gateway  retail-activity  retail-baseinfo  retail-logistics  retail-product  retail-shop
[dev@dev-lhn1d-retail-api1 newretail_services]$ cd retail-logistics/
[dev@dev-lhn1d-retail-api1 retail-logistics]$ ls
logs  nohup.log  retail-logistics.jar
[dev@dev-lhn1d-retail-api1 retail-logistics]$ pwd
/opt/newretail_services/retail-logistics
[dev@dev-lhn1d-retail-api1 retail-logistics]$ ps -ef|grep logistics
ops      28125     1  1 14:31 ?        00:01:42 java -jar /opt/newretail_services/retail-logistics/retail-logistics.jar
dev      31284 31247  0 17:04 pts/2    00:00:00 grep --color=auto logistics
[dev@dev-lhn1d-retail-api1 retail-logistics]$ 
[dev@dev-lhn1d-retail-api1 retail-logistics]$ ls
logs  nohup.log  retail-logistics.jar
[dev@dev-lhn1d-retail-api1 retail-logistics]$ cd logs/
[dev@dev-lhn1d-retail-api1 logs]$ ls
retail-logistics.log
[dev@dev-lhn1d-retail-api1 logs]$ tailf retail-logistics.log 
2018-10-31 16:20:00.006  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:25:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:30:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:35:00.007  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:40:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:45:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:50:00.009  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:55:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 17:00:00.006  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 17:05:00.006  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
















^C
[dev@dev-lhn1d-retail-api1 logs]$ less retail-logistics.log 
























































2018-10-31 14:31:18.628  INFO [retail-logistics,,,] 28125 --- [main] n.b.retail.logistics.Application         : The following profiles are active: env
2018-10-31 14:31:21.523  WARN [retail-logistics,,,] 28125 --- [main] c.c.f.f.i.p.DefaultServerProvider        : Environment is set to null. Because it is not available in either (1) JVM system property 'env_meta', (2) OS env variable 'ENV_META' nor (3) property 'env_meta' from the properties InputStream.
2018-10-31 14:31:21.682  WARN [retail-logistics,,,] 28125 --- [main] o.s.c.a.ConfigurationClassPostProcessor  : Cannot enhance @Configuration bean definition 'com.ctrip.framework.apollo.spring.boot.ApolloAutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
2018-10-31 14:31:22.292  WARN [retail-logistics,,,] 28125 --- [main] o.s.b.c.p.PropertySourcesDeducer         : Multiple PropertySourcesPlaceholderConfigurer beans registered [propertySourcesPlaceholderConfigurer, org.springframework.context.support.PropertySourcesPlaceholderConfigurer], falling back to Environment
2018-10-31 14:31:24.947  WARN [retail-logistics,,,] 28125 --- [localhost-startStop-1] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2018-10-31 14:31:34.405  WARN [retail-logistics,,,] 28125 --- [main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2018-10-31 14:31:40.317  INFO [retail-logistics,,,] 28125 --- [main] n.b.b.c.m.c.AbstractRocketmqConsumer     : 订阅消息topic:topic_logistics,tags:*
2018-10-31 14:31:40.320  INFO [retail-logistics,,,] 28125 --- [main] n.b.b.c.m.c.AbstractRocketmqConsumer     : 启动消费组retail-logistics-consumer
2018-10-31 14:31:40.355  INFO [retail-logistics,,,] 28125 --- [main] n.b.b.c.m.c.AbstractRocketmqConsumer     : 启动消费组retail-logistics-consumer-broadcast
2018-10-31 14:31:40.371  INFO [retail-logistics,,,] 28125 --- [main] n.b.b.c.m.c.AbstractRocketmqConsumer     : 启动消费组retail-logistics-consumer-orderly
2018-10-31 14:31:40.451  INFO [retail-logistics,,,] 28125 --- [main] n.b.retail.logistics.Application         : Started Application in 23.724 seconds (JVM running for 24.85)
2018-10-31 14:35:00.063  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 14:40:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 14:45:00.012  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 14:50:00.009  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 14:55:00.007  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:00:00.010  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:05:00.013  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:10:00.010  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:15:00.007  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:20:00.007  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:25:00.006  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:30:00.014  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:35:00.009  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:40:00.011  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:45:00.007  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:50:00.011  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 15:55:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:00:00.009  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:05:00.020  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:10:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:15:00.009  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:20:00.006  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:25:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:30:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:35:00.007  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:40:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:45:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:50:00.009  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 16:55:00.008  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 17:00:00.006  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
2018-10-31 17:05:00.006  INFO [retail-logistics,,,] 28125 --- [simpleLogisticsJob_Worker-1] n.b.r.logistics.job.SimpleLogisticsJob   : execute simpleLogisticsJob
(END)


PowerDesigner连接MySQL数据库 : PowerDesigner连接MySQL数据库

PowerDesigner逆向导入MYSQL数据库并显示中文注释:PowerDesigner逆向导入MYSQL数据库并显示中文注释

Eureka

问题记录一:

上一篇下一篇

猜你喜欢

热点阅读