Linux 启动mongodb服务,通过&设置为后台进程的问题

系统环境 centeros7 ;我通过普通用户启动一个mongodb服务,启动 shell 脚本如下:
mongod --dbpath='/opt/mongodb/data/db/' &
服务启动后可以正常连接,但是我将terminal窗口关闭后重新打开一个新的,这时候却连不上了。
但是通过su切换到root用户,同样方式启动mongodb服务,然后关闭terminal窗口再次重新打开一个新的,(root 或是 普通用户)依然能能够连上。
请问这是为啥(普通用户 shell 的 huponexit 已经设置为 off)?

2个回答

用nohup执行mongodb来启动后台。或者mongodb配置文件中设置daemon模式。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Linux 启动mongodb服务,通过&设置为后台进程的问题

系统环境 centeros7 ;我通过普通用户启动一个mongodb服务,启动 shell 脚本如下: mongod --dbpath='/opt/mongodb/data/db/' & 服务启动后可以正常连接,但是我将terminal窗口关闭后重新打开一个新的,这时候却连不上了。 但是通过su切换到root用户,同样方式启动mongodb服务,然后关闭terminal窗口再次重新打开一个新的,(root 或是 普通用户)依然能能够连上。 请问这是为啥(普通用户 shell 的 huponexit 已经设置为 off)?

linux下的mongodb服务自动关闭,不知道什么原因

mongodb服务总是自动关闭,不知道和森么原因,关闭之前发现都有这些日志,各位帮忙看看。 2015-04-30T20:22:08.100+0800 [conn32] end connection 127.0.0.1:49953 (3 connections now open) 2015-04-30T20:25:22.251+0800 [clientcursormon] mem (MB) res:86 virt:4796 2015-04-30T20:25:22.251+0800 [clientcursormon] mapped (incl journal view):4480 2015-04-30T20:25:22.251+0800 [clientcursormon] connections:3 2015-04-30T20:29:11.487+0800 [signalProcessingThread] got signal 1 (Hangup), will terminate after current cmd ends 2015-04-30T20:29:11.487+0800 [signalProcessingThread] now exiting 2015-04-30T20:29:11.487+0800 [signalProcessingThread] dbexit: 2015-04-30T20:29:11.487+0800 [signalProcessingThread] shutdown: going to close listening sockets... 2015-04-30T20:29:11.487+0800 [signalProcessingThread] closing listening socket: 10 2015-04-30T20:29:11.487+0800 [signalProcessingThread] closing listening socket: 13 2015-04-30T20:29:11.487+0800 [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock 2015-04-30T20:29:11.487+0800 [signalProcessingThread] shutdown: going to flush diaglog... 2015-04-30T20:29:11.488+0800 [signalProcessingThread] shutdown: going to close sockets... 2015-04-30T20:29:11.488+0800 [signalProcessingThread] shutdown: waiting for fs preallocator... 2015-04-30T20:29:11.488+0800 [signalProcessingThread] shutdown: lock for final commit... 2015-04-30T20:29:11.488+0800 [signalProcessingThread] shutdown: final commit... 2015-04-30T20:29:11.488+0800 [conn2] end connection 103.249.128.89:52222 (2 connections now open) 2015-04-30T20:29:11.488+0800 [conn14] end connection 103.249.128.89:60910 (2 connections now open) 2015-04-30T20:29:11.488+0800 [conn1] end connection 103.249.128.89:52206 (2 connections now open) 2015-04-30T20:29:11.488+0800 [signalProcessingThread] shutdown: closing all files... 2015-04-30T20:29:11.491+0800 [signalProcessingThread] closeAllFiles() finished 2015-04-30T20:29:11.491+0800 [signalProcessingThread] journalCleanup... 2015-04-30T20:29:11.492+0800 [signalProcessingThread] removeJournalFiles 2015-04-30T20:29:11.494+0800 [signalProcessingThread] shutdown: removing fs lock... 2015-04-30T20:29:11.494+0800 [signalProcessingThread] dbexit: really exiting now

MongoDB启动出现100错误

一.MongoDB启动出现100错误 ![图片说明](https://img-ask.csdn.net/upload/202004/24/1587693310_961059.png) ---------- **网上查了很多资料说是把mongod.lock 以及storage.bson文件删除然后管理员的身份运行cmd执行 net start MongoDB就可以启动了,但是我的不行,** -------- **mongodb的日志是** ------- 2020-04-24T09:54:00.040+0800 I CONTROL [main] ***** SERVER RESTARTED ***** 2020-04-24T09:54:01.545+0800 I CONTROL [main] Trying to start Windows service 'MongoDB' 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] MongoDB starting : pid=52060 port=27017 dbpath=D:\install\MangoDB\MangoDBInstall\data 64-bit host=DESKTOP-N7U619N 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] db version v3.4.24-3-g78e64a697a 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] git version: 78e64a697a46e1fa7f85d1c52507ffbbfe30a713 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2s-fips 28 May 2019 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] allocator: tcmalloc 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] modules: none 2020-04-24T09:54:01.546+0800 I CONTROL [initandlisten] build environment: 2020-04-24T09:54:01.547+0800 I CONTROL [initandlisten] distmod: 2008plus-ssl 2020-04-24T09:54:01.547+0800 I CONTROL [initandlisten] distarch: x86_64 2020-04-24T09:54:01.547+0800 I CONTROL [initandlisten] target_arch: x86_64 2020-04-24T09:54:01.547+0800 I CONTROL [initandlisten] options: { config: "D:\install\MangoDB\MangoDBInstall\mongo.conf", net: { port: 27017 }, security: { authorization: "disabled" }, service: true, storage: { dbPath: "D:\install\MangoDB\MangoDBInstall\data", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "D:\install\MangoDB\MangoDBInstall\mongo.log", quiet: true } } 2020-04-24T09:54:01.548+0800 I - [initandlisten] Detected data files in D:\install\MangoDB\MangoDBInstall\data created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2020-04-24T09:54:01.549+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3516M,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),verbose=(recovery_progress), 2020-04-24T09:54:01.715+0800 E STORAGE [initandlisten] WiredTiger error (-31802) [1587693241:715078][52060:140734828600912], connection: Bad log file name 'WiredTigerPreplog.0000000002.baiduyun.uploading.cfg': WT_ERROR: non-specific WiredTiger error 2020-04-24T09:54:01.722+0800 I - [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error src\mongo\db\storage\wiredtiger\wiredtiger_kv_engine.cpp 277 2020-04-24T09:54:01.722+0800 I STORAGE [initandlisten] exception in initAndListen: 28595 -31802: WT_ERROR: non-specific WiredTiger error, terminating 2020-04-24T09:54:01.723+0800 I NETWORK [serviceStopWorker] shutdown: going to close listening sockets... 2020-04-24T09:54:01.723+0800 I NETWORK [serviceStopWorker] shutdown: going to flush diaglog... 2020-04-24T09:54:01.723+0800 I CONTROL [serviceStopWorker] now exiting --------- **上面提示的错误是 non-specific WiredTiger error** ---------- **我的mongo.conf的配置内容是 #数据库路径 dbpath=D:\install\MangoDB\MangoDBInstall\data #日志输出文件路径 logpath=D:\install\MangoDB\MangoDBInstall\mongo.log #错误日志采用追加模式 logappend=true #启用日志文件,默认为启用 journal=true #这个选项可以过滤掉一些无用的日志信息,若需要调试使用请设置为false quiet=true #端口号,默认为27017 port=27017 #开启mongodb认证 auth=false** ----------- **我的mongodb安装目录下的内容是** ![图片说明](https://img-ask.csdn.net/upload/202004/24/1587693594_55136.png) **------------- 删除了mongod.lock文件之后,一执行net start MongoDB就会产生一个新的mongod.lock文件** ----------------- **不懂怎么解决,求解答!!!!**

mongodb的mongos启动了 但是链接不上

E:\mongodb\bin>mongos --logpath E:\mongodb\data\m30\log\m30.log --port 40000 --configdb rs2/192.168.1.148:27030 2017-11-22T16:24:16.403+0800 W SHARDING [main] Running a sharded cluster with fewer than 3 config servers should only be done for testing purposes and is not recommended for production. 2017-11-22T16:24:16.407+0800 I CONTROL [main] log file "E:\mongodb\data\m30\log\m30.log" exists; moved to "E:\mongodb\data\m30\log\m30.log.2017-11-22T08-24-16". 这是我启动mongos 但是我telnet40000端口不通 然后mongo --port 40000 D:\mongodb\bin>mongo --port 40000 MongoDB shell version: 3.2.4 connecting to: 127.0.0.1:40000/test 2017-11-22T16:24:19.897+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:40000, reason: errno:10061 由于目标计算机积极拒绝,无法连接。 2017-11-22T16:24:19.898+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:40000, connection attempt failed : connect@src/mongo/shell/mongo.js:226:14 @(connect):1:6 exception: connect failed 这是为什么啊 是我启动不对吗

mongodb 在 linux下的启动提示信息,求解!

求助,安装mongo 3.0.4 后,运行mongo命令后提示如下,一头雾水啊,不知可有哪位大侠遇到过同样问题,肯请指点一二,如何处理其中的警告问题,不胜感谢 Server has startup warnings: 2015-04-29T18:03:17.544+0800 I STORAGE [initandlisten] 2015-04-29T18:03:17.544+0800 I STORAGE [initandlisten] ** WARNING: Readahead for /var/lib/mongo is set to 4096KB 2015-04-29T18:03:17.544+0800 I STORAGE [initandlisten] ** We suggest setting it to 256KB (512 sectors) or less 2015-04-29T18:03:17.544+0800 I STORAGE [initandlisten] ** http://dochub.mongodb.org/core/readahead 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files. 2015-04-29T18:03:17.679+0800 I CONTROL [initandlisten]

mongodb安装的问题,没有出现28017端口

刚刚在装mongodb,发现cmd启动的时候没有出现28017端口,只出现27017,我见书上写的是必须两个端口同时出现才算安装成功,于是用客户端连接了下,果然是没有安装成功。找不到原因,求大神指点。。。。。。。。

springboot连接linux下mongodb超时

**com.mongodb.MongoSocketOpenException: Exception opening socket** _ at com.mongodb.connection.SocketStream.open(SocketStream.java:62) ~[mongodb-driver-core-3.6.3.jar:na] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:126) ~[mongodb-driver-core-3.6.3.jar:na] at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:114) ~[mongodb-driver-core-3.6.3.jar:na] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]_ **Caused by: java.net.SocketTimeoutException: connect timed out** _at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_161] at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) ~[na:1.8.0_161] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_161] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_161] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_161] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) ~[na:1.8.0_161] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_161] at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_161] at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:59) ~[mongodb-driver-core-3.6.3.jar:na] at com.mongodb.connection.SocketStream.open(SocketStream.java:57) ~[mongodb-driver-core-3.6.3.jar:na] ... 3 common frames omitted _ **网页提示:** Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri Apr 13 18:04:16 CST 2018 There was an unexpected error (type=Internal Server Error, status=500). Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=39.106.34.232:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.SocketTimeoutException: connect timed out}}]; nested exception is com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=39.106.34.232:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.SocketTimeoutException: connect timed out}}] **linux 内容:** [root@root bin]# ps aux |grep mongodb root 3234 0.3 4.2 330032 43740 ? Sl 17:37 0:04 ./mongod -f mongodb.cnf root 3293 0.0 0.0 105368 880 pts/1 S+ 18:01 0:00 grep mongodb [root@root bin]# netstat -nalp | grep mongod tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 3234/./mongod unix 2 [ ACC ] STREAM LISTENING 31464 3234/./mongod /tmp/mongodb-27017.sock [root@root bin]# 我连接的是阿里云的服务器.直接搭建的centos6.8 下的mongodb

