You are welcome to enter the world of the Internet of things in the cool. It has a free air and a natural atmosphere. Next I'll tell you what to do if you build your own IoT platform in one step.
Since the official domain name of the current cool is not yet passed the record, so now use the temporary domain name to explain the description. The final cool Guy's website address: http://icoolpy.com
Temporary website: http://i.hkpk.net
1. Download the program and database of the cool-swelling Linux version to the home directory
2. Run the first terminal to run the database service (b operation only once, the operation will only need to execute C operation instructions to start the database service)
A. Conducting coolpylinuxdb directory directives
$ CD Coolpylinuxdb
B. Install the database depends on the library, the process will be prompted to enter a password, please enter your system's administrator password, and then prompted to use the relevant hard disk space, press ENTER.
$ sudo apt-get install Mongodb-server
C. Running the database
$ mongod--dbpath=data--fork--logpath=logs–smallfiles
If no accident occurs:
To this the cool-up database has run to completion.
3. Run a new terminal to run the server side of the Youku. right mouse button terminal icon, click New Terminal item.
A. Enter the Coolpylinux directory
B. Compile node, this operation requires only one operation per system and does not need to be done again in the future run.
* Install dependent libraries:
$ sudo apt-get install g++
$ sudo apt-get install Libssl-dev
C. Run the cool-up server
$./node/bin/node./bin/coolpy.js
The above hint is that the server side of the cool-up is running successfully.
4. Now we test whether the platform is normal.
In the Linux current system to open a browser, enter the address: http://127.0.0.1:1337 if the normal display that the server is running correctly, the system default Administrator account is the same admin password, when you log on successfully confirms that the database is also in normal operation:
Following is the completion of the landing:
For other cool platform system default parameters see another article: http://www.cnblogs.com/jacle169/p/4176629.html
----------------------------------------------------------------------------------
If you have any questions, please contact:
qq:229292620
Email:[email protected]
How are you doing! The Cool coolpy Linux Chapter