MongoDB警告信息

MongoDB警告信息:
1. WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 
2. WARNING: Access control is not enabled for the database. 
3. WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’. 
4. WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.

1.WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine(强烈建议使用带WiredTiger存储引擎的XFS文件系统)

报这个错是因为我的虚拟环境使用的是EXT4文件系统,官方不建议,但不影响使用

在Linux上运行MongoDB时,官方建议使用Linux内核版本2.6.36或更高版本,使用XFS或EXT4文件系统。 如果可能,最好使用XFS,因为它通常与MongoDB表现更好。

使用WiredTiger存储引擎,强烈建议使用XFS,以避免在使用EXT4与WiredTiger时可能发生的性能问题。

使用MMAPv1存储引擎,MongoDB在使用它们之前预先分配其数据库文件,并经常创建大文件。 因此,官方建议使用XFS或EXT4文件系统。 如果可能,请使用XFS,因为它通常与MongoDB表现更好。

2.WARNING: Access control is not enabled for the database.(数据库未启用访问控制)

报这个错是因为MongoDB需要有一个安全库来开启数据库访问控制

在MongoDB部署上启用访问控制会强制执行身份验证,要求用户识别自己。当访问启用了访问控制的MongoDB部署时,用户只能执行由其角色确定的操作。

  • 不使用访问控制模式开启mongdb
[email protected] ~]# mongod --dbpath /var/lib/mongo
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] MongoDB starting : pid=2421 port=27017 dbpath=/var/lib/mongo 64-bit host=localhost.localdomain
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] db version v3.4.9
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] modules: none
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] build environment:
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten]     distmod: rhel70
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten]     distarch: x86_64
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2017-09-27T03:06:14.853+0800 I CONTROL  [initandlisten] options: { storage: { dbPath: "/var/lib/mongo" } }
2017-09-27T03:06:14.971+0800 I -        [initandlisten] Detected data files in /var/lib/mongo created by the ‘wiredTiger‘ storage engine, so setting the active storage engine to ‘wiredTiger‘.
2017-09-27T03:06:14.971+0800 I STORAGE  [initandlisten]
2017-09-27T03:06:14.971+0800 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-09-27T03:06:14.971+0800 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-09-27T03:06:14.971+0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1455M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always‘.
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] **        We suggest setting it to ‘never‘
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always‘.
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] **        We suggest setting it to ‘never‘
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.634+0800 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory ‘/var/lib/mongo/diagnostic.data‘
2017-09-27T03:06:16.635+0800 I NETWORK  [thread1] waiting for connections on port 27017
2017-09-27T03:06:33.704+0800 I NETWORK  [thread1] connection accepted from 127.0.0.1:34808 #1 (1 connection now open)
2017-09-27T03:06:33.705+0800 I NETWORK  [conn1] received client metadata from 127.0.0.1:34808 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.9" }, os: { type: "Linux", name: "CentOS Linux release 7.3.1611 (Core) ", architecture: "x86_64", version: "Kernel 3.10.0-514.26.2.el7.x86_64" } }
2017-09-27T03:07:15.311+0800 I COMMAND  [conn1] command admin.system.users appName: "MongoDB Shell" command: insert { insert: "system.users", documents: [ { _id: "admin.myUserAdmin", user: "myUserAdmin", db: "admin", credentials: { SCRAM-SHA-1: { iterationCount: 10000, salt: "pUdmLObMsG3wKU7MZDFU1g==", storedKey: "wlCaAzPOS+u7CUqzMKxeZB+DFkE=", serverKey: "KwP12FF1ASziFPVstN8mLrPLg+A=" } }, roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } ] } ninserted:1 keysInserted:1 numYields:0 reslen:44 locks:{ Global: { acquireCount: { r: 4, w: 4 } }, Database: { acquireCount: { W: 4 } }, Collection: { acquireCount: { w: 3 } } } protocol:op_query 145ms
2017-09-27T03:07:15.311+0800 I COMMAND  [conn1] command admin.$cmd appName: "MongoDB Shell" command: createUser { createUser: "myUserAdmin", pwd: "xxx", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ], digestPassword: false, writeConcern: { w: "majority", wtimeout: 600000.0 } } numYields:0 reslen:22 locks:{ Global: { acquireCount: { r: 4, w: 4 } }, Database: { acquireCount: { W: 4 } }, Collection: { acquireCount: { w: 3 } } } protocol:op_command 202ms
  • 连接到instance
