当前位置:网站首页>Soliciting articles and contributions - building a blog environment with a lightweight application server
Soliciting articles and contributions - building a blog environment with a lightweight application server
2022-06-28 15:38:00 【InfoQ】
One 、 Buy servers

Two 、 Configure server
1、 install Node
[[email protected] ~]$ mkdir -p /usr/local/nodejs
[[email protected] nodejs]$ cd /usr/local/nodejs/
[[email protected] nodejs]$ wget https://npm.taobao.org/mirrors/node/v12.12.0/node-v12.12.0-linux-x64.tar.gz[[email protected] nodejs]$ tar -xvf node-v12.12.0-linux-x64.tar.gz[[email protected] nodejs]$ vim /etc/profileexport NODE_HOME=/usr/local/nodejs/node-v12.12.0-linux-x64
export PATH=$NODE_HOME/bin:$PATH[[email protected] nodejs]$ source /etc/profile[[email protected] nodejs]$ node -v[[email protected] nodejs]$ npm -v2、 install MySQL
[[email protected] nodejs]$ cd /home/admin
[[email protected] admin]$ mkdir downloads
[[email protected] admin]$ chmod 777 downloads
[[email protected] admin]$ cd downloads/[[email protected] downloads]$ wget https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm
[[email protected] downloads]$ sudo rpm -ivh mysql80-community-release-el8-1.noarch.rpm[[email protected] downloads]$ sudo yum install -y mysql-server[[email protected] downloads]$ sudo systemctl start mysqld[[email protected] downloads]$ mysql -V[[email protected] downloads]$ mysql -u rootmysql> ALTER USER 'root'@'localhost' IDENTIFIED BY ' Change this to your own password ';mysql> exit[[email protected] downloads]$ firewall-cmd --add-port=3306/tcp --permanent[[email protected] downloads]$ systemctl restart firewalld.service # service iptables restart [[email protected] downloads]$ mysql_secure_installation[[email protected] downloads]$ whereis my.cnf
my: /etc/my.cnf[[email protected] downloads]$ vi /etc/my.cnf
# modify 1: increase client To configure ( Beginning of file )
[client]
default-character-set=utf8mb4
# modify 2: increase mysqld To configure ( End of file )
#charset
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci[[email protected] downloads]$ systemctl restart mysqld3、 install Nginx
[[email protected] downloads]$ vim /etc/yum.repos.d/nginx.repo[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1[[email protected] downloads]$ yum -y install nginx[[email protected] downloads]$ systemctl stop nginx.service # stop it nginx service
[[email protected] downloads]$ systemctl start nginx.service # open nginx service
[[email protected] downloads]$ systemctl restart nginx.service # restart nginx service
[[email protected] downloads]$ systemctl status nginx.service # see nginx Service status 4、 Other environments

3、 ... and 、 summary & Use feeling
边栏推荐
- Visual Studio 2010 配置和使用Qt5.6.3
- Visual Studio 2010 编绎Qt5.6.3
- VC2010 编绎Qt5.6.3 提示 CVTRES : fatal error CVT1107:
- 实验6 8255并行接口实验【微机原理】【实验】
- What! 一条命令搞定监控?
- What! One command to get the surveillance?
- Grand launch of qodana: your favorite CI code quality platform
- Flutter简单实现多语言国际化
- Longest continuous sequence
- R语言ggplot2可视化:使用patchwork包(直接使用加号+)将一个ggplot2可视化结果和一段文本内容横向组合起来形成最终结果图
猜你喜欢

【LeetCode】13、罗马数字转整数

Basic grammar of C language

Xinchuang operating system -- kylin kylin desktop operating system (project 10 security center)
ORACLE中dbms_output.put_line输出问题的解决过程

Fleet | background Discovery issue 3: Status Management

go-zero 微服务实战系列(七、请求量这么高该如何优化)

Leetcode 48. Rotate image (yes, resolved)

SAP MTS/ATO/MTO/ETO专题之九:M+M模式前后台操作,策略用50,提前准备原材料和半成品

隆重推出 Qodana:您最爱的 CI 的代码质量平台

信创操作系统--麒麟Kylin桌面操作系统 (项目十 安全中心)
随机推荐
Qt create 5.0.3 配置Qt4.8.7
C语言学习-19-全排列
GCC efficient graph revolution for joint node representationlearning and clustering
[leetcode] 13. Roman numeral to integer
Classic model transformer
Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
What! 一条命令搞定监控?
Jenkins的安装及使用
Smart supplier management system for chemical manufacturing industry deeply explores the field of supplier management and improves supply chain collaboration
Qt 界面库
Innovation and upgrading of supply chain system driven management mode in petrochemical industry and strengthening internal management of enterprises
ORACLE中dbms_output.put_line输出问题的解决过程
C语言基础语法
Realization of a springboard machine
Fleet |「後臺探秘」第 3 期:狀態管理
After QQ was stolen, a large number of users "died"
Gbase Nantah General Motors appears at the 6th World Intelligence Conference
SAP mts/ato/mto/eto topic 9: front and back desk operation in m+m mode, strategy 50, preparation of raw materials and semi-finished products in advance
SQL statement exercises
Go zero micro Service Practice Series (VII. How to optimize such a high demand)