![]() |
|
[How To] Setup your Server quickly (CentOS) - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124) +----- Forum: General Guides (https://lckb.dev/forum/forumdisplay.php?fid=194) +----- Thread: [How To] Setup your Server quickly (CentOS) (/showthread.php?tid=3797) |
- peter3301 - 07-08-2014 Hi, here a little and fast guide how to setup your server very quickly. (my english is very bad) [hide] Step1: update your Server with yum update Step2: install the apache and mysql and other "importent" stuff like libs. yum install -y mysql mysql-server mysql-devel mysql-libs php-mysql httpd php gcc-c++ libstdc++.so.6 libz.so.1 libstdc++-libc6.2-2.so.3 libgssapi_krb5.so.2 screen lm_sensors lm_sensors-devel gtk+ php-devel yum groupinstall -y 'MySQL Database' 'Web Server' 'Development Tools' 'Development Libraries' Step3: start your apache and mysql server with booting up the server chkconfig --add httpd chkconfig httpd on chkconfig --add mysqld chkconfig mysqld on Step4: start your apache and mysql server service httpd start service mysqld start Step5:logging in mysql mysql -u root -p create a user ( replace USER and PASSWORD, the % is the ip who can connect(%=all)) GRANT ALL ON *.* TO 'USER'@'%' IDENTIFIED BY 'PASSWORD'; increasing the max allowed packets set global max_allowed_packet=100000000; save flush privileges; and quit the server quit Step6: Open Ports with iptables su --login chance the [CeNsOrEd] to your port, you need to open 3306 (if you want to work with your db extern) and login + gameserver port. iptables -I INPUT -m tcp -p tcp --dport [CeNsOrEd] -j ACCEPT save the iptables service iptables save Step7:chance your IP in LoginServer 2 And your GameServer 2 Step8: give your Server Files 777 rights: 2 Step9:Start your server in this example, my Files are in /home/Server cd /home/Server ./Start.sh you need to edit your Start.sh script! Step10: We are done, missing Libs. can you install with yum install [CeNsOrEd] replace [CeNsOrEd] with your library or use this site:2 and install the missing lib with (example for libexpat.so.0 x86_64) yum install ftp://rpmfind.net/linux/fedora/linux/development/rawhide/x86_64/os/Packages/c/compat-expat1-1.95.8-13.fc21.i686.rpm Credits to the internet![/hide] Salute, Peter - UnknownBoy - 09-18-2014 thanks for tutorial - arme38 - 09-18-2014 very thanks - peterkosta12 - 09-18-2014 nice job - Dimensions - 09-18-2014 ty - maximus - 09-18-2014 thx - Pamrage - 09-19-2014 thx - KochanyMis - 09-19-2014 ty - gurock1172 - 09-19-2014 thank will try - mrod9228 - 09-20-2014 THANKS |