[[email protected] ~]# mongo
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.9
Server has startup warnings:
2017-09-27T03:06:14.971+0800 I STORAGE  [initandlisten]
2017-09-27T03:06:14.971+0800 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-09-27T03:06:14.971+0800 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2017-09-27T03:06:16.364+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always‘.
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] **        We suggest setting it to ‘never‘
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten]
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always‘.
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten] **        We suggest setting it to ‘never‘
2017-09-27T03:06:16.365+0800 I CONTROL  [initandlisten]
> 
  • 在admin数据库中创建administrator 用户
> use admin
switched to db admin
> db.createUser(
...   {
...     user: "myUserAdmin",
...     pwd: "abc123",
...     roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
...   }
... )
Successfully added user: {
    "user" : "myUserAdmin",
    "roles" : [
        {
            "role" : "userAdminAnyDatabase",
            "db" : "admin"
        }
    ]
}
> exit
bye
  • 重启Mongodb
使用Ctrl+c退出原mongod

q^H
^C2017-09-27T03:07:25.685+0800 I CONTROL  [signalProcessingThread] got signal 2 (Interrupt), will terminate after current cmd ends
2017-09-27T03:07:25.685+0800 I NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
2017-09-27T03:07:25.685+0800 I NETWORK  [signalProcessingThread] closing listening socket: 6
2017-09-27T03:07:25.685+0800 I NETWORK  [signalProcessingThread] closing listening socket: 7
2017-09-27T03:07:25.685+0800 I NETWORK  [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
2017-09-27T03:07:25.685+0800 I NETWORK  [signalProcessingThread] shutdown: going to flush diaglog...
2017-09-27T03:07:25.685+0800 I FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
2017-09-27T03:07:25.687+0800 I STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
2017-09-27T03:07:25.770+0800 I STORAGE  [signalProcessingThread] shutdown: removing fs lock...
2017-09-27T03:07:25.770+0800 I CONTROL  [signalProcessingThread] now exiting
2017-09-27T03:07:25.770+0800 I CONTROL  [signalProcessingThread] shutting down with code:0
  • 开启访问控制启动Mongod
[[email protected] ~]# mongod --auth --dbpath /var/lib/mongo
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] MongoDB starting : pid=2508 port=27017 dbpath=/var/lib/mongo 64-bit host=localhost.localdomain
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] db version v3.4.9
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] modules: none
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] build environment:
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten]     distmod: rhel70
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten]     distarch: x86_64
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2017-09-27T03:07:40.034+0800 I CONTROL  [initandlisten] options: { security: { authorization: "enabled" }, storage: { dbPath: "/var/lib/mongo" } }
2017-09-27T03:07:40.054+0800 I -        [initandlisten] Detected data files in /var/lib/mongo created by the ‘wiredTiger‘ storage engine, so setting the active storage engine to ‘wiredTiger‘.
2017-09-27T03:07:40.054+0800 I STORAGE  [initandlisten]
2017-09-27T03:07:40.054+0800 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-09-27T03:07:40.054+0800 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-09-27T03:07:40.054+0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1455M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten]
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten]
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always‘.
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten] **        We suggest setting it to ‘never‘
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten]
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always‘.
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten] **        We suggest setting it to ‘never‘
2017-09-27T03:07:40.420+0800 I CONTROL  [initandlisten]
2017-09-27T03:07:40.422+0800 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory ‘/var/lib/mongo/diagnostic.data‘
2017-09-27T03:07:40.422+0800 I NETWORK  [thread1] waiting for connections on port 27017
2017-09-27T03:08:07.458+0800 I NETWORK  [thread1] connection accepted from 127.0.0.1:34810 #1 (1 connection now open)
2017-09-27T03:08:07.458+0800 I NETWORK  [conn1] received client metadata from 127.0.0.1:34810 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.9" }, os: { type: "Linux", name: "CentOS Linux release 7.3.1611 (Core) ", architecture: "x86_64", version: "Kernel 3.10.0-514.26.2.el7.x86_64" } }
2017-09-27T03:08:07.477+0800 I ACCESS   [conn1] Successfully authenticated as principal myUserAdmin on admin
2017-09-27T03:08:07.478+0800 I ACCESS   [conn1] Unauthorized: not authorized on admin to execute command { getLog: "startupWarnings" }
2017-09-27T03:08:07.665+0800 I ACCESS   [conn1] Unauthorized: not authorized on admin to execute command { replSetGetStatus: 1.0, forShell: 1.0 }
2017-09-27T03:08:26.104+0800 I -        [conn1] end connection 127.0.0.1:34810 (1 connection now open)
2017-09-27T03:08:29.697+0800 I NETWORK  [thread1] connection accepted from 127.0.0.1:34812 #2 (1 connection now open)
2017-09-27T03:08:29.697+0800 I NETWORK  [conn2] received client metadata from 127.0.0.1:34812 conn2: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.9" }, os: { type: "Linux", name: "CentOS Linux release 7.3.1611 (Core) ", architecture: "x86_64", version: "Kernel 3.10.0-514.26.2.el7.x86_64" } }
2017-09-27T03:08:29.713+0800 I ACCESS   [conn2] Successfully authenticated as principal myTester on test
2017-09-27T03:08:29.714+0800 I ACCESS   [conn2] Unauthorized: not authorized on admin to execute command { getLog: "startupWarnings" }
2017-09-27T03:08:29.715+0800 I ACCESS   [conn2] Unauthorized: not authorized on admin to execute command { replSetGetStatus: 1.0, forShell: 1.0 }
  • 刚刚新建的用户myUserAdmin连接数据
