修改 Linux 系统时区设置

Linux 系统时间与 /var/log/messages 日志时间不一致
/var/log/messages 是由 syslogd 记录的,所以通过环境变量设置的时区无效。
一般情况下 /etc/localtime 配置正确就可以了。

修改时区

由于系统与应用程序的时区设置差异,需要同时修改/etc/timezone/etc/localtime两个文件

修改Debian系统的时区为Asia/Shanghai需要执行如下命令:

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo "Asia/shanghai" > /etc/timezone

- 阅读剩余部分 -

Windows 优化点

  1. 超级预读取服务

    • 优化

      sc config SysMain start=disabled
      net stop SysMain
    • 反优化

      sc config SysMain start=auto
  2. Windows Search

    • 优化

      sc config WSearch start=disabled
      net stop WSearch
    • 反优化

      sc config WSearch start=delayed-auto

IDEA 中 File Template 设置

文件代码模板预设的变量

${PACKAGE_NAME} - the name of the target package where the new class or interface will be created.
${PROJECT_NAME} - the name of the current project.
${FILE_NAME} - the name of the PHP file that will be created.
${NAME} - the name of the new file which you specify in the New File dialog box during the file creation.
${USER} - the login name of the current user.
${DATE} - the current system date.
${TIME} - the current system time.
${YEAR} - the current year.
${MONTH} - the current month.
${DAY} - the current day of the month.
${HOUR} - the current hour.
${MINUTE} - the current minute.
${PRODUCT_NAME} - the name of the IDE in which the file will be created.
${MONTH_NAME_SHORT} - the first 3 letters of the month name. Example: Jan, Feb, etc.
${MONTH_NAME_FULL} - full name of a month. Example: January, February, etc.

Python 模板示例

#set( $user = "" )
#set( $email = "" )
#set( $website = "" )

#!/usr/bin/env python
# encoding: utf-8

"""
@Time    : ${DATE} ${TIME}
@Author  : $user
@Email   : $email
@Blog    : $website
@Project : ${PROJECT_NAME}
@FileName: ${FILE_NAME}
@Software: ${PRODUCT_NAME}
@license : (C) Copyright ${YEAR} by $user. All rights reserved.
@Desc    : 
    
"""

最新文章

最近回复

  • muumlover: 你好
  • 测试人: 你好呀
  • ww: 看了这么多就这个有用,牛逼
  • 未知狐: 啊确实,话说,博主博客好像没有评论回复邮件提醒,可以试试Comm...
  • Skogen: 系统的差异,不同的Linux发行版集成的包也不一样,安装难度也就...
  • Skogen: 系统是 Debian9,理论上Debian系的系统应该通用的。
  • 2247: 请问用的是什么系统?
  • 未知狐: 受教了,我比博主运气好点,是因为不理解命令参数等设定而频繁失败,...
  • Skogen: 23
  • Skogen: asd

分类

标签

归档

其它