Hi all, I'm completely new to the game (Having spent a few minutes playing at my sisters), but it seems pretty fun. I have my own VPS which is currently not being used at the moment, so I'm going to be setting up the game relatively soon. But, I was just wondering about the resources it'd take. I've got a linode VPS, which is on a really good connection, 360mb of ram and whatever cpu I get :tongue.gif: I'm completely positive this could run the server software, but I was wondering about how many simultaneous connections it could handle.
I only ask, because I was thinking of getting some friends involved, and having a "build" off.
You should be fine with a decent computer such as that, the only thing to run is a command prompt, A good connection and bit of ram would do anyone good. Any 'offical' ? Not sure.
Yeah, but you need to watch your ISP. Mine limits to 1 gig a day before it starts lagging, yet they have us pay for five T.T
Also, just as a tip, don't use the operating systems from the computer companies, as Java can sometimes be installed into a different folder, "java" as a command can be romoved, or they add another ****ing drive for "factory images" >.> So order a custom with cheap **** if it's needed, then get a default OS.
Yeah, thanks a lot guys. I ran htop last night and it uses crud all ram. I'm quite surprised, I've got nginx running, minecraft, jetty, emacs + swank + slime going and I'm only using about 50% atm. =]
And, to the post above mine. I'm hosting this on a VPS in a datacenter invermont, california. I installed the OS myself on the computer (debian stable) and java is in the default debian location, so it's all fine. As for data limits, I know I can use 112gigs in three days time, so I shouldn't have any worries with bandwidth :tongue.gif:
I'll post up a script in the next few days which *should* make griefing less bothersom to builders for the OP's, so if anyone wants to use it, look for what will probably be my next post in this forum :tongue.gif:
Nah, I'm 19 :tongue.gif: I bought (rented) the VPS souly because I wanted some experience with real linux administration. I can tell you, it was a HUGE eye opener. I suggest others to do the same. Linode is very good, at 19.95 america (I think about 25 aus is what I paid or something), It's totally worth it. 200gigs a month, something like a 100mb connection (Shared between the other vps's), it's very much worth the money.
Linux Administration FTW....If you've got a VPS, you should obviously slap Apache on... web hosting for small-medium sized websites takes barely any resources in terms of CPU/RAM. Unless you're file-hosting.
Apache? pfffft! I use nginx as it's more lightweight. Although, my site gets no traffic other than me, atm. I might make myself a little minecraft website and such, detailing specific stuff about my server. Other than that, I'm maining mucking around with Compojure, a webframework written in Clojure. Clojure is a lisp that runs on the JVM and is really quite very awesome!
Meh... How much configuration does nginx require to work with MySQL? That's what kind of put me off for a while. Also, does nginx do site management where you can have particular directories omitted? I mainly use Apache as a file repo, but if nginx is more lightweight, I'm open to give it a shot. LNMP?
I don't have much experience with Apache, so I can't say if it's harder or easier to setup. But, here's the config file for nginx. As you can see, it's pretty simple.
server {
listen 80;
server_name .maver.homelinux.com;
server_name_in_redirect off;
access_log /usr/local/nginx/logs/maver.access.log;
location / {
root /var/www/maver/public;
index index.html index.php;
autoindex on;
# any requests to .php will be routed through fastcgi:
location ~ \.php$ {
if (!-e $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
location /grace {
alias /var/www/grace/public;
index index.html index.php;
autoindex on;
}
}
That's pretty basic. Basically it tells nginx where to look for the files. The second part simple tells it look somewhere else if you go to mysite.com/grace/whatever. I can have as many of them as I want, so it's pretty handy.
fastcgi is like MOD_PHP or whateer it is for apache, but it does things a little differently. Just uses less ram and, as far as I am aware,fastcgi is faster too! Google fastcgi for some more info, as it may be very handy for you.
The only other thing I can remember from the setup was link ~/public and /var/www/public so that I didn't have to give write access to /var/www to other users.
I don't actually use PHP though. It was setup and then I switched straight to Compojure, a framework done in Clojure which is a Lisp on the JVM. Works a lot better than PHP, for me atleast. Although, I haven't got nginx serving those pages, just jetty as I'm just developing stuff now and it's easier to use Jetty atm. Apparently it's trivial to get it to work with nginx though.
As for setting up mySQL, it should be the same regardless of what you use, i think? I wouldn't know, I use postgre and only then it just stores a few usernames, passwords, etc for my compojure project.
Unfortunately, I'm not a pro when it comes to these sorts of things so I can't help you out to much. Luckily for me i've got a mate who's a whizz , and he helps me out whenever I'm in a pinch.. which is not surprisingly quite often :tongue.gif:
EDIT: There's oodles of tutorials on how to set it all up, a short google should provide a better idea of nginx than I can :tongue.gif: If you like, I can find the guide I followed that goes through the entire process of downloading, compiling, patching PHP, compiling PHP and yeah.. all of that sorta crud.
Cool... I guess I might as well play with it over the weekend, and if I like it I'll stick with it. It does look pretty simple, and my needs are not very specific or advanced.
I only ask, because I was thinking of getting some friends involved, and having a "build" off.
Former #minecraft channel operator.
Also, just as a tip, don't use the operating systems from the computer companies, as Java can sometimes be installed into a different folder, "java" as a command can be romoved, or they add another ****ing drive for "factory images" >.> So order a custom with cheap **** if it's needed, then get a default OS.
And, to the post above mine. I'm hosting this on a VPS in a datacenter invermont, california. I installed the OS myself on the computer (debian stable) and java is in the default debian location, so it's all fine. As for data limits, I know I can use 112gigs in three days time, so I shouldn't have any worries with bandwidth :tongue.gif:
I'll post up a script in the next few days which *should* make griefing less bothersom to builders for the OP's, so if anyone wants to use it, look for what will probably be my next post in this forum :tongue.gif:
That's pretty basic. Basically it tells nginx where to look for the files. The second part simple tells it look somewhere else if you go to mysite.com/grace/whatever. I can have as many of them as I want, so it's pretty handy.
fastcgi is like MOD_PHP or whateer it is for apache, but it does things a little differently. Just uses less ram and, as far as I am aware,fastcgi is faster too! Google fastcgi for some more info, as it may be very handy for you.
The only other thing I can remember from the setup was link ~/public and /var/www/public so that I didn't have to give write access to /var/www to other users.
I don't actually use PHP though. It was setup and then I switched straight to Compojure, a framework done in Clojure which is a Lisp on the JVM. Works a lot better than PHP, for me atleast. Although, I haven't got nginx serving those pages, just jetty as I'm just developing stuff now and it's easier to use Jetty atm. Apparently it's trivial to get it to work with nginx though.
As for setting up mySQL, it should be the same regardless of what you use, i think? I wouldn't know, I use postgre and only then it just stores a few usernames, passwords, etc for my compojure project.
Unfortunately, I'm not a pro when it comes to these sorts of things so I can't help you out to much. Luckily for me i've got a mate who's a whizz , and he helps me out whenever I'm in a pinch.. which is not surprisingly quite often :tongue.gif:
EDIT: There's oodles of tutorials on how to set it all up, a short google should provide a better idea of nginx than I can :tongue.gif: If you like, I can find the guide I followed that goes through the entire process of downloading, compiling, patching PHP, compiling PHP and yeah.. all of that sorta crud.
Well, I must be getting to bed now I think. I wanna getup sometime whilst it's still light tomorrow.