[[email protected] ~]# mongo --port 27017 -u "myUserAdmin" -p "abc123" --authenticationDatabase "admin"
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/
MongoDB server version: 3.4.9
>
创建新数据库test并在其中创建用户myTester

> use test
switched to db test
> db.createUser(
...   {
...     user: "myTester",
...     pwd: "xyz123",
...     roles: [ { role: "readWrite", db: "test" },
...              { role: "read", db: "reporting" } ]
...   }
... )
Successfully added user: {
    "user" : "myTester",
    "roles" : [
        {
            "role" : "readWrite",
            "db" : "test"
        },
        {
            "role" : "read",
            "db" : "reporting"
        }
    ]
}
> exit
bye
  • 使用新建的myTester用户连接数据库
[[email protected] ~]# mongo --port 27017 -u "myTester" -p "xyz123" --authenticationDatabase "test"
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/
MongoDB server version: 3.4.9

3.WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.与4.WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.

这两个问题是CentOS7特有的,因为从CentOS7版本开始会默认启用Transparent Huge Pages(THP) 
Transparent Huge Pages(THP)本意是用来提升内存性能,但某些数据库厂商还是建议直接关闭THP(比如说Oracle、MariaDB、MongoDB等),否则可能会导致性能出现下降。

  • 查看THP状态
[[email protected] ~]#  cat /sys/kernel/mm/transparent_hugepage/defrag
[always] madvise never
[[email protected] ~]# cat /sys/kernel/mm/transparent_hugepage/enabled
[always] madvise never
  • 修改系统配置
[[email protected] ~]# vim /etc/rc.d/rc.local

#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run ‘chmod +x /etc/rc.d/rc.local‘ to ensure
# that this script will be executed during boot.

touch /var/lock/subsys/local

if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
 echo never > /sys/kernel/mm/transparent_hugepage/enabled
 fi
 if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
 echo never > /sys/kernel/mm/transparent_hugepage/defrag
 fi

[[email protected] ~]# chmod +x /etc/rc.d/rc.local
  • 重启虚拟机
[[email protected] ~]# shutdown -r
  • 再次查看THP状态
[[email protected] ~]#  cat /sys/kernel/mm/transparent_hugepage/defrag
always madvise [never]
[[email protected] ~]# cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]

已经改为了禁用THP

  • 启动mongod
[[email protected] ~]# mongod --auth --dbpath /var/lib/mongo
2017-09-27T03:40:50.174+0800 I CONTROL  [initandlisten] MongoDB starting : pid=2381 port=27017 dbpath=/var/lib/mongo 64-bit host=localhost.localdomain
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten] db version v3.4.9
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten] modules: none
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten] build environment:
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten]     distmod: rhel70
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten]     distarch: x86_64
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2017-09-27T03:40:50.175+0800 I CONTROL  [initandlisten] options: { security: { authorization: "enabled" }, storage: { dbPath: "/var/lib/mongo" } }
2017-09-27T03:40:50.195+0800 I -        [initandlisten] Detected data files in /var/lib/mongo created by the ‘wiredTiger‘ storage engine, so setting the active storage engine to ‘wiredTiger‘.
2017-09-27T03:40:50.195+0800 I STORAGE  [initandlisten]
2017-09-27T03:40:50.195+0800 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-09-27T03:40:50.195+0800 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-09-27T03:40:50.195+0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1455M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-09-27T03:40:50.689+0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2017-09-27T03:40:50.689+0800 I CONTROL  [initandlisten]
2017-09-27T03:40:50.692+0800 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory ‘/var/lib/mongo/diagnostic.data‘
2017-09-27T03:40:50.693+0800 I NETWORK  [thread1] waiting for connections on port 27017
  • 进入数据库
