In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the detailed steps of building the java environment on the server". In the daily operation, I believe that many people have doubts about the detailed steps of building the java environment on the server. The editor consulted all kinds of materials and sorted out the simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "the detailed steps of building the java environment on the server". Next, please follow the editor to study!
Configuration of mysql database
The database does not have to be on the same server as the website, but the website must be able to connect to the database, and it does not have to be an ordinary switch, so it is best kept on the server.
First of all, check whether mysql is configured. The linux operating system uses ps-ef under the command line | grepmysqld checks to see if there is a mysql process. If there is, there is no need to configure mysql.
A) mysql download
Hundreds of millions of cloud servers under linux are provided here.
B) configure mysql
When configuring mysql under window, you must pay attention to the code used, select utf-8, remember the password you set, and use it when connecting to the database to the configuration file. For more information on configuration under linux, please see: mysql (rpm) configuration manual .txt under linux.
Use # rpm-ivh MySQL-server-5.5.30-1.linux2.6.i386.rpm to configure mysql/usr/bin/mysqladmin-u root password' new-password' to set the password of the root database user
C) create a database
Enter mysql and type mysql-u root-p on the command line. If you want to enter the password, enter the password you just set and you can enter mysql.
After entering the database, you can create the database. Createdatabase item; notes that the item here is only the name of the database. The configuration file of the later project should be used to connect to the database. It is best not to modify the database name here.
D) Import data
To facilitate management, create folders on the server: # mkdir/www/webapp and # mkdir/www/resin
Upload the attached item.sql to the / www/webapp directory, and then use mysql >\ under the named line of mysql. / www/webapp/item.sql imports data into the newly created database.
At this point, the study of "detailed steps for building a java environment on the server" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.