MongoDB迁移之后,启动报错 WT_PANIC: WiredTiger library panic

软件运行环境为 Centos 7.4 执行如下命令后报错(mongodb是备份的数据库): ./mongod --storageEngine wiredTiger --auth --dbpath /data/mongo_data/mongodb/ --unixSocketPrefix=/data/mongo_data/ --bind_ip=0.0.0.0 --logpath /data/mongo_data/logs/mongodb.out --quiet & 详细错误,启动异常错误为如下 2018-10-25T10:17:15.030+0800 W - [initandlisten] Detected unclean shutdown - /data/mongo_data/mongodb/mongod.lock is not empty. 2018-10-25T10:17:15.030+0800 W STORAGE [initandlisten] Recovering data from the last clean checkpoint. 2018-10-25T10:17:15.030+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=11G,session_max=20000,eviction=(threads_max=4),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), 2018-10-25T10:17:15.034+0800 E STORAGE [initandlisten] WiredTiger (0) [1540433835:34734][16529:0x7f1cc3334cc0], file:WiredTiger.wt, connection: read checksum error for 4096B block at offset 94208: block header checksum of 3534655478 doesn't match expected checksum of 351635639 2018-10-25T10:17:15.034+0800 E STORAGE [initandlisten] WiredTiger (0) [1540433835:34762][16529:0x7f1cc3334cc0], file:WiredTiger.wt, connection: WiredTiger.wt: encountered an illegal file format or internal value 2018-10-25T10:17:15.034+0800 E STORAGE [initandlisten] WiredTiger (-31804) [1540433835:34770][16529:0x7f1cc3334cc0], file:WiredTiger.wt, connection: the process must exit and restart: WT_PANIC: WiredTiger library panic 2018-10-25T10:17:15.034+0800 I - [initandlisten] Fatal Assertion 28558 2018-10-25T10:17:15.043+0800 I CONTROL [initandlisten] 0xf75549 0xf12271 0xef60f1 0xd93f8a 0x13ab369 0x13ab525 0x13ab9c4 0x12fe3d2 0x131811c 0x1315ef8 0x1316d52 0x1340b4b 0x13aa50b 0x13780ab 0x133e207 0xd7e61c 0xd7c3a8 0xa7dc5d 0x7f57a2 0x7fa739 0x7f1cc186f445 0x7f3549 ----- BEGIN BACKTRACE ----- {"backtrace":[{"b":"400000","o":"B75549"},{"b":"400000","o":"B12271"},{"b":"400000","o":"AF60F1"},{"b":"400000","o":"993F8A"},{"b":"400000","o":"FAB369"},{"b":"400000","o":"FAB525"},{"b":"400000","o":"FAB9C4"},{"b":"400000","o":"EFE3D2"},{"b":"400000","o":"F1811C"},{"b":"400000","o":"F15EF8"},{"b":"400000","o":"F16D52"},{"b":"400000","o":"F40B4B"},{"b":"400000","o":"FAA50B"},{"b":"400000","o":"F780AB"},{"b":"400000","o":"F3E207"},{"b":"400000","o":"97E61C"},{"b":"400000","o":"97C3A8"},{"b":"400000","o":"67DC5D"},{"b":"400000","o":"3F57A2"},{"b":"400000","o":"3FA739"},{"b":"7F1CC184D000","o":"22445"},{"b":"400000","o":"3F3549"}],"processInfo":{ "mongodbVersion" : "3.0.6", "gitVersion" : "1ef45a23a4c5e3480ac919b28afcba3c615488f2", "uname" : { "sysname" : "Linux", "release" : "3.10.0-693.el7.x86_64", "version" : "#1 SMP Tue Aug 22 21:09:27 UTC 2017", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "7F7AA372EDE22BA34234ADA10A8AF2E665681140" }, { "b" : "7FFFF8CC1000", "elfType" : 3, "buildId" : "7FB8E16CEA1B913E2703A6E4159FB468CD1E3507" }, { "b" : "7F1CC2F18000", "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "F4C04BCE85D2D269D0A2AF4972FC69805B50345B" }, { "b" : "7F1CC2CA6000", "path" : "/lib64/libssl.so.10", "elfType" : 3, "buildId" : "ED0AC7DEB91A242C194B3DEF27A215F41CE43116" }, { "b" : "7F1CC2845000", "path" : "/lib64/libcrypto.so.10", "elfType" : 3, "buildId" : "BC0AE9CA0705BEC1F0C0375AAD839843BB219CB1" }, { "b" : "7F1CC263D000", "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "D33989EC31EFE745EB0D3B68A92D19E77D7DDFDA" }, { "b" : "7F1CC2439000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "5CDB5A56336E7E2BD14FFA189411E44A834AFCD8" }, { "b" : "7F1CC2132000", "path" : "/lib64/libstdc++.so.6", "elfType" : 3, "buildId" : "9589AE0FDA6AEB1183EBA1C62A328F933E7817FD" }, { "b" : "7F1CC1E30000", "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "F4CAE74047F9AA2D5A71FDEC67C4285D75753EBA" }, { "b" : "7F1CC1C1A000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "531AA1391EA4E1489D5EF11AA5DC2FFD9E2BDFEE" }, { "b" : "7F1CC184D000", "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "CB4B7554D1ADBEF2F001142DD6F0A5139FC9AA69" }, { "b" : "7F1CC3134000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "D266B1F6650927E18108323BCCA8F7B68E68EB92" }, { "b" : "7F1CC1600000", "path" : "/lib64/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "DA322D74F55A0C4293085371A8D0E94B5962F5E7" }, { "b" : "7F1CC1318000", "path" : "/lib64/libkrb5.so.3", "elfType" : 3, "buildId" : "B69E63024D408E400401EEA6815317BDA38FB7C2" }, { "b" : "7F1CC1114000", "path" : "/lib64/libcom_err.so.2", "elfType" : 3, "buildId" : "A3832734347DCA522438308C9F08F45524C65C9B" }, { "b" : "7F1CC0EE1000", "path" : "/lib64/libk5crypto.so.3", "elfType" : 3, "buildId" : "A48639BF901DB554479BFAD114CB354CF63D7D6E" }, { "b" : "7F1CC0CCB000", "path" : "/lib64/libz.so.1", "elfType" : 3, "buildId" : "EA8E45DC8E395CC5E26890470112D97A1F1E0B65" }, { "b" : "7F1CC0ABD000", "path" : "/lib64/libkrb5support.so.0", "elfType" : 3, "buildId" : "6FDF5B013FD2739D304CFB9D723DCBC149EE03C9" }, { "b" : "7F1CC08B9000", "path" : "/lib64/libkeyutils.so.1", "elfType" : 3, "buildId" : "2E01D5AC08C1280D013AAB96B292AC58BC30A263" }, { "b" : "7F1CC06A0000", "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "2BDC2B6FF0B2C204CCE34D139A9EADA0272EB070" }, { "b" : "7F1CC0479000", "path" : "/lib64/libselinux.so.1", "elfType" : 3, "buildId" : "A88379F56A51950A33198890D37F5F8AEE71F8B4" }, { "b" : "7F1CC0217000", "path" : "/lib64/libpcre.so.1", "elfType" : 3, "buildId" : "9CA3D11F018BEEB719CDB34BE800BF1641350D0A" } ] }} mongod(_ZN5mongo15printStackTraceERSo+0x29) [0xf75549] mongod(_ZN5mongo10logContextEPKc+0xE1) [0xf12271] mongod(_ZN5mongo13fassertFailedEi+0x61) [0xef60f1] mongod(+0x993F8A) [0xd93f8a] mongod(__wt_eventv+0x489) [0x13ab369] mongod(__wt_err+0x95) [0x13ab525] mongod(__wt_panic+0x24) [0x13ab9c4] mongod(__wt_bm_read+0x72) [0x12fe3d2] mongod(__wt_bt_read+0x1AC) [0x131811c] mongod(__wt_btree_tree_open+0x58) [0x1315ef8] mongod(__wt_btree_open+0xD02) [0x1316d52] mongod(__wt_conn_btree_get+0x19B) [0x1340b4b] mongod(__wt_session_get_btree+0x41B) [0x13aa50b] mongod(__wt_metadata_open+0x2B) [0x13780ab] mongod(wiredtiger_open+0xCD7) [0x133e207] mongod(_ZN5mongo18WiredTigerKVEngineC1ERKSsS2_bb+0x30C) [0xd7e61c] mongod(+0x97C3A8) [0xd7c3a8] mongod(_ZN5mongo23GlobalEnvironmentMongoD22setGlobalStorageEngineERKSs+0x30D) [0xa7dc5d] mongod(_ZN5mongo13initAndListenEi+0x422) [0x7f57a2] mongod(main+0x139) [0x7fa739] libc.so.6(__libc_start_main+0xF5) [0x7f1cc186f445] mongod(+0x3F3549) [0x7f3549] ----- END BACKTRACE ----- 2018-10-25T10:17:15.043+0800 I - [initandlisten] ***aborting after fassert() failure

