Nп/п : 71 из 100
 От   : gustafn                             2:5075/128        14 сен 23 05:16:21
 К    : sundar ??                                             14 сен 23 15:17:02
 Тема : Re: Announcement: NaviServer 4.99.28 available
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<12164800-c06b-4d6c-a846-44449a43602cn@googlegroups.com> 05c8d309
@REPLY:
<abb03abf-5822-4b51-922b-0313cfc08b4cn@googlegroups.com> 2a30bd94
@REPLYADDR gustafn <neumann@wu-wien.ac.at>
@REPLYTO 2:5075/128 gustafn
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<0b0327ae-4cbb-4bf5-b779-8d601e2aec63n@googlegroups.com> <07217679-84e0-49d2-abcf-f65565e3c99cn@googlegroups.com>
1@dont-email.me> <abb03abf-5822-4b51-922b-0313cfc08b4cn@googlegroups.com>
@RFC-Message-ID:
<12164800-c06b-4d6c-a846-44449a43602cn@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
sundar ?? schrieb am Donnerstag, 14. September 2023 um 07:19:41 UTC+2:
> here are the details to help in this regard, 

 > [void@void bin]$ ./nsd -u void -t
/home/void/Downloads/code/tcl/nsproj/pages/myserver.tcl -f 
> [void@void ~]$ ps aux | grep nsd 
 > void 9116 0.1 0.1 92208 11904 pts/2 Sl+ 10:13 0:00 ./nsd -u
void -t /home/void/Downloads/code/tcl/nsproj/pages/myserver.tcl -f 
> void 9200 0.0 0.0 6588 2432 pts/5 S+ 10:14 0:00 grep nsd 
> [void@void ~]$ ss -tuln | grep 8484 

 > when the last command `ss ...` is executed there is no response
indicating that no process is listening on the specific port, even though the
server is running. 
> am i missing something?

 dear sunar, as a beginner, i would recommend to start in a first
step what the installation suggests to you.
After a "make install" on a unix-like system, you will see something like

   You can now run NaviServer by typing the following command: 
        /usr/local/ns/bin/nsd  -t /usr/local/ns/conf/nsd-config.tcl -f

 Probably, you got also some output concerning permissions and a
command to setup the permissions in the installation directory. The flag
"-f" at the end of the command above denotes that you want to run the
server in the foreground (which means, the output of the system log is on
the console, on which you started NaviServer). This mode is good for
testing and experimenting, since the developer gets immediate output.

 When you start with the default configuration, the output will
contain something like

 [14/Sep/2023:13:57:09][83853.16fc0b000][-driver:nssock:0-] Notice: nssock:0:
listening on [0.0.0.0]:8080

 which means that you can connect via all IP addresses of your
machine on port 8080. 

 In your example, you are starting the server with a user "void",
which is unusual, but certainly possible. You can use any kind of user,
but you have to make sure, that the server is able to read and write
in the installation directory (e.g. writing pid-files, log-files). From
your output, one can see that the user + group is set to "nsadmin",
and that the user "void" does not have rights on the folder

     ** drwxr-xr-x 2 nsadmin nsadmin 4096 Sep 13 08:09 /usr/local/ns/logs/

So, starting with  .... -u nsadmin .... instead of  ... -u void ... will help.
 I would recommend to kill all nsd-processes on your system and
start a fresh instance and the first sample configuration file and adapt
this in a second step according to your needs.
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх