Linux centos7 install common software java,node,mysql,seafile

Source: Internet
Author: User
Tags install node seafile

Linux CENTOS7 installation of common software Java,node,mysql,seafile installation compression decompression software
yum install -y unzip zip
Install Git
yum install -y git-core
Install the node environment using the Yum command to install node. js
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -yum -y install nodejs
Installing PM2 with NPM

Manage module PM2 via NPM installation process. It is a process management module for node. JS and we will use it to manage our personal site processes.

npm install pm2 -g
Installing the Java Environment
cd /usr/mkdir javawget http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-linux-x64.tar.gz

Unzip to/usr/java

tar -zxvf jdk-8u141-linux-x64.tar.gz

Configuring Environment variables
Environment variable Path:/etc/profile (You can copy one copy first, cp/etc/profile/etc/profile1)

vi /etc/profile    找到export,添加如下内容export JAVA_HOME=/usr/java/jdk1.8.0_152export JRE_HOME=/usr/java/jdk1.8.0_152/jreexport CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$JAVA_HOME:$PATH

Move to pay attention to the installation path, the path is wrong, no way to find the Java command

ZZ Save, and then enter the command:source /etc/profile

Install MySQL

Reference links

How to delete an older version of

Install MySQL:
yum install mysqlyum install mysql-serveryum install mysql-devel

or a different way.

wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmrpm -ivh mysql-community-release-el7-5.noarch.rpmyum install mysql-community-server -y启动 MySQL 服务:service mysqld restart设置 MySQL 账户 [root 密码]:/usr/bin/mysqladmin -u root password ‘root‘
Start MySQL:
service mysqld start

Note: If we are starting the MySQL service for the first time, the MySQL server will first initialize the configuration.

MySQL installed after the need to do

After the MySQL installation is successful, the default root user password is empty and you can use the following command to create the root user's password:

[[email protected]]# mysqladmin -u root password "new_password";

Now you can connect to the MySQL server with the following command:

[[email protected]]# mysql -u root -pEnter password:*******

Note: When you enter a password, the password is not displayed, you can enter it correctly.

mysqladmin -u root password "c5bMaVD818";创建数据库mydatabasecreate database mydatabase;

Quit or exit MySQL

Network Disc Seafile Installation Seafile
安装依赖环境yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server启动 MariaDB 服务:sudo systemctl start mariadb.servicesudo systemctl enable mariadb.service配置 MySQL:/usr/bin/mysql_secure_installation配置过程输入参数如所示,其中 New password 和 Re-enter new password 字段都设置为 O3ES9yvW,其他字段一路回车使用默认值:

To download the Seafile installation package:

wget https://mc.qcloudimg.com/static/archive/3d8addbe52be88df4f6139ec7e35b453/seafile-server_5.1.4_x86-64.tar.gztar -zxvf seafile-server_5.1.4_x86-64.tar.gzsudo mkdir -p /opt/seafile/installedsudo mv seafile-server_5.1.4_x86-64.tar.gz /opt/seafile/installedsudo mv seafile-server-5.1.4/ /opt/seafilecd /opt/seafile/seafile-server-5.1.4sudo ./setup-seafile-mysql.sh执行过程输入参数如所示,[server name] 字段输入 Seafile,[ This server‘s ip or domain ] 字段输入教程第一步申请的域名,[ 1 or 2 ] 字段选择 1,mysql 的 [ root password ] 字段输入 O3ES9yvW,其他字段一路回车使用默认值:

Start Seafile

sudo ./seafile.sh startsudo ./seahub.sh start>执行过程输入参数如所示,其中 [ admin email ] 设置为您登录网盘的帐号,如 [email protected],[ admin password ] 和 [ admin password again ] 设置为登录网盘的密码,如 admin_O3ES9yvW:修改防火墙规则sudo firewall-cmd --zone=public --permanent --add-port=8082/tcpsudo firewall-cmd --zone=public --permanent --add-port=8000/tcpsudo firewall-cmd --reload

Linux centos7 Installing common software java,node,mysql,seafile

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.