Currently, most mainstream vps in foreign countries are linux systems, because linux systems are free of charge, which can save a little money for service providers or users. Moreover, for general network applications, the performance and stability of the linux platform are much better than those of the win platform. The only disadvantage is that the server on the linux platform does not use a graphical interface, and the ease of use is poor. most non-professional users configure and operate mainstream foreign vps, most of which are linux systems, because the linux system is free of charge, it can save a little money for service providers or users. Moreover, for general network applications, the performance and stability of the linux platform are much better than those of the win platform. The only disadvantage is that the server on the linux platform does not use a graphical interface, and the ease of use is poor. most non-professional personnel are difficult to configure and manipulate. even professional personnel, many operations are slightly complicated under the command line, to solve this problem, a variety of web-based linux platform control panels are available, and common operations are visualized to facilitate management.
Among many linux distributions,
CentosIt is a very good one, because it is based on the original Redhat Linux, is a free version of RHEL (Red hatcemiselinux, now charged), with excellent performance and rich resources such as available documents. In terms of resource occupation and ease of use among many panels, kloxo (formerly lxadmin) is undoubtedly the most suitable for beginners of vps, and its basic functions are free of charge, the only commercial limit is that you cannot bind more than 40 domain names, which is sufficient for general users. Therefore
Centos+ The kloxo platform is a great choice for building web services with vps.
The following steps describe how to initialize the settings after obtaining the vps. The following methods are mainly collected from the Internet.
----------- Step 1 -----------
Because the obtained vps is generally installed with the full version of centos, with apache and other components, we need to uninstall the built-in apache,
Mysql.
Uninstall Mysql
# Rpm-qa | grep mysql
Mysql-3.23.58-9
Php-mysql-4.3.4-11
Mod_auth_mysql-20030510-4.1
Mysql-server-3.23.58-9
Note: The rpm-qa | grep mysql command is used to list all mysql-related packages and unmount them from the bottom package until the first package is detached.
For example, in this example, we should first uninstall the mysql-server-3.23.58-9 as follows:
Rpm-e mysql-server
(Rpm-e is the command to uninstall the rpm package, followed by the package name, the last version number is not to be played, for example, we next to uninstall the mod_auth_mysql-20030510-4.1 package, the method is as follows:
Rpm-e mod_auth_mysql
Uninstall Apache
# Rpm-qa | grep httpd
Uninstall PHP
# Rpm-qa | grep php
Note: If the package dependency cannot be detached, the system will usually prompt the package dependency, and list the dependent package names. uninstall the dependent package first. If there is really a package that can not be uninstalled, you can add-nodeps this parameter to uninstall, for example, we unload the php-4.3.4-11, it can not be removed. Use:
Rpm-e php-4.3.4-11-nodeps
The command is tough.
----------- Step 2 -----------
Centos system security settings
1. change the SSH port to over 10000, and the chances of scanning the port may also decrease.
Vi/etc/ssh/ssh_config
Vi/etc/ssh/sshd_config
Then, change the port to the required port number.
Service sshd restart as root
2. delete unused accounts with a bloated system:
Userdel adm
Userdel lp
Userdel sync
Userdel shutdown
Userdel halt
Userdel news
Userdel uuucp
Userdel operator
Userdel games
Userdel gopher
Userdel ftp if you do not allow anonymous FTP, delete this user account
Groupdel adm
Groupdel lp
Groupdel news
Groupdel uuucp
Groupdel games
Groupdel dip
Groupdel pppusers
----------- Step 3 -----------
Install kloxo
Wgethttp: // www.ctohome.com/linux-vps-pack/kloxo_with_chinese_language.sh
Sh./kloxo_with_chinese_language.sh
After kloxo is installed, you can log on to the web console.
Http: // IP: 7778/account/Password: admin/admin
Http: // yourdomain: 7778/
Generally, for security reasons, you need to modify the default ports 7777 and 7778 in the panel, and then run the command in ssh:
/Script/restart
Restart the kloxo service to make it take effect.
You can add a website according to the instructions in the panel.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.