MongoDB - 重新启动VPS后丢失了与数据库的连接

<div class="post-text" itemprop="text"> <p>I am using Digital Ocean and rebooted my VPS and now my app won't start.</p> <p>At first it said it lost connection to my database and now it's just a white screen. I don't know what to do from here.</p> <p>Here is the message:</p> <pre><code>Unable to connect to MongoDB: Failed to connect to: localhost:27017: Remote server has closed the connection </code></pre> <p>The site is a Codeigniter.</p> <p><a href="http://dev.teachtomarket.com" rel="nofollow">The Site</a></p> <p>If I run <code>mongod</code> then I get this (not that I should need to run this):</p> <pre><code>Tue Oct 28 19:42:45.031 [initandlisten] MongoDB starting : pid=1240 port=27017 dbpath=/data/db/ 64-bit host=lucrum Tue Oct 28 19:42:45.031 [initandlisten] db version v2.4.8 Tue Oct 28 19:42:45.031 [initandlisten] git version: a350fc38922fbda2cec8d5dd842237b904eafc14 Tue Oct 28 19:42:45.032 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49 Tue Oct 28 19:42:45.032 [initandlisten] allocator: tcmalloc Tue Oct 28 19:42:45.032 [initandlisten] options: {} Tue Oct 28 19:42:45.041 [initandlisten] journal dir=/data/db/journal Tue Oct 28 19:42:45.042 [initandlisten] recover : no journal files present, no recovery needed Tue Oct 28 19:42:45.166 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017 Tue Oct 28 19:42:45.166 [initandlisten] ERROR: addr already in use Tue Oct 28 19:42:45.167 [initandlisten] now exiting Tue Oct 28 19:42:45.167 dbexit: Tue Oct 28 19:42:45.167 [initandlisten] shutdown: going to close listening sockets... Tue Oct 28 19:42:45.167 [initandlisten] shutdown: going to flush diaglog... Tue Oct 28 19:42:45.168 [initandlisten] shutdown: going to close sockets... Tue Oct 28 19:42:45.168 [initandlisten] shutdown: waiting for fs preallocator... Tue Oct 28 19:42:45.168 [initandlisten] shutdown: lock for final commit... Tue Oct 28 19:42:45.168 [initandlisten] shutdown: final commit... Tue Oct 28 19:42:45.168 [websvr] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:28017 Tue Oct 28 19:42:45.169 [websvr] ERROR: addr already in use Tue Oct 28 19:42:45.172 [initandlisten] shutdown: closing all files... Tue Oct 28 19:42:45.173 [initandlisten] closeAllFiles() finished Tue Oct 28 19:42:45.173 [initandlisten] journalCleanup... Tue Oct 28 19:42:45.173 [initandlisten] removeJournalFiles Tue Oct 28 19:42:45.174 [initandlisten] shutdown: removing fs lock... Tue Oct 28 19:42:45.174 dbexit: really exiting now </code></pre> </div>