[[email protected] ~]# mongo
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.9
> 

原文地址:https://www.cnblogs.com/manzb/p/8806586.html

时间: 2024-10-10 20:28:57

MongoDB警告信息的相关文章

去除hadoop启动过程中的警告信息

安装完hadoop后启动hadoop 会报一个Warning.解决办法 vi  /etc/profile 进入编辑模式,添加下面这行 export HADOOP_HOME_WARN_SUPPRESS=1 保存退出 立即生效:source /etc/profile 重新启动hadoop 消除警告成功! 去除hadoop启动过程中的警告信息,布布扣,bubuko.com

bootstrap错误警告信息提示

bootstrap提供了成功执行.警告和错误信息的样式. 在使用该功能的时候需要引入以下几个文件: bootstrap.css jquery.js(需放在bootstrap.js之前) bootstrap.js(官方推荐引入的是bootstrap-alert.js) 主要使用的样式: .span4 .alert(默认样式) .alert alert-successs .alert alert-error .alert alert-info 实例代码如下: <!DOCTYPE html> <

1.一男子在路边一根接着一根地抽烟。一个女士走过来对他说:“嘿,你不知道你是在慢性自杀吗?注意看看烟盒上的警告信息。”“没关系”, 男子悠然自得地又吸了一口:“我是个程序员。”“嗯?这和你是程序员有什么关系?...

1.一男子在路边一根接着一根地抽烟.一个女士走过来对他说:"嘿,你不知道你是在慢性自杀吗?注意看看烟盒上的警告信息.""没关系",男子悠然自得地又吸了一口:"我是个程序员.""嗯?这和你是程序员有什么关系?""我们一点儿也不在乎警告(warning),我们只在乎错误(error)." 2.(唔--这个貌似跟程序员没关系--)地理学家和数学家在飞机上坐在了一起.地理学家伸过头来问数学家想不想玩个有趣的游戏.数

去除hadoop的启动过程中警告信息

如何去除hadoop的启动过程中警告信息1.由于警告是在执行start-all.sh启动Hadoop时出现的,所以应该查看start-all.sh,执行more start-all.sh可以看到下面代码:if [ -e "$bin/../libexec/hadoop-config.sh" ]; then  . "$bin"/../libexec/hadoop-config.shelse  . "$bin/hadoop-config.sh"fi根据

Cisco路由器基础信息配置---设置时间,警告信息和端口信息

我们为路由器配置好基础的安全密码保护后,还有一些路由器的基本信息需要配置,比如登陆路由器是用户可以看到的路由器标语信息和描述信息. 1假如我们希望公司所有管理员在登陆路由器是看到一条警告信息:命令过程如下 Yong1>enable Yong1#conf t Yong1(config)#banner moth #Warning!!don't change any configuration # Yong1(config)#exit Yong1#exit 下次再登陆路由器进入用户模式(>)时就会看

【翻译自mos文章】升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息

注:与本文有关的文章为:http://blog.csdn.net/msdnchina/article/details/43763927 升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息 翻译自mos文章:NUMA warning message appear after upgrade to 11.2.0.4 (文档 ID 1600824.1)1 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.4 and

关于MySQL主从复制中UUID的警告信息

日期: 2014年5月23日 博客: 铁锚 最近在查看MariaDB主从复制服务器 Master 的错误日志时看到很多条警告信息,都是提示 UUID()函数不安全,可能 Slave 产生的值和 Master不一致, 警告信息大致如下: 140522 15:11:10 [Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Stateme

Xcode中报错或警告信息整理,持续更新...

 整理报错和警告信息,为以后自己查看方便用! [报错1] 信息:Static table views are only valid when embedded in UITableViewController instances 解释:如果 UITableView 不是在 UITableViewController 而是在 UIViewController 中的时候,是不允许将 UITableView 的 Content 属性设置为 Static Cells 的 解决办法:具体参加以下链接:ht

警告:DNS 服务器 4013警告信息的解决

DNS 服务器 4013警告信息的解决 DNS 服务器 4013警告信息: DNS 服务器正在等待 Active Directory 域服务(AD DS)发出该目录的初始同步已完成的信号.在初始同步完成之前,DNS 服务器服务无法启动,因为可能尚未将重要的 DNS 数据复制到该域控制器上.如果 AD DS 事件日志中的事件表明存在 DNS 名称解析问题,请考虑在该计算机的 Internet 协议属性中向 DNS 服务器列表添加此域的其他 DNS 服务器的 IP 地址.在 AD DS 发出初始同步