Recently the company is busy in the Music Vision box deployment site, oneself also see, found a very good bolg, copy, save later with copy from Fireworks easy cold
First, Android phone installation Ksweb software to build a Web environment
1, many people do not believe that I can turn Android into a VPS, and now I will be detailed evaluation of the installation process and practicality, no Android oil automatically drift through it.
2, first, the need for software is these: ksweb, file sharing experts and terminal simulator. (Click to enlarge)
- 1, ksweb official website: https://play.google.com/store/apps/details?id=ru.kslabs.ksweb
3, run Ksweb, the first run may open time will be a little, open and then click Settings, tick "Enable root functions" to start the root mode, and then "port" set the ports to 80
3, the next screen down the bottom, click "Configure ' GO to '", the address set to HTTP://127.0.0.1/, so that the deployment of PHP can be.
4, then go back to the main page, click "phpMyAdmin" Download about 5MB files so that you can use phpMyAdmin. As for the MySQL database password, in the settings can be set freely:
5, go back to the homepage, click "GO to", or open the browser directly, enter 127.0.0.1, if the following screen appears, this proves that you have successfully more than half.
Second, the Android phone set up shared folders and build FTP
1. Install "File sharing expert" on Android phone.
2. Click ' Configure--working directory ' to set the working directory to/sdcard/htdocs
3. Return to the "File Sharing experts" homepage, you can see our Android equipped with the FTP information.
4, Next we can use the FTP tool on the computer to access the test, I upload a probe here and WordPress, easy to wait for further testing. (Click to enlarge)
Third, Android phone to create MySQL database installation WordPress
1, we just visit http://127.0.0.1/phpmyadmin to create a database can install the website program.
2, now our Android server is OK, we use the computer or the Android browser to set up a matching IP to see, is not a perfect WordPress installation page appeared?
3, the following is the probe information, we can see that the probe has identified the information of the Android system, and the server Software for the lighttpd/1.4.31,php version of the 5.4.11,mysql version of 5.1.62.
4, Next, we just do the router port mapping can bind the domain name for other people to access.
Four, Android transformation Web server Usability Discussion
1, we know that our normal use of the Android system is based on the Linux core, so the deployment of a server environment is not much of a problem, we usually on the phone, the tablet test source, plug-in completely no problem.
2, if the mobile phone traffic can hold, or even directly to the mobile phone as their own blog server, and is an independent IP, do not know the degree Niang will like it?
3, however, there is a problem, that is, the CPU of Android is generally not very strong, and Intel's Xeon server dedicated CPU is not comparable, so Android server performance is not as good as the real server.
4, but for us personally a day hundreds of IP thousands of PV has no pressure. For the Android configuration, the general 256MB memory, 650 of the frequency of the machine can be used.
5, if your memory on the 512MB, the frequency of more than 1GHZ, then the use will be relatively smooth, if your phone is dual-core, quad-core, then really comparable to small and medium-sized VPS host.