V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  hhhhhh123  ›  全部回复第 11 页 / 共 15 页
回复总数  284
1 ... 3  4  5  6  7  8  9  10  11  12 ... 15  
2022-08-11 16:52:45 +08:00
回复了 hhhhhh123 创建的主题 程序员 我的服务器是不是被人盯上了?
假设我 存在这个文件 会怎么样?
2022-08-11 16:51:20 +08:00
回复了 hhhhhh123 创建的主题 程序员 我的服务器是不是被人盯上了?
@lichao @misaka19000 @ViriF @zzzmh @fanchenio @nothingistrue @all 各位这是我 nginx error.log 里面的。。我想知道, 为什么会执行这个 open file 打开文件的指令?
2022-08-11 16:49:08 +08:00
回复了 hhhhhh123 创建的主题 程序员 我的服务器是不是被人盯上了?
```
2022/08/11 03:34:30 [error] 3341766#3341766: *1627 open() "/usr/share/nginx/html/phpconfigure/phpinfo" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //phpconfigure/phpinfo HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:31 [error] 3341766#3341766: *1628 open() "/usr/share/nginx/html/phpconfigure/phpinfo.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //phpconfigure/phpinfo.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:32 [error] 3341766#3341766: *1629 open() "/usr/share/nginx/html/phpconfigure/index.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //phpconfigure/index.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:33 [error] 3341766#3341766: *1630 open() "/usr/share/nginx/html/scripts/info.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //scripts/info.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:34 [error] 3341766#3341766: *1631 open() "/usr/share/nginx/html/scripts/phpinfo" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //scripts/phpinfo HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:36 [error] 3341766#3341766: *1632 open() "/usr/share/nginx/html/scripts/phpinfo.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //scripts/phpinfo.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:37 [error] 3341766#3341766: *1633 open() "/usr/share/nginx/html/scripts/index.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //scripts/index.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:38 [error] 3341766#3341766: *1634 open() "/usr/share/nginx/html/forum/info.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //forum/info.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:39 [error] 3341766#3341766: *1635 open() "/usr/share/nginx/html/forum/phpinfo" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //forum/phpinfo HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:40 [error] 3341766#3341766: *1636 open() "/usr/share/nginx/html/forum/phpinfo.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //forum/phpinfo.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:41 [error] 3341766#3341766: *1637 open() "/usr/share/nginx/html/forum/index.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //forum/index.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:34:42 [error] 3341766#3341766: *1638 open() "/usr/share/nginx/html/foo.php" failed (2: No such file or directory), client: 18.139.219.224, server: 54.248.101.249, request: "GET //foo.php HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:41:21 [error] 3341766#3341766: *1639 open() "/usr/share/nginx/html/.env" failed (2: No such file or directory), client: 93.182.108.25, server: 54.248.101.249, request: "GET /.env HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:58:26 [error] 3341766#3341766: *1645 open() "/usr/share/nginx/html/update2/version.manifest" failed (2: No such file or directory), client: 183.157.11.162, server: 54.248.101.249, request: "GET /update2/version.manifest HTTP/1.1", host: "54.248.101.249"
2022/08/11 03:58:26 [error] 3341766#3341766: *1646 open() "/usr/share/nginx/html/update2/project.manifest" failed (2: No such file or directory), client: 183.157.11.162, server: 54.248.101.249, request: "GET /update2/project.manifest HTTP/1.1", host: "54.248.101.249"
2022/08/11 04:23:57 [error] 3341766#3341766: *1647 open() "/usr/share/nginx/html/.env" failed (2: No such file or directory), client: 185.254.196.115, server: 54.248.101.249, request: "GET /.env HTTP/1.1", host: "54.248.101.249"
2022/08/11 05:22:27 [error] 3341766#3341766: *1650 open() "/usr/share/nginx/html/.env" failed (2: No such file or directory), client: 109.237.103.123, server: 54.248.101.249, request: "GET /.env HTTP/1.1", host: "54.248.101.249"
2022/08/11 05:48:43 [error] 3341766#3341766: *1652 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 184.105.247.243, server: 54.248.101.249, request: "GET /favicon.ico HTTP/1.1", host: "54.248.101.249"
2022/08/11 05:52:14 [error] 3341766#3341766: *1653 open() "/usr/share/nginx/html/.env" failed (2: No such file or directory), client: 185.254.196.115, server: 54.248.101.249, request: "GET /.env HTTP/1.1", host: "54.248.101.249"

```
2022-08-11 16:36:20 +08:00
回复了 hhhhhh123 创建的主题 程序员 我的服务器是不是被人盯上了?
soga , 确实是第一次做站长。。嘿嘿
2022-08-11 14:30:34 +08:00
回复了 AnonymousXX 创建的主题 杭州 8.13 杭州周边有没有合适的地方看星星呀
看星星不是哪里都能看吗? 天台?
那个 最后能分享出来吗?
2022-08-11 10:42:15 +08:00
回复了 fox0001 创建的主题 Java [请教]Spring Boot 使用 Redis,缓存集合数据的疑问
不懂 java 但是这种场景 你想 o(1) 的话, 可以用 set ,key: '{''国家 1":xx, "国家 2":xx}' 用 json 就好了,才 200+个 key 而已 . 每次使用 取出 key ,然后使用 json 转一下就行。
2022-08-05 11:15:24 +08:00
回复了 hhhhhh123 创建的主题 程序员 如何定义,初 中 高 级开发?
@echo314 soga
2022-08-05 11:13:57 +08:00
回复了 hhhhhh123 创建的主题 程序员 如何定义,初 中 高 级开发?
@mazhiyuan 我也觉得是 看公司的划分制度
2022-08-05 11:08:19 +08:00
回复了 hhhhhh123 创建的主题 程序员 如何定义,初 中 高 级开发?
@fengjianxinghun 这 可能是对 HR 招聘看的, 那我们自身应该如何去评价?
@vincent441 他好像是使用 sync 出了问题,然后推荐 gevent,eventlet 异步模式,我 sync 模式是完全 ok 的, 但是 gevent,eventlet 模式不行.
2022-07-29 13:49:01 +08:00
回复了 hhhhhh123 创建的主题 C c++ 在服务器上打包 so 文件问题
解决了 extern "C" 我删掉了 忘记加上去了, 所以没有导出来, 加上后 重新编译 函数也能导出来了。
2022-07-29 13:47:35 +08:00
回复了 hhhhhh123 创建的主题 C c++ 在服务器上打包 so 文件问题
@yolee599 0000000000006710 T OMP_EVAL
w _ITM_deregisterTMCloneTable
w _ITM_registerTMCloneTable
U _Unwind_Resume@GCC_3.0
0000000000007c40 T _Z9benchmarkv
000000000000b460 T _ZN3omp13CombinedRange10joinRangesERKSt6vectorIS1_ISt5arrayIhLm2EESaIS3_EESaIS5_EEm
000000000000ad90 T _ZN3omp13CombinedRange7shuffleEv
000000000000ae90 T _ZN3omp13CombinedRangeC1EjRKSt6vectorISt5arrayIhLm2EESaIS3_EE
000000000000ad00 T _ZN3omp13CombinedRangeC1Ev
000000000000ae90 T _ZN3omp13CombinedRangeC2EjRKSt6vectorISt5arrayIhLm2EESaIS3_EE
000000000000ad00 T _ZN3omp13CombinedRangeC2Ev
0000000000014930 T _ZN3omp13HandEvaluator10staticInitEv
00000000000164c0 R _ZN3omp13HandEvaluator11FLUSH_RANKSE
0000000000026460 B _ZN3omp13HandEvaluator11ORIG_LOOKUPE
0000000000022460 B _ZN3omp13HandEvaluator12FLUSH_LOOKUPE
00000000000147f0 T _ZN3omp13HandEvaluator14populateLookupEmjjjjjjb