linux环境中,端口限制内部127.0.0.1。百度后了解只能本机访问,该怎么样修改成0.0.0.0对外

[root@localhost conf]# netstat -ltn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:11888 0.0.0.0:* LISTEN tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN tcp6 0 0 :::3306 :::* LISTEN tcp6 0 0 :::11888 :::* LISTEN tcp6 0 0 ::1:631 :::* LISTEN tcp6 0 0 ::1:25 :::* LISTEN tcp6 0 0 ::1:6010 :::* LISTEN

dockerfile中设置ENTRYPOINT为一个shell脚本后,端口无法映射问题

我在dockerfile中设置ENTRYPOINT为一个shell脚本,以便容器启动后自动执行 启动一个应用程序,容器镜像使用的系统是centos7,下面是写的dockerfile指令: FROM kf/productbase ADD projectDB.tar.gz /home/kf_product ADD project-entrypoint.sh /usr/local/bin RUN chmod +x usr/local/bin/project-entrypoint.sh ENTRYPOINT ["usr/local/bin/project-entrypoint.sh"] EXPOSE 9090 EXPOSE 9030 生成新的镜像以后,docker run命令使用-p 参数,容器也启动成功了,但用docker ps查看,显示端口未映射至宿主机,客户端也确实无法通过宿主机的映射端口连接至容器内的服务,求问是哪里有问题

php_mongo drive没有安装成功,class mongo not found

我成功安装了Mongodb,也成功启动了,但是在zend中编写程序时,使用Mongo对象都出现错误,显示class Mongo not found。 找了很多资料,在xampp中的php\ext添加了php_mongo.dll,也在php.ini中加入了extension=php_mongo.dll,重启了xampp的apache服务,还是不行,求各位大神帮我出出主意吧,多谢

如何正确配置docker中的supervisor

