Upload files to the server, install Lrzsz, and upload the local files to the Linux system.
If it is CentOS, it can be installed with Yum install Lrzsz command, more convenient. Or: yum-y install LRZSZ command installation, more more convenient. (External network connection required)
To install the LRZSZ, we only need to enter the command at the client terminal: RZ.
installing the Linux version of the JDK
The base server version of Centos6.5 will install OPENJDK by default, first you need to remove openjdk
1. See if OPENJDK was previously installed
If the root user is not required to switch to the root user (su-root) command: RPM-QA | grep Java is displayed as follows: (there is the uninstall, no need), note that the version may be somewhat different, the actual operation of the prevail. Tzdata-java-2013g-1.el6.noarchjava-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_ 64java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64
2, uninstall OPENJDK:
(where the parameter "Tzdata-java-2013j-1.el6.noarch" is the result shown in the above view, stick it in the line, if you show a different, please copy the results you query)
Rpm-e--nodeps tzdata-java-2013g-1.el6.noarchrpm-e--nodeps java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_ 64rpm-e--nodeps java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64
3. Install JDK, upload jdk8 version
(1), switch to the root user to create a new directory Jdk8:cd/jdk8
(2), RZ upload jdk8 Linux version
(3), decompression: TAR–ZXVF jdk-8u181-linux-x64.tar.gz
(4), configure environment variables
Vi/etc/profile
Add Content:
Export Java_home=/root/jdk8export path= $PATH: $JAVA _home/binexport classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/ Lib/tools.jarexport java_home PATH CLASSPATH
(5), RECOMPILE environment variables
SOURCE /etc/profil
Additional instructions: If you install a 32-bit JDK
The Java command will appear
Solution: yum install glibc.i686
If not, install the 64-bit JDK
Installing TOMCAT8
Create tomcat8 directory under install tomcat,root directory
1, into the directory of Tomcat compressed files: Cd/root mkdir tomcat82, RZ upload tomcat8 extract Tomcat compressed files: TAR-ZXVF apache-tomcat-8.5.27.tar.gz shut down firewall: sevice iptables stop3, shutdown Firewall (permanent, requires restart): Chkconfig iptables off4, restart machine: reboot
To start Tomcat:
Enter Tomcat's Bin directory: Start the Tomcat Web server:./startup.sh Access: localhost:8080
Stop Tomcat:
./shutdown.sh
To view the Tomcat log information:
Go to Tomcat8 's logs directory using the command tail query log
Tail-f Catalina.out
install MySQL under Linux
1. Check if you have your own MySQL
View: Rpm-qa | grep MySQL
2. Uninstall your own MySQL
Delete: Rpm-e--nodeps See the options
3, the installation of MySQL
Using the online Yum installation
yum-y Install mysql* wait and then
4. Start and close MySQL
Start MySQL: service mysqld start
Turn off MySQL: service mysqld Stop
Restart MySQL: service mysqld Restart
(1) Enter MySQL: No password is required at the beginning
Mysql-u root-p
(2) using MySQL library:
Use MySQL
(3) View User table:
SELECT Host,user from User
(4) User settings password:
Update user Set Password = password (' 123 ') where user = ' root ';
Add the root remote login % field
Open the root Telnet account
In this machine first use root user login mysql:mysql-u root-p "Youpassword" for authorization operation:
Add a root user settings password
Mysql>grant all privileges on . To ' root ' @ '% ' identified by ' Youpassword ' with GRANT OPTION;
GRANT all privileges on * * to ' root ' @ '% ' identified by ' 123 ' with GRANT OPTION;
FLUSH privileges;
Don't forget this step!!!
Use MySQL to view user login information
(5) Refresh permissions:
Flush privileges;
5. Configure MySQL self-boot (optional operation)
1) Add to system service:
Chkconfig--add MySQL
2) Auto-start:
Chkconfig MySQL on
3) query list:
Chkconfig
1.4 Installing RedisInstallation Environment
Redis is a C language development, the installation of Redis need to first download the source code to compile, compilation depends on the GCC environment. If you do not have a GCC environment, you need to install GCC:
Yum-y Install gcc-c++
Redis Installation
Step 1: Upload "redis-3.0.0.tar.gz" to the Linux system/root/directory
Step 2: Go to the directory and unzip "redis-3.0.0.tar.gz"
TAR-ZXVF redis-3.0.0.tar.gz cut to directory Redis lower MV redis-3.0.0.tar.gz Redis
Step 3: In the Redis directory
Make MALLOC=LIBC
Redis Boot
Directly running the Src/redis-server will start in front-end mode,
./redis-server && indicates redis background boot.
Redis default Port 6379, viewed through the current service
Ps-ef | Grep-i Redis
To start a client command
Go to Redis/bin directory and start "REDIS-CLI"
./redis-cli
Remote Connection
To remotely connect to Redis, you need to configure Redis port 6379 to open in the Linux firewall
#开放6379端口/sbin/iptables-i input-p TCP--dport 6379-j ACCEPT
Using the Windows version of the Client tool, you need to configure the host 192.168.56.101 port number 6379
Redis Stop
Forces the end of the program. Forcibly terminating the Redis process may result in the loss of Redis persisted data.
Kill-9 31475 #pid需要通过 "ps-ef|grep redis" query
The proper way to stop Redis should be to send the shutdown command to Redis by: (Close the default port)
./REDIS-CLI shutdown
Project Release
Open the root Telnet account (telnet on command)
In this machine first use root user login mysql:mysql-u root-p "Youpassword" for authorization operation:
Add a root user settings password
Mysql>grant all privileges on . To ' root ' @ '% ' identified by ' Youpassword ' with GRANT OPTION;
GRANT all privileges on * * to ' root ' @ '% ' identified by ' 123 ' with GRANT OPTION; FLUSH privileges; Don't forget this step!!!
Use MySQL to view user login information
Use Navicat to connect to the remote MySQL database account root password 123
Import SQL Script
Export the Windows-developed database data to the SQL script file and then import the SQL script on the Linux system MySQL!
Supplementary Note: If using Linux system query table data garbled, is the system MySQL default character set problem.
Use command: VI/ETC/MY.CNF
Development Project War Package
Use the package
command to make corresponding changes to the relevant configuration file
RZ upload to the server on the specified directory Tomcat8/webapps directory!
Installation of Jdk,tomcat,redis,mysql under CentOS, and project release