还有很多这样的 , 次数超过限制所有发不出来
2022-07-29 12:02:40 +08:00
回复了 hhhhhh123 创建的主题 C c++ 在服务器上打包 so 文件问题
@nifury @qbqbqbqb
@qbqbqbqb 我加了-fPIC 参数, 虽然能编译, 但是函数好像没有导出, 这个时候 应该怎么导出
2022-07-29 11:36:23 +08:00
回复了 hhhhhh123 创建的主题 C c++ 在服务器上打包 so 文件问题
@qbqbqbqb 我删除 extern "C" __declspec(dllexport) 这个了,但是出现了上面的错误, 你知道吗
2022-07-29 11:35:59 +08:00
回复了 hhhhhh123 创建的主题 C c++ 在服务器上打包 so 文件问题
@nifury 你知道这个错误吗? 我吧 extern "C" __declspec(dllexport) 删掉了
2022-07-29 11:35:31 +08:00
回复了 hhhhhh123 创建的主题 C c++ 在服务器上打包 so 文件问题
```
g++ -O3 -std=c++11 -Wall -Wpedantic -pthread -c -o omp/CardRange.o omp/CardRange.cpp
g++ -O3 -std=c++11 -Wall -Wpedantic -pthread -c -o omp/CombinedRange.o omp/CombinedRange.cpp
g++ -O3 -std=c++11 -Wall -Wpedantic -pthread -c -o omp/EquityCalculator.o omp/EquityCalculator.cpp
g++ -O3 -std=c++11 -Wall -Wpedantic -pthread -c -o omp/HandEvaluator.o omp/HandEvaluator.cpp
ar rcs lib/ompeval.a omp/CardRange.o omp/CombinedRange.o omp/EquityCalculator.o omp/HandEvaluator.o
g++ -O3 -std=c++11 -Wall -Wpedantic -pthread -shared -o hongyu.so main.cpp benchmark.cpp lib/ompeval.a
/usr/bin/ld: lib/ompeval.a(HandEvaluator.o): warning: relocation against `_ZN3omp13HandEvaluator8cardInitE' in read-only section `.text.startup'
/usr/bin/ld: /tmp/ccUEKBa8.o: relocation R_X86_64_PC32 against symbol `_ZSt4cout@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:25: hongyu] Error 1
```
2022-07-29 10:59:55 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive 请教一下,win 本地 make 能 ok , 但是在服务器就找不到一个文件, 这是没有指定路径还是啥?
main.cpp:1:10: fatal error: omp/EquityCalculator.h: No such file or directory
1 | #include <omp/EquityCalculator.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
2022-07-29 09:18:21 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive gcc 都是最新的。 这不是源码吗? 应该是官方的吧
2022-07-28 15:53:21 +08:00
回复了 hhhhhh123 创建的主题 C ubuntu /usr/include/c++/11/ 下的文件报错
@elfive