<div class="post-text" itemprop="text"> <p>I have a working laravel environment using docker. my projects has multiple services in different container such as redis, mongodb, mysqldb and nodejs. I want to use supervisor on my project to interact with redis for the queues and php to run the job. I have done some testing and research but I really can't make it work. </p> <p>so here is my DockerFile:</p> <pre><code>FROM php:7.3-fpm # Copy composer.lock and composer.json COPY composer.lock composer.json /var/www/ # Set working directory WORKDIR /var/www # Install dependencies RUN apt-get update &amp;&amp; apt-get install -y \ build-essential \ mariadb-client \ libpng-dev \ libzip-dev \ libjpeg62-turbo-dev \ libfreetype6-dev \ locales \ zip \ jpegoptim optipng pngquant gifsicle \ vim \ unzip \ git \ curl \ cron \ supervisor # Clear cache RUN apt-get clean &amp;&amp; rm -rf /var/lib/apt/lists/* # Install extensions RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ RUN docker-php-ext-install gd RUN docker-php-ext-configure bcmath --enable-bcmath RUN docker-php-ext-install bcmath # install mongodb ext RUN pecl install mongodb \ &amp;&amp; docker-php-ext-enable mongodb # Install composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Add user for laravel application RUN groupadd -g 1000 www RUN useradd -u 1000 -ms /bin/bash -g www www # Copy supervisor configs COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Copy existing application directory contents COPY . /var/www # Copy existing application directory permissions COPY --chown=www:www . /var/www COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf CMD ["/usr/bin/supervisord"] # Change current user to www USER www # Expose port 9000 and start php-fpm server EXPOSE 9000 CMD ["php-fpm"] </code></pre> <p>and my docker-compose.yml file</p> <pre><code>version: '3' services: #PHP Service php: build: context: . dockerfile: Dockerfile image: digitalocean.com/php container_name: php restart: unless-stopped tty: true environment: SERVICE_NAME: php SERVICE_TAGS: dev working_dir: /var/www volumes: - ./:/var/www - ./php/local.ini:/usr/local/etc/php/conf.d/local.ini - ./supervisord.conf:/etc/supervisor/conf.d/supervisord.conf networks: - app-network #NODEJS Service nodejs: image: node:10 container_name: nodejs restart: unless-stopped working_dir: /var/www volumes: - ./:/var/www tty: true networks: - app-network #Nginx Service nginx: image: nginx:alpine container_name: nginx restart: unless-stopped tty: true ports: - "80:80" - "443:443" volumes: - ./:/var/www - ./nginx/conf.d/:/etc/nginx/conf.d/ networks: - app-network #MySQL Service mysqldb: image: mysql:5.7.22 container_name: mysqldb restart: unless-stopped tty: true ports: - "3306:3306" environment: MYSQL_DATABASE: ${DB_DATABASE} MYSQL_USER: ${DB_USERNAME} MYSQL_PASSWORD: ${DB_PASSWORD} MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} SERVICE_TAGS: dev SERVICE_NAME: mysql volumes: - dbdata:/var/lib/mysql - ./mysql/my.cnf:/etc/mysql/my.cnf networks: - app-network #MongoDB Service mongodb: image: mongo:3 container_name: mongodb restart: unless-stopped tty: true ports: - "27017:27017" networks: - app-network #Redis Service redis: image: redis container_name: redis restart: unless-stopped tty: true ports: - "${REDIS_PORT}:6379" networks: - app-network #Docker Networks networks: app-network: driver: bridge #Volumes volumes: dbdata: driver: local </code></pre> <p>you might also want to see my supervisord.conf</p> <pre><code>[supervisord] user=www nodaemon=true logfile=/dev/null logfile_maxbytes=0 pidfile=/var/run/supervisord.pid loglevel = INFO [unix_http_server] file=/var/run/supervisor.sock chmod=0700 username=www password=www [supervisorctl] serverurl=unix:///var/run/supervisord.sock username=www password=www [rpcinterface:supervisor] supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface [program:php-fpm] command = /usr/local/sbin/php-fpm autostart=true autorestart=true priority=5 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [program:ohwo-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/www/artisan horizon autostart=false autorestart=true user=www numprocs=1 redirect_stderr=true stdout_logfile=/var/www/laravel-worker.log </code></pre> <p>so from that setup. when the containers is UP it seems that supervisord is not working because if I run <code>php artisan horizon</code> manually on my php container the queuing works perfectly. btw horizon is the tool i use for queuing. </p> <p>and then I also try to run <code>supervisorctl</code> on my php container and I got this error <code>unix:///var/run/supervisord.sock no such file</code></p> <p>so I'm just pretty new to docker just started few months ago. I do know how to configure supervisord on linux but i can't make it work on docker. </p> <p>so please pardon my stupidity :) </p> </div>

很奇怪的segmentation fault(core dumped)的问题。c++

源代码如下,统计文件中字符串出现个数 #include<iostream> #include<fstream> #include<string.h> #include<iomanip> using namespace std; int Num; int main(int argc,char *argv[]){ //参数分别是字符串和文件 int length=strlen(argv[1]); //字符串长度 ifstream ifile; ifile.open(argv[2],ios::binary); ifile.seekg(0,ios::beg); char *temp, *ptr,*p; //temp一行行读入文件内容,*ptr *索引指针 while(1){ if(ifile.tellg()==EOF)break; //判断文件是否结束 //cout<<ifile.tellg()<<endl; ifile.getline(temp,1024); ptr=temp; (注意!!!!!) //cout<<temp<<strlen(temp)<<endl; //cout<<Num<<endl; while(1){ if(p=strstr(ptr,argv[1])){ Num++; //cout<<p<<endl; ptr=p+length; }else break; } memset(temp,0,1024); } cout<<Num<<endl; } 测试文件text.txt/dat(其中有空格论坛不能显示,所以第一次运行统计数字和看起来不一样) helloworldhelloworld helloworld world world helloworld 运行./a.out world text.txt 两次运行结果 第一次("注意"那行没有被注释时结果) helloworldhelloworld20 helloworld12 world 7 world 8 helloworld10//temp&strlen(temp) 0//最后一次读入空,长度为0 6//Num 第二次注释那一行,重新编译运行,显示错误 segmentation fault(core dumped) 按理那一行没什么作用,只是看读入是否正确用的,为什么会对结果产生影响??? 环境是fedora 另,如果换成windows 不报错,但结果恒为0 ubuntu即使有那一行也报错,错误一样segmentation fault(core dumped)

java项目在本地上运行无问题,打war包到服务器上,部分功能有问题

