Directory - Quick Jump
- brief description
- 1. Preliminary system construction
- Two, VirtualBox virtual machine software installation
- 3. Install centos6.9 system tutorial
- Four, virtual machine centos6 networking settings
- Five, host ip mapping settings
- 6. Ordinary user sudo permissions, firewall settings
- Seven, install a higher version of SecureCRT
- 8. Replace the mirror source site + clear the agent
- 9. Upgrade and replace jdk
- 10. Linux component installation path /usr/local
- Eleven, database backup
- 12. SecureCRT pasting garbled characters
- 13. It is recommended to install the tree command
- Fourteen, the idea version should not be too high
- Fifteen, jdk, scala, hadoop, nodejs, angular installation
brief description
So far, the movie recommendation system has been proficiently deployed many times, and many problems have been encountered on the way. Here, a comprehensive summary is made.
1. Preliminary system construction
The previous blog post has been written, jump by yourself: movie recommendation system step reference link
Two, VirtualBox virtual machine software installation
In fact, other virtual machine software can also be used, but it is used in the SG.G tutorial, then download a VirtualBox, I use VirtualBox6 here, win11 users use VirtualBox9, and if it is too troublesome to deploy later, I have it The configured mirroring software of cnetos6.9 can be downloaded privately by me, directly saving the deployment of the virtual machine link.
3. Install centos6.9 system tutorial
There are many on the Internet so I won’t repeat them here
Four, virtual machine centos6 networking settings
If you bought the student version of the public network server, you don’t need to do this step. After the server is started by default, you can connect to the Internet. However, if your own virtual machine needs to be connected to the Internet, it is very troublesome, but the process should be clear. I will give a reference blog Link:
Virtual machine networking settings reference blog link
Five, host ip mapping settings
Why some ping host names can be pinged, and some must ping host ip, because some computers do not have a mapping table between host ip and host name, that is, there is no dictionary set in the system, here is a reference link: ip host name mapping
reference blog link
6. Ordinary user sudo permissions, firewall settings
Next, we need to use SSH remote login software such as SecureCRT or Xshell, but the premise of using these software is to grant ordinary user super authority and firewall settings to Linux (because it is not developed at the enterprise level, the firewall is directly closed without closing individual ports. )
Refer to the blog link for sudo permissions of ordinary users
[Firewall settings are very simple, so I won’t go into details here]
Seven, install a higher version of SecureCRT
The higher version of SecureCRT has its own completion function. Here is secureCRT9 with broken decoding. You can use the
download link for free. Click to view
8. Replace the mirror source site + clear the agent
The official centos6.9 has stopped updating, which makes many component tools unable to be downloaded and used from the official website. Therefore, if you want to change to another mirror source, the replacement steps are as follows: To replace the
mirror source site, refer to the blog link
! ! ! If you can’t download after changing the million-mirror source station, then clear the proxy command. This technique is very important, and it took me a long time to find a solution. npm config set proxy null
9. Upgrade and replace jdk
The jdk that comes with centos6.9 is openjdk not Oracle jdk, openjdk will affect the later operation:
jdk installation reference blog link
10. Linux component installation path /usr/local
All components in the virtual machine or server should be installed to /usr/local
. This is a bloody lesson. If you change the host name, the file path will be modified, but the /usr path will not be modified.
What a valuable experience
! ! ! It is recommended to reboot after each setting and installation of a component tool, and sometimes it is only a reboot
Eleven, database backup
If you have installed centos before, in order to avoid database confusion, it is best to back up the database first and then clear it. Use the cp -r command to back up and clear the database in mongodb and elasticsearch respectively.
12. SecureCRT pasting garbled characters
Garbled characters when pasting in SecureCRT, please refer to: Click the link
13. It is recommended to install the tree command
tree can display the distribution of files in the directory in a structured way, install the tree input command sudo yum -y install tree
, if the tree is garbled: inputalias tree='tree --charset ASCII'
See the blog: click on the link - tree installation and setting reference blog
Fourteen, the idea version should not be too high
My idea version is 2017.2.7. I have put the project in idea2022 and reported an error, so it is not recommended. The compatibility of version numbers has always been a bug that makes programmers headaches.
Fifteen, jdk, scala, hadoop, nodejs, angular installation
I have already said everything that needs to be installed during host computer development. I will not talk about jdk1.8 online installation and environment setting tutorials.
There are two places to install scala, one is to install locally on the host, and the other is to install plug-ins in idea, see the blog: Click to view the link
Hadoop installation is a headache, because hadoop only has the linux version, and the windows version needs to be modified manually, but I have already gone After several times, please refer to the blog link: Click to view the link
. When nodejs and angular are installed, angular may not be downloaded all the time. Even if the mirror source is replaced, it still cannot be downloaded, so the proxy must be cleared: change the mirror source operation link
proxy to empty settings, Enter the command as follows:
npm config set proxy null
In addition, if the download and installation of angular is successful but the new project cannot be created, my suggestion is to directly copy and paste the front-end project to the idea project folder