In file included from omp/EquityCalculator.cpp:1:
omp/EquityCalculator.h:76:21: error: ‘std::function’ has not been declared
76 | std::function<void(const Results&)> callback = nullptr,
| ^~~~~~~~
omp/EquityCalculator.h:76:29: error: expected ‘,’ or ‘...’ before ‘<’ token
76 | std::function<void(const Results&)> callback = nullptr,
| ^
omp/EquityCalculator.h:202:10: error: ‘function’ in namespace ‘std’ does not name a template type
202 | std::function<void(const Results& results)> mCallback;
| ^~~~~~~~
omp/EquityCalculator.h:15:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
14 | #include <unordered_map>
+++ |+#include <functional>
15 | #include <array>
omp/EquityCalculator.h:76:16: error: default argument missing for parameter 6 of ‘bool omp::EquityCalculator::start(const std::vector<omp::CardRange>&, uint64_t, uint64_t, bool, double, int)’
76 | std::function<void(const Results&)> callback = nullptr,
| ^~~~~~~~~~~~~
omp/EquityCalculator.h:74:67: note: ...following parameter 2 which has a default argument
74 | bool start(const std::vector<CardRange>& handRanges, uint64_t boardCards = 0, uint64_t deadCards = 0,
| ~~~~~~~~~^~~~~~~~~~~~~~
omp/EquityCalculator.cpp:13:6: error: no declaration matches ‘bool omp::EquityCalculator::start(const std::vector<omp::CardRange>&, uint64_t, uint64_t, bool, double, std::function<void(const omp::EquityCalculator::Results&)>, double, unsigned int)’
13 | bool EquityCalculator::start(const std::vector<CardRange>& handRanges, uint64_t boardCards, uint64_t deadCards,
| ^~~~~~~~~~~~~~~~
In file included from omp/EquityCalculator.cpp:1:
omp/EquityCalculator.h:74:10: note: candidate is: ‘bool omp::EquityCalculator::start(const std::vector<omp::CardRange>&, uint64_t, uint64_t, bool, double, int)’
74 | bool start(const std::vector<CardRange>& handRanges, uint64_t boardCards = 0, uint64_t deadCards = 0,
| ^~~~~
omp/EquityCalculator.h:22:7: note: ‘class omp::EquityCalculator’ defined here
22 | class EquityCalculator
| ^~~~~~~~~~~~~~~~
omp/EquityCalculator.cpp: In member function ‘void omp::EquityCalculator::updateResults(const omp::EquityCalculator::BatchResults&, bool)’:
omp/EquityCalculator.cpp:740:13: error: ‘mCallback’ was not declared in this scope
740 | if (mCallback)
| ^~~~~~~~~
make: *** [<builtin>: omp/EquityCalculator.o] Error 1
1 ... 3  4  5  6  7  8  9  10  11  12 ... 15  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   908 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 19:57 · PVG 03:57 · LAX 11:57 · JFK 14:57
♥ Do have faith in what you're doing.