10 More Discussions You Might Find Interesting
1. Solaris
I am trying to setup DNS server in Solaris 10.
I have two blade 1500 system and want to setup two name server
I would like to start setting up DNS. appreciate your help. (1 Reply)
Discussion started by: mnathan
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all.
I need to configure a secondary dns server to get the zones that are in the primary server.
How can I do this? It's possible to make to sync automatically?
What configuration I ahve to do? And in which files?
Thanks in advance.
If anyone could give me examples or a tutorial, that... (4 Replies)
Discussion started by: kouh
4 Replies
3. Solaris
I have a newly built Solaris 10 server that I want to install Sun One web server. After building the server I use FTP to copy over the web server installation files into a directory I created (/usr/local/software/JES/6.1sp8). I run ./setup and get this.
bash: ./setup: Permission denied
I... (7 Replies)
Discussion started by: gsander
7 Replies
4. UNIX for Advanced & Expert Users
Hello all,
Am in the process of setting up ftp server in my RHEL3 box.
Here is where I downloaded the vsftp server
ftp://scary.beasts.org/users/cevans/vsftpd-2.1.1pre1.tar.gz
ftp server daemon is running fine, accepting connections from client but the issue is that 'user' I specifically... (3 Replies)
Discussion started by: matrixmadhan
3 Replies
5. Gentoo
We have C++ server (web applications) and Java Servers. I am not a Java developer but Java people say that Java Servers requires tomcat as it renders web pages. The Java server updates DB that C++ servers inquires upon and makes processing accordingly.
This setup is ok for a user as the user... (6 Replies)
Discussion started by: uunniixx
6 Replies
6. AIX
I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it?
I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame.
Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies
7. UNIX for Dummies Questions & Answers
Not connected to the internet so I would like to set up 1 unix machine to be the ntp server and have it sync time to about 30 other machines that are all on an private 10net network?:confused: (3 Replies)
Discussion started by: parrisjr
3 Replies
8. HP-UX
Hi,
I'm planning to setup ftp server but I dont have yet what platform i'll be using. I think what ever flavor it is it will go in the same approach right, anyway I just would like to ask how to setup ftp in unix I know too many of here alraedy done with it.
Thanks in advance. (0 Replies)
Discussion started by: eykyn17
0 Replies
9. UNIX for Dummies Questions & Answers
Using Redhat Linux Enterprise AS 4
can someone teach me how to setup a dns server for my webserver?
i've registered a domainname at mydomain.com
but when i type in the domain i register i cannot enter to my webserver.
someone told me that it is related with the DNS setting on my server.
i've... (2 Replies)
Discussion started by: kaixiang88
2 Replies
10. UNIX for Dummies Questions & Answers
i want setup an ftp server on my homelab now i downloaded resource management book from sun there it shows you how to make the entry in the inet.d.conf file also how to control ftp access but how do u actually set it up?
say like i want certain file to be obtain through ftp how do i do that? oh... (1 Reply)
Discussion started by: rmuhammad
1 Replies
Mojo::Server(3pm) User Contributed Perl Documentation Mojo::Server(3pm)
NAME
Mojo::Server - HTTP server base class
SYNOPSIS
use Mojo::Base 'Mojo::Server';
sub run {
my $self = shift;
# Get a transaction
my $tx = $self->build_tx;
# Emit "request" event
$self->emit(request => $tx);
}
DESCRIPTION
Mojo::Server is an abstract HTTP server base class.
EVENTS
Mojo::Server can emit the following events.
"request"
$server->on(request => sub {
my ($server, $tx) = @_;
...
});
Emitted when a request is ready and needs to be handled.
$server->unsubscribe('request');
$server->on(request => sub {
my ($server, $tx) = @_;
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body('Hello World!');
$tx->resume;
});
ATTRIBUTES
Mojo::Server implements the following attributes.
"app"
my $app = $server->app;
$server = $server->app(MojoSubclass->new);
Application this server handles, defaults to a Mojo::HelloWorld object.
"app_class"
my $app_class = $server->app_class;
$server = $server->app_class('MojoSubclass');
Class of the application this server handles, defaults to the value of the "MOJO_APP" environment variable or Mojo::HelloWorld.
METHODS
Mojo::Server inherits all methods from Mojo::EventEmitter and implements the following new ones.
"new"
my $server = Mojo::Server->new;
Construct a new Mojo::Server object and subscribe to "request" event with default request handling.
"build_tx"
my $tx = $server->build_tx;
Let application build a transaction.
"load_app"
my $app = $server->load_app('./myapp.pl');
Load application from script.
say Mojo::Server->new->load_app('./myapp.pl')->home;
"run"
$server->run;
Run server. Meant to be overloaded in a subclass.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Server(3pm)