tomcat日志: 23-Nov-2017 00:49:07.772 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance. 23-Nov-2017 00:49:07.773 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"] 23-Nov-2017 00:49:07.824 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 23-Nov-2017 00:49:07.874 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina 23-Nov-2017 00:49:08.461 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [MaintainSystem] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 23-Nov-2017 00:49:08.462 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [MaintainSystem] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Thread.sleep(Native Method) org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:104) 23-Nov-2017 00:49:08.462 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [MaintainSystem] appears to have started a thread named [cluster-ClusterId{value='5a1593f852e92b26c5f5d86c', description='null'}-192.168.7.178:27017] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.net.PlainSocketImpl.socketConnect(Native Method) java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) java.net.Socket.connect(Socket.java:589) com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50) com.mongodb.connection.SocketStream.open(SocketStream.java:58) com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114) com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128) java.lang.Thread.run(Thread.java:745) 23-Nov-2017 00:49:08.463 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [MaintainSystem] appears to have started a thread named [Thread-5] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Thread.sleep(Native Method) com.xd.util.DatabaseCleaner.run(DatabaseCleaner.java:50) 23-Nov-2017 00:49:08.480 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"] 23-Nov-2017 00:49:08.490 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"] 23-Nov-2017 00:49:08.589 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"] 23-Nov-2017 00:49:08.591 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"] 23-Nov-2017 00:49:21.473 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.20 23-Nov-2017 00:49:21.475 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Feb 15 2015 18:10:42 UTC 23-Nov-2017 00:49:21.475 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.20.0 23-Nov-2017 00:49:21.475 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 23-Nov-2017 00:49:21.475 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 2.6.32-573.el6.x86_64 23-Nov-2017 00:49:21.475 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 23-Nov-2017 00:49:21.475 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /home/dabai/jdk1.8.0_91/jre 23-Nov-2017 00:49:21.475 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_91-b14 23-Nov-2017 00:49:21.476 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 23-Nov-2017 00:49:21.476 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/dabai/apache-tomcat-8.0.20 23-Nov-2017 00:49:21.476 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /home/dabai/apache-tomcat-8.0.20 23-Nov-2017 00:49:21.476 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/dabai/apache-tomcat-8.0.20/conf/logging.properties 23-Nov-2017 00:49:21.477 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 23-Nov-2017 00:49:21.477 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/home/dabai/apache-tomcat-8.0.20/endorsed 23-Nov-2017 00:49:21.477 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/dabai/apache-tomcat-8.0.20 23-Nov-2017 00:49:21.477 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/dabai/apache-tomcat-8.0.20 23-Nov-2017 00:49:21.478 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/dabai/apache-tomcat-8.0.20/temp 23-Nov-2017 00:49:21.478 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 23-Nov-2017 00:49:21.607 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 23-Nov-2017 00:49:21.621 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 23-Nov-2017 00:49:21.624 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 23-Nov-2017 00:49:21.625 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 23-Nov-2017 00:49:21.626 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 632 ms 23-Nov-2017 00:49:21.658 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina 23-Nov-2017 00:49:21.658 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.20 23-Nov-2017 00:49:21.681 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/dabai/apache-tomcat-8.0.20/webapps/MaintainSystem.war 23-Nov-2017 00:50:06.881 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/dabai/apache-tomcat-8.0.20/webapps/MaintainSystem.war has finished in 45,198 ms 23-Nov-2017 00:50:06.882 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/dabai/apache-tomcat-8.0.20/webapps/examples 23-Nov-2017 00:50:07.077 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/dabai/apache-tomcat-8.0.20/webapps/examples has finished in 195 ms 23-Nov-2017 00:50:07.078 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/dabai/apache-tomcat-8.0.20/webapps/manager 23-Nov-2017 00:50:07.103 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/dabai/apache-tomcat-8.0.20/webapps/manager has finished in 25 ms 23-Nov-2017 00:50:07.104 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/dabai/apache-tomcat-8.0.20/webapps/host-manager 23-Nov-2017 00:50:07.132 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/dabai/apache-tomcat-8.0.20/webapps/host-manager has finished in 28 ms 23-Nov-2017 00:50:07.133 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/dabai/apache-tomcat-8.0.20/webapps/docs 23-Nov-2017 00:50:07.156 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/dabai/apache-tomcat-8.0.20/webapps/docs has finished in 23 ms 23-Nov-2017 00:50:07.157 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/dabai/apache-tomcat-8.0.20/webapps/ROOT 23-Nov-2017 00:50:07.177 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/dabai/apache-tomcat-8.0.20/webapps/ROOT has finished in 19 ms 23-Nov-2017 00:50:07.185 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 23-Nov-2017 00:50:07.198 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] 23-Nov-2017 00:50:07.201 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 45574 ms web项目运行后,报错提示: Failed to load resource: the server responded with a status of 500 (Internal Server Error) saveOpMiInfo.do?urlCode=49D4:75 Uncaught ReferenceError: maxlengthBind is not defined at saveOpMiInfo.do?urlCode=49D4:75 saveOpMiInfo.do Failed to load resource: the server responded with a status of 500 (Internal Server Error)

hive中执行查询报错,请哥哥们解决

org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /tmp/hive-root/hive_2013-08-15_13-46-55_630_3316993537720067107/-mr-10002/1/emptyFile could only be replicated to 0 nodes, instead of 1 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1639) at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:729) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:578) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1393) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1389) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1136) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1387) at org.apache.hadoop.ipc.Client.call(Client.java:1107) at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:229) at $Proxy5.addBlock(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:85) at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:62) at $Proxy5.addBlock(Unknown Source) at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:3686) at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:3546) at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2600(DFSClient.java:2749) at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2989) Job Submission failed with exception 'org.apache.hadoop.ipc.RemoteException(java.io.IOException: File /tmp/hive-root/hive_2013-08-15_13-46-55_630_3316993537720067107/-mr-10002/1/emptyFile could only be replicated to 0 nodes, instead of 1 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1639) at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:729) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:578) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1393) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1389) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1136) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1387))' java.lang.IllegalArgumentException: Can not create a Path from an empty string at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82) at org.apache.hadoop.fs.Path.<init>(Path.java:90) at org.apache.hadoop.hive.ql.exec.Utilities.getHiveJobID(Utilities.java:379) at org.apache.hadoop.hive.ql.exec.Utilities.clearMapRedWork(Utilities.java:192) at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:476) at org.apache.hadoop.hive.ql.exec.MapRedTask.execute(MapRedTask.java:136) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:133) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1332) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1123) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:931) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:255) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:212) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:554) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:156) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask

在Tomcat部署的时候出现Could not resolve placeholder

