![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
qq_41417660
这个作者很懒,什么都没留下…
展开
-
部署Flask项目
一、将数据导入到数据库中登录Mysql[root@localhost ~]# mysql -u root -pEnter password:添加新的用户MariaDB [mysql]> create user 'yangzhaoming'@'%' identified by '123456'; Query OK, 0 rows affected (0.000 sec)用户创建完成后,刷新授权MariaDB [mysql]> flush privileges原创 2021-07-26 17:33:20 · 310 阅读 · 0 评论 -
使用yum安装Nginx
nginx在yum 安装摘抄nginx官网文档URL:http://nginx.org/en/linux_packages.html#stablevi /etc/yum.repos.d/nginx.repo[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/7/$basearch/gpgcheck=0enabled=1刷新yum源并进行安装yum clean all && yum makecache原创 2020-06-03 15:58:58 · 96 阅读 · 0 评论 -
生产环境中安装Apache服务方法
第一步:首先需要配置安装环境yum install openssl-devel pcre-devel bzip2 gcc expat-devel -y上传文件到系统中并且进行解压(包下载地址 http://archive.apache.org/dist/apr/http://httpd.apache.org/download.cgi)tar xvf apr-util-1.5.2.tar.gz -C /usr/local/tar xjf apr-1.5.2.tar.bz2 -C /usr/loca原创 2020-06-03 16:13:23 · 263 阅读 · 0 评论 -
ab测试工具详解
参数: -n个请求要执行的请求数 -c并发性一次发出的多个请求的数量 -t timelimit秒(以秒为单位)花在基准测试上这意味着-n 50000 -s超时秒数(以秒为单位)等待每个回应默认值是30秒 -b windowsize TCP发送/接收缓冲区的大小,以字节为单位 -B地址建立传出连接时要绑定的地址 -p postfile包含要进行POST的数据的文件。记住也要设置-T -u putfile包含要发送到PUT的数据的文件。记住也要设置原创 2021-03-16 12:48:51 · 446 阅读 · 0 评论 -
CentOS8自签证书实现https
一、使用openssl自签192.168.2.100服务器192.168.2.101客户端1、安装openssl工具生成CA证书生成CA私钥ca.key[root@ServerB ~]# cd /opt[root@ServerB opt]# ls[root@ServerB opt]# openssl genrsa -out ca.key 2048Generating RSA private key, 2048 bit long modulus (2 p原创 2021-03-11 12:43:38 · 1332 阅读 · 0 评论 -
nginx识别php的两种方法
前提:php安装好(yum、编译)编译安装好nginx后再nginx.conf进行配置第一种情况:php监听端口9000未开放[root@ServerA sbin]# netstat -ap | grep 9000 查看php配置文件php-fpm.conf[root@ServerA sbin]# cat /etc/nginx/conf.d/php-fpm.conf# PHP-FPM FastCGI server# network or unix domain socket configu原创 2021-03-05 05:01:58 · 489 阅读 · 1 评论