想起两三年前,发现写Java界面的时候,如果将当前界面的layout设为null,由于windows的不同主题界面下,标题栏的高度不一致,导致当前界面表现也不一致. 当时就想找到一个办法先判断当前用户的主题是经典样式还是xp样式,可一直都没有找到. 今天无意发现com.sun.java.swing.plaf.windows.StyleXP类里面的一段代码: /** Get the singleton instance of this class * * @return the singleton
1.首先需要增加授权 CREATE USER 'exporter'@'localhost' IDENTIFIED BY 'XXXXXXXX' WITH MAX_USER_CONNECTIONS 3; GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'localhost'; flush privileges; 2.安装mysqld_exporter wget https://github.com/promethe