四月 08, 2015 5:24:09 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_31\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_40/bin/server;C:/Program Files/Java/jre1.8.0_40/bin;C:/Program Files/Java/jre1.8.0_40/lib/amd64;D:\app\Administrator\product\11.2.0\client_2\bin;D:\app\Administrator\product\11.2.0\client_1\bin;D:\app\Administrator\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Apache\apache-maven-3.2.5\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Java\jre1.8.0_31\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\eclipse;;. 四月 08, 2015 5:24:09 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:pkp-deliver-web' did not find a matching property. 四月 08, 2015 5:24:09 下午 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-8080 四月 08, 2015 5:24:09 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 347 ms 四月 08, 2015 5:24:09 下午 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 四月 08, 2015 5:24:09 下午 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.43 四月 08, 2015 5:24:10 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext [08/04/15 05:24:10:010 CST] INFO context.ContextLoader: Root WebApplicationContext: initialization started [08/04/15 05:24:10:010 CST] INFO support.XmlWebApplicationContext: Refreshing Root WebApplicationContext: startup date [Wed Apr 08 17:24:10 CST 2015]; root of context hierarchy [08/04/15 05:24:10:010 CST] INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [jar:file:/C:/Users/Administrator/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/pkp-deliver-web/WEB-INF/lib/framework-server-1.1.2.jar!/com/deppon/foss/framework/server/META-INF/spring.xml] [08/04/15 05:24:10:010 CST] INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [jar:file:/C:/Users/Administrator/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/pkp-deliver-web/WEB-INF/lib/pda-bdm-push-0.0.1-express-SNAPSHOT.jar!/com/deppon/pda/bdm/module/push/server/META-INF/spring.xml] [08/04/15 05:24:10:010 CST] INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring.xml] [08/04/15 05:24:11:011 CST] INFO support.DefaultListableBeanFactory: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@fd8294b: defining beans [org.springframework.aop.config.internalAutoProxyCreator,pushDao,pushService,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,{http://www.deppon.com/fin/module/claimpay/service}IFinClaimNumServicePort.http-conduit,dataSourceSpied,dataSource,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,sqlSessionFactory,mongo,mongodbFactory,performanceLog,mongoLogSender,poolConfig,client,storage,client1,storage1,client2,storage2,client3,storage3,esbInitUtil,fileConfig,fileManager,fileUpload,attachementDao,attachementService,appProfile,logSwitch,activeMQUtil,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,extendConfigurationDao,smsSender,messageCache,messageCacheProvider,oracleDialect,exceptionConvert,syncDataFetcherScanner,webApplicationContextHolder,JSONInterceptor,securityInterceptor,messageBundle,JSPErrorResult]; root of factory hierarchy [08/04/15 05:24:11:011 CST] ERROR context.ContextLoader: Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'mongo' defined in ServletContext resource [/WEB-INF/spring.xml]: Could not resolve placeholder 'mongodb.host' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:287) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 四月 08, 2015 5:24:11 下午 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class com.deppon.foss.framework.server.web.ContextLoaderListener org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'mongo' defined in ServletContext resource [/WEB-INF/spring.xml]: Could not resolve placeholder 'mongodb.host' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:287) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 四月 08, 2015 5:24:11 下午 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 四月 08, 2015 5:24:11 下午 org.apache.catalina.core.StandardContext start 严重: Context [/pkp-deliver-web] startup failed due to previous errors 四月 08, 2015 5:24:11 下午 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext 四月 08, 2015 5:24:11 下午 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 四月 08, 2015 5:24:11 下午 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 四月 08, 2015 5:24:11 下午 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/18 config=null 四月 08, 2015 5:24:11 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 2212 ms 好纠结,怎么解决啊?这是一个二次开发的项目……

因安装开源ruby项目zheye,需要特定的ruby1.9.2等环境,但gem源里只有低版本,有没有什么办法解决本地安装rails3的依赖问题或如何更新gem源

事实上,是因为我要安装一个ruby的环境来安装一款开源软件zheye。需要的环境ruby1.9.2是必须版本,以下是所需要的一些环境,及我的安装过程和结果。如果可以,请帮忙诊断一下。由于所需要的版本都不是源里有的。所以只能下载了源码包在本地编译安装。 最后安装完rails后访问http://127.0.0.1:3000,显示找不到页面,不知道什么原因,请帮忙。 相关环境已经安装如下(均为编译安装,并且无出错) 不知道问题出现在哪里 >ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux] >mongo --version MongoDB shell version: 1.6.3 >redis-server -v Redis server version 2.2.2 (00000000:0) >node hellonode.js(测试js) =========================================================== var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello Node.jsn'); }).listen(8124, "127.0.0.1"); console.log('Server running at http://127.0.0.1:8124/'); =========================================================== 结果:Server running at http://127.0.0.1:8124/ >sudo service redis-server start Starting redis-server: [8195] 07 Dec 18:48:34 * Server started, Redis version 2.2.2 [8195] 07 Dec 18:48:34 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. [8195] 07 Dec 18:48:34 * The server is now ready to accept connections on port 8379 [8195] 07 Dec 18:48:34 - 0 clients connected (0 slaves), 539440 bytes in use [8195] 07 Dec 18:48:39 - 0 clients connected (0 slaves), 539440 bytes in use  >sudo start mongodb start: Job is already running: mongodb >rails s 正常 (本地编译安装因依赖太多,所以只好从源里安装,而后果就是又安装了ruby1.8,不在符合系统要求,但毕竟可以往下走) 需要说明的地方 ============================================================ 1.在安装bundle install --path vendor/bundle时,总是提示rake-0.9.2在源中找不到(bundle的安装过程中总是有一步,feching source index from rubygems.org)。所以,我单独下载安装了rake0.9.2。并且修改了 /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/spec_set.rb 注释掉了raise GemNotFound, "Could not find #{s.full_name} in any of the sources" unless spec 得以进行后续安装。 2.安装rails时,用的是sudo apt-get install rails。而后执行rails s未报错 但 $ rake mongoid_sphinx:configure $ rake mongoid_sphinx:index $ rake mongoid_sphinx:start这几步没能成功进行,提示类似如下  rake aborted! no such file to load -- action_controller/railtie 3.redis-server启动时总是提示端口占用,因此我修改了端口到8379

MySQL 8.0.19安装教程(windows 64位)

话不多说直接开干 目录 1-先去官网下载点击的MySQL的下载​ 2-配置初始化的my.ini文件的文件 3-初始化MySQL 4-安装MySQL服务 + 启动MySQL 服务 5-连接MySQL + 修改密码 先去官网下载点击的MySQL的下载 下载完成后解压 解压完是这个样子 配置初始化的my.ini文件的文件 ...

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

navicat(内含激活码)

navicat支持mysql的可视化操作,内涵激活码,不用再忍受弹框的痛苦。

HTML期末大作业

这是我自己做的HTML期末大作业,花了很多时间,稍加修改就可以作为自己的作业了,而且也可以作为学习参考

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

基于STM32的电子时钟设计

时钟功能 还有闹钟功能,温湿度功能,整点报时功能 你值得拥有

学生成绩管理系统(PHP + MYSQL)

做的是数据库课程设计,使用的php + MySQL,本来是黄金搭配也就没啥说的,推荐使用wamp服务器,里面有详细的使用说明,带有界面的啊!呵呵 不行的话,可以给我留言!

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

程序员的兼职技能课

获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:itxy41)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!

实用主义学Python(小白也容易上手的Python实用案例)

原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例

Java8零基础入门视频教程

这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

零基础学C#编程—C#从小白到大咖

本课程从初学者角度出发,提供了C#从入门到成为程序开发高手所需要掌握的各方面知识和技术。 【课程特点】 1 由浅入深,编排合理; 2 视频讲解,精彩详尽; 3 丰富实例,轻松易学; 4 每章总结配有难点解析文档。 15大章节,228课时,1756分钟与你一同进步!

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

多功能数字钟.zip

