I’m a little bit newbie. I’ve got started server few months ago. Everything was okay but now on server I can’t even echo something. How Can I repair nginx server? My debian and nginx version nginx version: nginx/1.14.2 that’s my status for nginx and there’s my try to start a nginx Answer The error states to [::]:80 failed, which means
Tag: linux
bad file descriptor: error on accept() (socket)
I am trying to write a simple chat application using TCP protocol in Linux, in which server receives strings from the client and it sends strings size to the client. When I run client, the server throws a “Bad file descriptor” error and exits. Nevertheless if I send input strings by client it receives correct sizes of strings, but as
How to increase the size of memory region allocated with mmap()
I’m allocating memory using mmap Linux syscall. Is it possible to increase the size of allocated memory region preserving its start address and contents? How to do it properly? Answer On Linux, use the mremap(2) Linux-specific system call without MREMAP_MAYMOVE to extend the existing mapping, without considering the option of remapping those physical pages to a different virtual address where
Delete Folder in DBFS
I want to delete all the folders from my path When I try : I get SQL Parse Exception How do I solve this Answer It looks like your notebook has SQL as primary language, but you’re trying to use the Python code. Change your cell to: P.S. You can omit dbfs: – it’s used by default.
C++ including Python.h compiling using makefile
I am trying to compile a C++ program which uses Python.h to execute some python scripts. Before adding the python, I had a makefile which works perfectly. I added the code to run the python script, which involves including the Python.h file. I edited the makefile to include this file, without success. My makefile: I already installed following libraries: sudo
linux: Create device file in the kernel driver code
The application needs a device file (usually in /dev) in order to use a kernel driver. Is it wise to create this file in the driver code so the file will be created during insmod ? Another way: create this file in a script (e.g /etc/rc.local) Can you please tell what is the right way ? Thank you, Zvika Answer
Parallel TCP connection using threads
I am trying to build a system that opens parallel TCP sockets using threads. My threads are triggered using message queue IPC , thus every time a packet arrive to the message queue a thread “wakes up” , open TCP connection with remote server and send the packet. My problem is that in Wireshark , I can see the the
Can’t install bash in multiarch build on Alpine
I am trying to build image for linux/arm64/v8 on linux/amd64 Gitlab runner. I run it with this command: My Dockerfile is fairly simple: But it fails with: It’s Gitlab runner version 13.4.1 and Docker executor docker:stable. What can I do about this issue? Answer There were three problems with my approach: I needed to install buildx extension I had to
How to solve: Error: Unable to initialize main class com.amazonaws.services.dynamodbv2.local.main.ServerRunner
Hey guys I’m trying to run Dynamodb with serverless locally executing the following command: sls dynamodb start –migrate –stage local And I get an error: Before that I installed with this sls dynamodb install –stage local and everything seems ok. I take a look if the problems is the port but isn’t. Answer Summary: perhaps try deleting .dynamodb and re-initializing.
Syntax error calling Python from C with fork-execv
I want to call a Python script as a child process from a C program using fork and execv. I have tested it calling bin/ls and it works: So I changed the C code to call the Create_Buffer() function in this Python file: The Python script has two functions; I want to call Create_Buffer(), so I changed my C file