nginx+mysql8+php8建站
nginx+mysql8+php8+rhel7.6建站(20220111)
1、Nginx安装配置
1.1 安装前工作
首先更新系统软件源,使用以下命令更新系统 -
[root@swordman ~]# yum update
有关两个命令的一点解释:
yum -y update
- 升级所有包,改变软件设置和系统设置,系统版本内核都升级
yum -y upgrade
- 升级所有包,不改变软件设置和系统设置,系统版本升级,内核不改变
依赖包安装
[root@swordman src]# yum -y install gcc gcc-c++ autoconf automake libtool make cmake
[root@swordman src]# yum -y install zlib zlib-devel openssl openssl-devel pcre-devel
1.2. 下载Nginx安装源文件
源码下载,可官网下载地址:http://nginx.org/en/download.html 下载并上传到服务器(这里选择最新稳定版本:nginx-1.20.2
),如下图所示
或直接在服务上执行以下命令下载
[root@swordman ~]# cd /usr/local/src
[root@swordman src]# wget -c http://nginx.org/download/nginx-1.20.2.tar.gz
解压上面下载的文件
[root@swordman src]# tar zxvf nginx-1.20.2.tar.gz
在编译之前还要做一些前期的准备工作,如:依懒包安装,Nginx用户和用户组等。
1.3. 新建nginx用户及用户组
使用 root 用户身份登录系统,执行以下命令创建新的用户。
[root@swordman src]# groupadd nginx
[root@swordman src]# useradd -g nginx -M nginx
useradd
命令的-M
参数用于不为nginx
建立home
目录
修改/etc/passwd
,使得nginx
用户无法bash登陆(nginx用户后面由/bin/bash
改为/sbin/nologin
),
[root@swordman src]# vi /etc/passwd
然后找到有 nginx 那一行,把它修改为(后面由/bin/bash
改为/sbin/nologin
):
nginx:x:1002:1003::/home/nginx:/sbin/nologin
1.4. 编译配置、编译、安装
下面我们进入解压的nginx源码目录:/usr/local/src/
执行以下命令 -
[root@swordman ~]# cd /usr/local/src/nginx*
[root@swordman nginx-1.20.2]# pwd
/usr/local/src/nginx-1.20.2
[root@swordman nginx-1.20.2]#
[root@swordman nginx-1.20.2]# ./configure --prefix=/usr/local/nginx \
--pid-path=/usr/local/nginx/run/nginx.pid \
--with-http_ssl_module \
--user=nginx \--group=nginx \
--with-pcre \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module
注意:上面的反斜杠
\
表示换行继续。
--prefix=/usr/local/nginx
指定安装到 /usr/local/nginx
目录下。
上面配置完成后,接下来执行编译 -
[root@swordman nginx-1.20.2]# make
[root@swordman nginx-1.20.2]# make install
... ...
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/run' \|| mkdir -p '/usr/local/nginx/run'
test -d '/usr/local/nginx/logs' \|| mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html' \|| cp -R html '/usr/local/nginx'
test -d '/usr/local/nginx/logs' \|| mkdir -p '/usr/local/nginx/logs'
make[1]: Leaving directory `/usr/local/src/nginx-1.20.2'
[root@swordman nginx-1.20.2]#
Shell
上面编译时间跟你的电脑配置相关,所以可能需要一些等待时间。
查看安装后的程序版本:
[root@swordman nginx-1.20.2]# /usr/local/nginx/sbin/nginx -v
nginx version: nginx/1.20.2
修改Nginx默认端口(可选):
[root@swordman nginx-1.20.2]# vi /usr/local/nginx/conf/nginx.conf
找到 -
... ...#gzip on;server {listen 80;server_name localhost;#charset koi8-r;
... ...
把上面的 80
修改为你想要的端口,如:8080
。
修改配置后验证配置是否合法:
[root@swordman nginx-1.20.2]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
启动Nginx程序、查看进程 -
[root@swordman nginx-1.20.2]# /usr/local/nginx/sbin/nginx
[root@swordman nginx-1.20.2]# ps -ef | grep nginx
root 21348 24564 0 06:40 pts/0 00:00:00 grep --color=auto nginx
root 30901 1 0 Jan05 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
nginx 30902 30901 0 Jan05 ? 00:00:00 nginx: worker process
nginx停止、重启
未添加nginx服务前对nginx的管理只能通过一下方式管理:
# nginx 管理的几种方式 -
# 启动Nginx
/usr/local/nginx/sbin/nginx
# 从容停止Nginx:
kill -QUIT 主进程号 # 如上一步中的 ps 命令输出的 29151,就是 Nginx的主进程号
# 快速停止Nginx:
kill -TERM 主进程号
# 强制停止Nginx:
pkill -9 nginx
# 平滑重启nginx
/usr/nginx/sbin/nginx -s reload
现在我们来看看安装的Nginx的运行结果,可以简单地使用curl
命令访问swordman测试,结果如下 -
[root@swordman nginx-1.20.2]# curl swordman
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>body {width: 35em;margin: 0 auto;font-family: Tahoma, Verdana, Arial, sans-serif;}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p><p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p><p><em>Thank you for using nginx.</em></p>
</body>
</html>
2. PHP8安装配置
2.1 源码下载
官网地址:php8下载
[root@swordman ~]# cd /usr/local/src
[root@swordman src]# wget -c http://cn2.php.net/distributions/php-8.1.1.tar.gz
解压压缩包:
[root@swordman src]# tar -xzvf php-8.1.1.tar.gz
[root@swordman src]# cd php-8.1.1
2.2 安装编译所需依赖包
[root@swordman php-8.1.1]# yum -y install libxml2-devel sqlite-devel libcurl-devel libpng-devel
php8还需要额外安装liboniguruma:
[root@swordman src]# wget http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/x86_64/RPMS.classic/liboniguruma5-6.9.7.1-alt1.x86_64.rpm
[root@swordman src]# rpm -ivh liboniguruma5-6.9.7.1-alt1.x86_64.rpm
[root@swordman src]# wget http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/x86_64/RPMS.classic/liboniguruma-devel-6.9.7.1-alt1.x86_64.rpm
[root@swordman src]# rpm -ivh liboniguruma-devel-6.9.7.1-alt1.x86_64.rpm
2.3 源码编译、安装
PHP+Nginx组合的编译配置命令:
[root@swordman php-8.1.1]# ./configure --prefix=/usr/local/php7 \
--with-config-file-path=/usr/local/php7/etc \
--with-config-file-scan-dir=/usr/local/php7/etc/php.d \
--with-mcrypt=/usr/include \
--enable-mysqlnd \
--with-mysqli \
--with-pdo-mysql \
--enable-fpm \
--with-fpm-user=nginx \
--with-fpm-group=nginx \
--with-gd \
--with-iconv \
--with-zlib \
--enable-xml \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--enable-mbregex \
--enable-mbstring \
--enable-ftp \
--enable-gd-native-ttf \
--with-openssl \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-zip \
--enable-soap \
--without-pear \
--with-gettext \
--enable-session \
--with-curl \
--with-jpeg-dir \
--with-freetype-dir \
--enable-opcache# 执行完成后的结果:
configure: patching main/php_config.h.in
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/fpm/php-fpm.conf
config.status: creating sapi/fpm/www.conf
config.status: creating sapi/fpm/init.d.php-fpm
config.status: creating sapi/fpm/php-fpm.service
config.status: creating sapi/fpm/php-fpm.8
config.status: creating sapi/fpm/status.html
config.status: creating sapi/phpdbg/phpdbg.1
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+Thank you for using PHP.configure: WARNING: unrecognized options: --with-mcrypt, --with-gd, --enable-inline-optimization, --enable-gd-native-ttf, --with-xmlrpc, --enable-zip, --with-jpeg-dir, --with-freetype-dir
编译 + 安装,编译源码, 如下所示 -
[root@swordman php-8.1.1]# make
# 执行完成后的结果:
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
clicommand.inc
invertedregexiterator.inc
pharcommand.inc
directorytreeiterator.inc
directorygraphiterator.inc
phar.incBuild complete.
Don't forget to run 'make test'.
执行make test,make test是为了保证你下载代码可以在你的环境下正确执行,多执行了测试这一步而已
[root@swordman php-8.1.1]# make test
#出现这个说明执行测试完成
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 32
Exts tested : 40
---------------------------------------------------------------------Number of tests : 17157 13344
Tests borked : 1 ( 0.0%) --------
Tests skipped : 3812 ( 22.2%) --------
Tests warned : 2 ( 0.0%) ( 0.0%)
Tests failed : 52 ( 0.3%) ( 0.4%)
Expected fail : 28 ( 0.2%) ( 0.2%)
Tests passed : 13262 ( 77.3%) ( 99.4%)
---------------------------------------------------------------------
Time taken : 594 seconds
=====================================================================
完成安装,执行make install
[root@swordman php-8.1.1]# make install
Installing shared extensions: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20210902/
Installing PHP CLI binary: /usr/local/php7/bin/
Installing PHP CLI man page: /usr/local/php7/php/man/man1/
Installing PHP FPM binary: /usr/local/php7/sbin/
Installing PHP FPM defconfig: /usr/local/php7/etc/
Installing PHP FPM man page: /usr/local/php7/php/man/man8/
Installing PHP FPM status page: /usr/local/php7/php/php/fpm/
Installing phpdbg binary: /usr/local/php7/bin/
Installing phpdbg man page: /usr/local/php7/php/man/man1/
Installing PHP CGI binary: /usr/local/php7/bin/
Installing PHP CGI man page: /usr/local/php7/php/man/man1/
Installing build environment: /usr/local/php7/lib/php/build/
Installing header files: /usr/local/php7/include/php/
Installing helper programs: /usr/local/php7/bin/program: phpizeprogram: php-config
Installing man pages: /usr/local/php7/php/man/man1/page: phpize.1page: php-config.1
/usr/local/src/php-8.1.1/build/shtool install -c ext/phar/phar.phar /usr/local/php7/bin/phar.phar
ln -s -f phar.phar /usr/local/php7/bin/phar
Installing PDO headers: /usr/local/php7/include/php/ext/pdo/
查看安装成功后的版本信息
[root@swordman php-8.1.1]# /usr/local/php7/bin/php -v
PHP 8.1.1 (cli) (built: Jan 11 2022 07:19:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.1, Copyright (c) Zend Technologies
2.4. 修改配置
修改php
配置,查看php加载配置文件路径:
[root@swordman php-8.1.1]# /usr/local/php7/bin/php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/php7/etc
复制PHP的配置文件,使用以下命令:
[root@swordman php-8.1.1]# cp /usr/local/src/php-8.1.1/php.ini-production /usr/local/php7/etc/php.ini
[root@swordman php-8.1.1]# /usr/local/php7/bin/php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/php7/etc
Loaded Configuration File => /usr/local/php7/etc/php.ini
2.5 启用php-fpm服务
上面我们在编译php8
的时候,已经将fpm模块编译了,那么接下来,我们要启用php-fpm
。但是默认情况下它的配置文件和服务都没有启用,所以要我们自己来配置,先重命名并移动以下两个文件:
[root@swordman local]# cd /usr/local/php7/etc
[root@swordman etc]# cp php-fpm.conf.default php-fpm.conf
[root@swordman etc]# cp php-fpm.d/www.conf.default php-fpm.d/www.conf
配置php-fpm的服务载入:
就像上面的nginx一样,我们希望使用 service php-fpm start|stop|restart
这些操作来实现服务的重启,但没有像nginx那么复杂,php编译好之后,给我们提供了一个php-fpm
的程序。这个文件放在php编译源码目录中:
[root@swordman local]# cd /usr/local/src/php-8.1.1/sapi/fpm/
## 或直接使用可执行文件: /usr/local/php7/sbin/php-fpm
[root@swordman fpm]# cp init.d.php-fpm /etc/init.d/php-fpm
[root@swordman fpm]# chmod +x /etc/init.d/php-fpm
[root@swordman fpm]# chkconfig --add php-fpm
[root@swordman fpm]# chkconfig php-fpm on
通过上面这个操作,我们就可以使用 service php-fpm start
来启用php-fpm
了。用 ps -ef | grep php-fpm
看看进程吧。
[root@swordman fpm]# service php-fpm start
Starting php-fpm done
[root@swordman fpm]# ps -ef | grep php-fpm
root 663 1 0 10:25 ? 00:00:00 php-fpm: master process (/usr/local/php7/etc/php-fpm.conf)
nginx 664 663 0 10:25 ? 00:00:00 php-fpm: pool www
nginx 665 663 0 10:25 ? 00:00:00 php-fpm: pool www
root 32268 12447 0 10:34 pts/2 00:00:00 grep --color=auto php-fpm
这样,PHP环境就安装完成了,接下来我们通过Nginx代理集成PHP8,来实现Nginx+PHP服务。
3. Nginx代理集成PHP8配置
通过上面的操作,nginx
和php-fpm
服务都已经正常运行起来了,但是php-fpm
只是在127.0.0.1:9000
上提供服务,外网是无法访问的,而且也不可能直接通过php-fpm
给外网提供服务,因此需要使用nginx
去代理9000
端口执行php
。
实际上这个过程只需要对nginx进行配置即可,php-fpm
已经在后台运行了,我们需要在nginx的配置文件中增加代理的规则,即可让用户在访问80
端口,请求php的时候,交由后端的php-fpm
去执行,并返回结果。现在编辑Nginx的配置文件 -
[root@localhost local]# vi /usr/local/nginx/conf/nginx.conf
如果你大致了解过nginx的配置,应该能够很快分辨出这个配置文件里面的结构,并且知道server
块代表一个虚拟主机,要增加虚拟主机就再增加一个server
块,而且这个conf
文件中也给出了例子。那么怎么代理php-fpm
呢?找到:
#location ~ \.php$ {# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /script$fastcgi_script_name;
# include fastcgi_params;
#}
Shell
把前面的#
注释符号去掉,把script
改为$document_root
最终如下:
location ~ \.php$ {root html;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name;include fastcgi_params;}
这样就可以了,重新载入nginx
配置即可,使用以下命令 -
/usr/local/nginx/sbin/nginx -s reload
然后到/usr/local/nginx/html
去写一个php文件:index.php
进行测试,文件:index.php
的代码如下 -
<?phpphpinfo();
?>
现在访问目录IP,应该能看到结果如下 -
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-qHu68JjU-1646621803706)(C:\Users\chivalrous\AppData\Roaming\Typora\typora-user-images\image-20220112104216831.png)]
提示:如果无法打开,可能需要关闭防火墙,使用命令:
systemctl stop firewalld
MySQL8安装配置
检测下系统有没有自带的MySQL:yum list installed | grep mysql
,
[root@swordman ~]# rpm -qa | grep -i mysql
mysql-community-client-5.7.23-1.el7.x86_64
mysql57-community-release-el7-8.noarch
mysql-community-libs-5.7.23-1.el7.x86_64
mysql-community-common-5.7.23-1.el7.x86_64
mysql-community-server-5.7.23-1.el7.x86_64[root@swordman ~]# rpm -ev mysql-community-server-5.7.23-1.el7.x86_64
[root@swordman ~]# rpm -ev mysql57-community-release-el7-8.noarch
[root@swordman ~]# rpm -ev mysql-community-client-5.7.23-1.el7.x86_64
[root@swordman ~]# rpm -ev mysql-community-libs-5.7.23-1.el7.x86_64
[root@swordman ~]# rpm -ev mysql-community-common-5.7.23-1.el7.x86_64[root@swordman ~]# find / -name mysql
/var/lib/pcp/config/pmlogconf/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/etc/selinux/targeted/active/modules/100/mysql
/etc/selinux/targeted/tmp/modules/100/mysql
/usr/share/mysq[root@swordman ~]# rm -rf /var/lib/pcp/config/pmlogconf/mysql
[root@swordman ~]# rm -rf /var/lib/mysql
[root@swordman ~]# rm -rf /var/lib/mysql/mysql
[root@swordman ~]# rm -rf /etc/selinux/targeted/active/modules/100/mysql
[root@swordman ~]# rm -rf /etc/selinux/targeted/tmp/modules/100/mysql
[root@swordman ~]# rm -rf /usr/share/mysql
#删除配置文件,tar包安装不使用
[root@swordman ~]# rm -rf /etc/my.cnf
[root@swordman ~]# rm -rf /etc/my.cnf.d/
3.1 程序包下载
官网地址:mysql8下载
[root@swordman ~]# cd /usr/local/src
[root@swordman src]# wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.27-el7-x86_64.tar.gz
解压压缩包,将解压出的程序目录改名并移动到/usr/local目录下,对其进行初始化操作后便可使用。:
[root@swordman src]# tar -zxvf mysql-8.0.27-el7-x86_64.tar.gz
[root@swordman src]# cp -r mysql-8.0.27-el7-x86_64/ /usr/local/mysql
[root@swordman src]# cd /usr/local/mysql/
[root@swordman mysql]# mkdir data
#创建mysql用户
[root@swordman mysql]# useradd mysql -M -s /sbin/nologin
3.2:初始化MySQL服务程序
对目录进行授权,保证数据能够被mysql系统用户读取。在初始化阶段,应使用mysqld命令确认管理MySQL数据库服务的用户名称、数据保存目录及编码信息。在信息确认无误后开始进行初始化。在初始化的最后阶段,系统会给用户分配一个初始化的临时密码
[root@swordman mysql]# chown -R mysql:mysql /usr/local/mysql
[root@swordman mysql]# cd bin
[root@swordman bin]# ./mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
2022-01-12T06:25:57.572363Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2022-01-12T06:25:57.572915Z 0 [System] [MY-013169] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.27) initializing of server in progress as process 29082
2022-01-12T06:25:57.583579Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-01-12T06:25:58.326441Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-01-12T06:26:00.337787Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2022-01-12T06:26:00.337813Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2022-01-12T06:26:00.511003Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: ifW<Zl)go3HO
添加环境变量,方便调用
[root@swordman bin]# vim ~/.bash_profile
# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/bin:/usr/local/nginx/sbin:/usr/local/mysql/binexport PATH
[root@swordman bin]# source ~/.bash_profile
3.3 配置自启动并启动MySQL
libtinfo.so.5文件是MySQL数据库在8.0版本后新添加的重要的函数库文件,但默认不存在,需要将libtinfo.so.6.1文件复制过来或者作为链接文件才能正常启动:
[root@swordman bin]# cd /usr/local/mysql
[root@swordman mysql]# cp -a support-files/mysql.server /etc/init.d/
[root@swordman mysql]# chmod a+x /etc/init.d/mysql.server
[root@swordman mysql]# ln -s /usr/lib64/libtinfo.so.6.1 /usr/lib64/libtinfo.so.5
登录MySQL并修改密码
[root@swordman mysql]# mysql -u root -p
Enter password: 初始化的时候生成的密码
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.27Copyright (c) 2000, 2021, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> alter user 'root'@'localhost' identified by 'onaslowboattochina';
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'onaslowboattochina';
#设置远程访问权限
mysql> grant all privileges on *.* to root@'%' identified by 'onaslowboattochina'; flush privileges;
Query OK, 0 rows affected, 1 warning (0.00 sec)Query OK, 0 rows affected (0.00 sec)
s.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql> alter user ‘root’@‘localhost’ identified by ‘onaslowboattochina’;
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘onaslowboattochina’;
#设置远程访问权限
mysql> grant all privileges on . to root@’%’ identified by ‘onaslowboattochina’; flush privileges;
Query OK, 0 rows affected, 1 warning (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
nginx+mysql8+php8建站相关推荐
- nginx wsgi django 建站配置最终版
服务器配置环境centos7 python3: 见web标签中安装方法 1.安装各类基础模块 yum install gcc-c++ (为centos系统增加编译功能) yum install wge ...
- 建站之旅——Nginx代理服务器配置域名
前言 记录下微信小程建站之旅---- 省略备案和申请ssl证书..... 1.注意的我的ssl证书路径配置 下方配置需要改成你自己的 2.需要开启安全组443和防火墙443端口 3.注意开启etc配置 ...
- 免费建站?手把手自己从零开始(超详细)
双十一来了,有没有打算自己某云买服务器搭建网站的,现在服务器挺便宜,建站也可以自己"免费"DIY. 本文手把手从零开始搭建,软件选择比较成熟的WordPress,操作系统选择Cen ...
- 最新首发自助建站系统源码,傻瓜式一键建站系统源码,高度开源支持专业在线自助建站服务平台软件
一佰互联,巅云门户自助建站系统v8建站平台版,历经3年不断打磨终于上线了.专业PS级大师级高端响应式智能建站平台软件,只为网络公司而生,采用国内知名开源php框架,Thinkphp6+vue.js前端 ...
- php建站环境配置(apache php mysql软件安装与配置)
1,下载apache2.4( 链接:https://pan.baidu.com/s/1ifn-JkK4nquq9ga24Sldww 提取码:1234 ) 2, 解压apache安装包到想安装的目录,结 ...
- 宝塔linux_宝塔面板建站基础教程:如何安装宝塔面板及建立博客网站
大多数站长购买服务器特别是 Linux 服务器后一般都会选择安装宝塔面板来管理和维护服务器,但是有些新手站长总是担心自己不懂得如何在云服务器上安装宝塔面板,又或者成功安装了宝塔面板之后不懂得如何通过面 ...
- _网站建站基础第十一课(域名解析服务器环境linux安装宝塔)
在服务器,域名(国内备案)购买好之后,就可以开始搭建网站了,建站要为服务器解析好域名,然后配置好服务器环境,服务器环境就以linux系统+宝塔面板为例给大家演示: 域名备案成功后,进入服务器商的控制台 ...
- 内网和外网的区别_无需服务器,树莓派使用内网穿透进行建站与维护
概述 如题,我们今天主要讲利用网云穿官方提供的内网穿透功能来外网访问树莓派上的网站,以及通过 ssh 进行远程管理. 树莓派 树莓派是基于博通出品的 arm 架构处理器的微型电脑,价格低廉,目前最新版 ...
- Web基础:记录简单个人网站建站过程
背景 现在的数据和算法工作者,有自己的个人网站总是看起来专业一些的,有利于树立所谓的个人品牌:同时,基本的web开发技巧也是数据工作者不可或缺的技能之一.因此,利用周末建了一个自己的个人网站,这里简单 ...
- springboot util 测试类怎么写_SpringBoot入门建站全系列(九)文件上传功能与下载方式...
SpringBoot入门建站全系列(九)文件上传功能与下载方式 Spring对文件上传做了简单的封装,就是用MultipartFile这个对象去接收文件,当然有很多种写法,下面会一一介绍. 文件的下载 ...
最新文章
- min_25 推导及例题总结
- 提交时是使用防抖还是节流_使用BlockingExecutor进行节流任务提交
- LeetCode 219. 存在重复元素 II(哈希)
- EM算法的形式化推导
- LitePal 数据库使用方法(最新2.0LitePal数据库适用)
- navicat中文破解
- Spring技术发展及框架设计
- Win10配置ssh密钥免密连接Linux服务器
- 也评 阿里 P10 赵海平对王垠的面试
- consol32.exe
- SZTUOJ 1008.盒子游戏
- JSP 返回上一页的几种方法
- MYSQL存储经纬度使用什么数据类型
- cartographer_pose_extrapolator
- java面试全套清单_Java 全套面试题 PDF 下载
- 家用NAS上安装Domino
- cas19660-77-6/Chlorin E6/二氢卟吩 E6;meso-四(4-甲基-3-磺酸苯基)卟啉[简称T(4-MP)PS4];碘化四(4-三甲氨基苯基)卟啉(TTMAPPI)齐岳定制
- qgis获取几何图形中心点
- zxing 循环扫描_安卓Zxing 扫码如何连续扫码
- pytorch的paramter