利用数字电子计数知识设计并制作的数字电子钟(含multisim仿真),该数字钟具有显示星期、24小时制时间、闹铃、整点报时、时间校准功能

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

想学好JAVA必须要报两万的培训班吗? Java大神勿入 如果你: 零基础想学JAVA却不知道从何入手 看了一堆书和视频却还是连JAVA的环境都搭建不起来 囊中羞涩面对两万起的JAVA培训班不忍直视 在职没有每天大块的时间专门学习JAVA 那么恭喜你找到组织了,在这里有: 1. 一群志同道合立志学好JAVA的同学一起学习讨论JAVA 2. 灵活机动的学习时间完成特定学习任务+每日编程实战练习 3. 热心助人的助教和讲师及时帮你解决问题,不按时完成作业小心助教老师的家访哦 上一张图看看前辈的感悟: &nbsp; &nbsp; 大家一定迫不及待想知道什么是极简JAVA学习营了吧,下面就来给大家说道说道: 什么是极简JAVA学习营? 1. 针对Java小白或者初级Java学习者; 2. 利用9天时间,每天1个小时时间; 3.通过 每日作业 / 组队PK / 助教答疑 / 实战编程 / 项目答辩 / 社群讨论 / 趣味知识抢答等方式让学员爱上学习编程 , 最终实现能独立开发一个基于控制台的‘库存管理系统’ 的学习模式 极简JAVA学习营是怎么学习的? &nbsp; 如何报名? 只要购买了极简JAVA一:JAVA入门就算报名成功! &nbsp;本期为第四期极简JAVA学习营,我们来看看往期学员的学习状态: 作业看这里~ &nbsp; 助教的作业报告是不是很专业 不交作业打屁屁 助教答疑是不是很用心 &nbsp; 有奖抢答大家玩的很嗨啊 &nbsp; &nbsp; 项目答辩终于开始啦 &nbsp; 优秀者的获奖感言 &nbsp; 这是答辩项目的效果 &nbsp; &nbsp; 这么细致的服务,这么好的氛围,这样的学习效果,需要多少钱呢? 不要1999,不要199,不要99,只要9.9 是的你没听错,只要9.9以上所有就都属于你了 如果你: 1、&nbsp;想学JAVA没有基础 2、&nbsp;想学JAVA没有整块的时间 3、&nbsp;想学JAVA没有足够的预算 还等什么?赶紧报名吧,抓紧抢位,本期只招300人,错过只有等时间待定的下一期了 &nbsp; 报名请加小助手微信:eduxy-1 &nbsp; &nbsp;

Python可以这样学(第一季:Python内功修炼)

董付国系列教材《Python程序设计基础》、《Python程序设计(第2版)》、《Python可以这样学》配套视频,讲解Python 3.5.x和3.6.x语法、内置对象用法、选择与循环以及函数设计与使用、lambda表达式用法、字符串与正则表达式应用、面向对象编程、文本文件与二进制文件操作、目录操作与系统运维、异常处理结构。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

机器学习实战系列套餐(必备基础+经典算法+案例实战)

机器学习实战系列套餐以实战为出发点,帮助同学们快速掌握机器学习领域必备经典算法原理并结合Python工具包进行实战应用。建议学习顺序:1.Python必备工具包:掌握实战工具 2.机器学习算法与实战应用:数学原理与应用方法都是必备技能 3.数据挖掘实战:通过真实数据集进行项目实战。按照下列课程顺序学习即可! 课程风格通俗易懂,用最接地气的方式带领大家轻松进军机器学习!提供所有课程代码,PPT与实战数据,有任何问题欢迎随时与我讨论。

Java面试题大全(2020版)

发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了这套Java面试题大全,希望对大家有帮助哈~ 本套Java面试题大全,全的不能再全,哈哈~ 一、Java 基础 1. JDK 和 JRE 有什么区别? JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。 JRE:Java Runtime Environ...

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

HoloLens2开发入门教程

本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。

几率大的Redis面试题(含答案)

本文的面试题如下: Redis 持久化机制 缓存雪崩、缓存穿透、缓存预热、缓存更新、缓存降级等问题 热点数据和冷数据是什么 Memcache与Redis的区别都有哪些? 单线程的redis为什么这么快 redis的数据类型,以及每种数据类型的使用场景,Redis 内部结构 redis的过期策略以及内存淘汰机制【~】 Redis 为什么是单线程的,优点 如何解决redis的并发竞争key问题 Red...

MFC一站式终极全套课程包

该套餐共包含从C小白到C++到MFC的全部课程,整套学下来绝对成为一名C++大牛!!!

【数据结构与算法综合实验】欢乐连连看(C++ & MFC)案例

这是武汉理工大学计算机学院数据结构与算法综合实验课程的第三次项目:欢乐连连看(C++ & MFC)迭代开发代码。运行环境:VS2017。已经实现功能:开始游戏、消子、判断胜负、提示、重排、计时、帮助。

YOLOv3目标检测实战:训练自己的数据集

YOLOv3是一种基于深度学习的端到端实时目标检测方法,以速度快见长。本课程将手把手地教大家使用labelImg标注和使用YOLOv3训练自己的数据集。课程分为三个小项目:足球目标检测(单目标检测)、梅西目标检测(单目标检测)、足球和梅西同时目标检测(两目标检测)。 本课程的YOLOv3使用Darknet,在Ubuntu系统上做项目演示。包括:安装Darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 Darknet是使用C语言实现的轻型开源深度学习框架,依赖少,可移植性好,值得深入探究。 除本课程《YOLOv3目标检测实战:训练自己的数据集》外,本人推出了有关YOLOv3目标检测的系列课程,请持续关注该系列的其它课程视频,包括: 《YOLOv3目标检测实战:交通标志识别》 《YOLOv3目标检测:原理与源码解析》 《YOLOv3目标检测:网络模型改进方法》 敬请关注并选择学习!

u-boot-2015.07.tar.bz2

uboot-2015-07最新代码,喜欢的朋友请拿去

php+mysql学生成绩管理系统

学生成绩管理系统,分三个模块:学生,教师和管理员。 管理员模块:负责学生、老师信息的增删改;发布课程信息的增删改,以便让学生选课;审核老师提交的学生成绩并且打印成绩存档;按照课号查询每个课号的学生成绩

web网页制作期末大作业

分享思维,改变世界. web网页制作,期末大作业. 所用技术:html css javascript 分享所学所得

相关热词 c# 开发接口 c# 中方法上面的限制 c# java 时间戳 c#单元测试入门 c# 数组转化成文本 c#实体类主外键关系设置 c# 子函数 局部 c#窗口位置设置 c# list 查询 c# 事件 执行顺序
立即提问