当前位置:网站首页>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
边栏推荐
- SAP MTS/ATO/MTO/ETO专题之九:M+M模式前后台操作,策略用50,提前准备原材料和半成品
- 征文投稿丨使用轻量应用服务器搭建博客环境
- VC2010 编绎Qt5.6.3 提示 CVTRES : fatal error CVT1107:
- openGauss内核:SQL解析过程分析
- R language ggplot2 visualization: use the patchwork package (directly use the plus sign +) to horizontally combine a ggplot2 visualization result and a plot function visualization result to form a fin
- SQL statement exercises
- 化学制品制造业智慧供应商管理系统深度挖掘供应商管理领域,提升供应链协同
- 使用Karmada实现Helm应用的跨集群部署
- 不要使用短路逻辑编写 stl sorter 多条件比较
- 笔试面试算法经典–最长回文子串
猜你喜欢
![Experiment 6 8255 parallel interface experiment [microcomputer principle] [experiment]](/img/70/394ccf6e08a0774acade1eb1b8bf00.png)
Experiment 6 8255 parallel interface experiment [microcomputer principle] [experiment]

C#/VB. Net to convert PDF to excel

Not being a meta universe now is like not buying a house 20 years ago!
DBMS in Oracle_ output. put_ Line output problem solving process

论文解读(GCC)《Efficient Graph Convolution for Joint Node RepresentationLearning and Clustering》

深度学习基础汇总

Talking about open source - Linus and Jim talk about open source in China

MIPS assembly language learning -02- logic judgment - foreground input

Expand Disk C (allocate the memory of disk d to Disk C)

SaaS application management platform solution in the education industry: help enterprises realize the integration of operation and management
随机推荐
The k-th element in the array [heap row + actual time complexity of heap building]
C语言学习-19-全排列
Grand launch of qodana: your favorite CI code quality platform
The past and present life of distributed cap theorem
Solution to JSON parsing problem using curl for Tron API signature broadcast and json Problem record of the loads method
分布式理论须知
一文教你快速生成MySQL数据库关系图
NAACL 2022 | 机器翻译SOTA模型的蒸馏
Smart supplier management system for chemical manufacturing industry deeply explores the field of supplier management and improves supply chain collaboration
[C language] how to implement plural types
VC2010 编绎Qt5.6.3 提示 CVTRES : fatal error CVT1107:
Installation and use of Jenkins
利用MySqlBulkLoader实现批量插入数据的示例详解
征文投稿丨使用轻量应用服务器搭建博客环境
验证回文串
Case driven: a detailed guide from getting started to mastering shell programming
GCC efficient graph revolution for joint node representationlearning and clustering
C语言学习-20-归并排序
经典模型——Transformer
R language ggplot2 visualization: the patchwork package horizontally combines a ggplot2 visualization result and a plot function visualization result to form a final result graph, aligns the two visua