Build Nginx environment on Linux (CentOS)

Generally speaking, the Linux system is actually quite easy to use except for the invisible interface, but it is indeed much easier to use than Window, no nonsense, just talk about the steps to build the environment!

Install Nginx to compile and run the environment

Reference blog: http://www.linuxidc.com/Linux/2016-09/134907.htm

There is also the notes of Chuanzhi podcast

Tomcat: Installation steps under Linux:

Tomcat installation###

step:

1 ) Upload Tomcat to Linux

2 ) Unzip Tomcat to /usr/local

3 ) Open Linux port 8080 for external access

/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

/etc/rc.d/init.d/iptables save

4 ) Start and shut down Tomcat

Enter tomcat's bin to start: ./startup.sh

Enter tomcat's bin to shut down: ./shutdown.sh

1 . JDK installation###

Note: rpm and software-related commands are equivalent to software assistant management software under window

step:

1 ) Check whether java has been installed on the current Linux system

Type rpm -qa | grep java

2 ) Uninstall two openJDK

Type rpm -e --nodeps to uninstall the software

3 ) Upload jdk to linux

4 ) Install the plug-in needed for jdk operation yum install glibc.i686 (optional)

5 ) Unzip jdk to /usr/local under tar –xvf jdk-7u71-linux-i586.tar.gz –C /usr/local

6 ) Configure jdk environment variables, open the /etc/profile configuration file, and copy the following configuration into it

set java environment

JAVA_HOME=/usr/local/jdk1.7.0_71

CLASSPATH=.:$JAVA_HOME/lib.tools.jar

PATH=JAVAHOME/bin:PATH

export JAVA_HOME CLASSPATH PATH

7 ) Reload the /etc/profile configuration file source /etc/profile

2 . MysqlInstall###

step:

1 ) View the mysql that comes with CentOS

Type rpm -qa | grep mysql

2 ) Uninstall the built-in mysql

3 ) Upload Mysql to linux

4 ) Install mysql dependencies (optional)

yum -y install libaio.so.1 libgcc_s.so.1 libstdc++.so.6

yum update libstdc++-4.4.7-4.el6.x86_64

5 ) Unzip Mysql to the mysql directory under /usr/local/ (the mysql directory needs to be created manually)

cd /usr/local

mkdir mysql

tar -xvf MySQL-5.6.22-1.el6.i686.rpm-bundle.tar -C /usr/local/mysql

6 ) Install mysql under /usr/local/mysql

Install the server side: rpm -ivh MySQL-server-5.6.22-1.el6.i686.rpm

Install the client: rpm -ivh MySQL-client-5.6.22-1.el6.i686.rpm

7 ) Start mysql

service mysql start

8 ) Add mysql to the system service and set it to start

Add to system service: chkconfig --add mysql

Automatic start: chkconfig mysql on

9 ) Log in to mysql

After mysql is installed, a temporary random password will be generated, and the storage location is /root/.mysql_secret

msyql –u root -p

10 ) Modify the mysql password

set password = password('root');

11 ) Open mysql remote login

By default, mysql does not support remote login to mysql for security reasons, so you need to set the permission to enable remote login to mysql

Enter the following command after logging in to mysql:

grant all privileges on . to 'root' @'%' identified by 'root';

flush privileges;

12 ) Open Linux's external access port 3306

/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

/etc/rc.d/init.d/iptables save --- permanently save the modification to the firewall

Recommended Posts

Build Nginx environment on Linux (CentOS)
(centos7) linux build nginx load balancing build
Linux (centos7) build gitlab
Build k8s1.9.9 on centos7
CentOS6.7 build LNMP environment
Centos7.6 build LNMP environment
Jenkins build on centos
CentOS 7 build LNMP environment
Build Nginx based on Centos 7 (including virtual host)
How to build a LAMP environment on centos7.2
Build docker environment under Centos6.5
Build MariaDB replication on CentOS
Install MySQL 8.0.16 on Linux Centos
Install Nginx server on CentOS 7
Common Linux operations (based on centos7)
How to install Nginx on CentOS 8
Install MySQL on Linux CentOS7 (Windows)
​Install Oracle database on CentOS Linux
Build Elasticsearch 6.2.4 (centos) based on docker
Configure python3 environment on centos7 and
Build Discuz Forum based on CentOS
Build an Ubuntu Linux development environment on a Vmware virtual machine
Install Jenkins on linux centos (non-docker way)
Build WeChat applet service based on CentOS
Configure Nginx load balancing based on CentOS 7
Configure Nginx forward proxy based on CentOS 7
Build WeChat applet service based on CentOS
Build a LAMP development environment on Ubuntu 16.04
CentOS7 build FastDFS distributed file system (on)
Linux environment construction: CentOs + Apache + MySQL + PHP
Steps to build LNMP environment on ubuntu 20.04
Build arm virtual operating environment on Ubuntu
(1) Centos7 installation to build a cluster environment
[PHP] Build a PHP operating environment under CentOS
Centos build lnmp
Centos7 install Nginx
How to quickly build Nginx server under CentOS
How to install RPM packages on CentOS Linux
Build Discuz Forum in LNMP Environment under CentOS7
Configure Nginx to start automatically based on CentOS 7
Build LEMP (Linux+Nginx+MySQL+PHP) environment under CentOS 8.1 (detailed tutorial)
Build Dedecms website in LNMP environment under CentOS7
Detailed explanation of building Hadoop environment on CentOS 6.5
Detailed tutorial of installing nginx on centos8 (graphic)
CentOS7.3 64 bit, build Zabbix3.4
CentOS MONO nginx running
Install Docker on Centos7
CentOS build private git
Linux Network Foundation (CentOS7)
install LNMP on centos7.4
Install Java on Centos 7
Xfs configuration on centos7
Build a basic environment for Java development under Centos7
Configure Ocserv on CentOS 6
Nodejs install on centos7
Install FFmpeg on CentOS 8
Hadoop environment construction (centos7)
Embedded Linux development environment to build and configure Ubuntu
Install RabbitMQ on CentOS 7
lamp (centos7) installation lamp environment
Install Node.js on Centos