- 博客(21)
- 收藏
- 关注
原创 Fedora34安装PostgreSQL
安装PostgreSQLdnf install -y postgresql-serverpostgresql-setup --initdb --unit postgresqlsystemctl enable postgresqlsystemctl start postgresql
2022-03-26 22:36:06
232
原创 C#学习笔记
EntityFramworkCore1. 打开NuGet管理器:右键点击项目>管理NuGet程序包2. 点击“浏览”,搜索“EntityFramworkCore、EntityFramworkCore-Tool、EntityFramworkCore-SqlServer”然后安装3. 数据库操作命令:add-migration xxx, update-database...
2021-05-29 22:39:39
120
原创 Apache配置
配置文件路径yum安装 nano /etc/httpd/conf/httpd.confDirectoryIndex说明:配置目录默认页面示例:DirectoryIndex index.html index.phpSetHandler说明:配置文件格式处理器示例:<FilesMatch \.php$> SetHandler "proxy:fcgi://127.0.0.1:9056"</FilesMatch>...
2021-05-24 00:14:56
143
原创 安装vsftpd
安装yum install vsftpd -y启动systemctl restart vsftpd.service添加用户useradd ftpuserecho 123456|passwd --stdin ftpuser
2021-05-20 22:48:18
96
原创 Mysql
Grant# 授权root从远程主机登录grant all on *.* to root@'%' identified by '123456';
2019-09-27 11:22:08
137
原创 安装Php-Redis扩展
OS:CentOS7PHP:5.6Php-Redis:5.0.Yum安装Php安装方式为yumyum install php-pecl-redissystemctl restart httpd源码安装Php安装方式为源码安装phpizeyum install php-devel安装php-rediswget http://pecl.php.net/get/red...
2019-09-07 23:15:22
162
原创 Redis配置
RDB半持久化# 编辑redis.conf,配置以下几项save 900 1 # 策略dbfilename dump.rdb # 文件名dir /var/lib/redis # 文件路径AOF全持久化# 编辑redis.conf,配置以下几项appendonly yes # 开启AOFappendfilename "appendonly.aof" # 文件名主从#...
2019-09-07 19:23:43
105
原创 yum安装Redis
OS:CentOS7Redis:3.2.12安装yum install redis配置vi /etc/redis.conf# 加入以下代码daemonize yesbind 0.0.0.0启动/停止# 启动systemctl start redis# 停止systemctl stop redis常用命令# 登录redisredis-cli -...
2019-09-07 13:35:25
128
原创 源码安装Redis
OS:CentOS7Redis:5.0.5安装wget http://download.redis.io/releases/redis-5.0.5.tar.gztar -xvf redis-5.0.5.tar.gzcd redis-5.0.5makemake install PREFIX=/usr/local/redis # PREFIX要大写配置cp redis.conf ...
2019-09-07 12:44:50
114
原创 源码安装MysqlProxy
OS:CentOS7MysqlProxy:0.8.5MysqlProxy IP:192.168.1.12MysqlMaster IP:192.168.1.13MysqlSlave IP:192.168.1.14Master和Slave共同用户:test 123456Master和Slave增加共同用户# Master执行以下sqlgrant all on *.* to te...
2019-09-06 23:53:18
239
原创 源码搭建LAMP
系统:CentOS7Apache版本:2.4.41Mysql版本:5.5.62PHP版本:5.6Apache安装1. 安装依赖包yum install apr-util-devel pcre-devel perl -y温馨提示:perl要先于Apache安装,不然/usr/local/apache2/bin/apxs文件没有perl路径2. 下载Apache Httpd...
2019-09-02 19:48:01
169
原创 Mysql配置主从
Mysql版本:5.5.6Master配置1. 编辑配置文件,重启Mysql,关闭防火墙vi /etc/my.cnf在[mysqld]下加入以下代码:server-id=1log-bin=mysql-binsystemctl restart mariadbsystemctl stop firewalld2. Mysql控制台执行以下命令# 创建同步用户gra...
2019-08-30 20:10:02
126
原创 安装NFS
1. 安装NFS和依赖包yum install nfs-utils rpcbind -y2. 编辑配置文件vi /etc/exports加入以下代码:/var/nfs 192.168.1.0/24(rw,sync,no_root_squash)3. 启动服务systemctl start rpcbindsystemctl start nfssystemctl stop fir...
2019-08-30 12:56:25
185
原创 CentOS7源码安装Mysql5.5
系统:CentOS7Mysql版本:mysql-5.5.621. 安装依赖包yum install cmake ncurses-devel gcc-c++ bison -y2. 下载、解压、安装Mysqlwget https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.62.tar.gztar -xvf mysql...
2019-08-28 20:15:27
389
原创 源码安装包下载地址
1. Apache Httpdwget https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.41.tar.gz
2019-08-26 20:56:16
656
原创 CentOS7源码安装Apache Httpd配置rewrite
系统:CentOS7Apache Httpd版本:2.4.41Apache Httpd安装方式:源码安装安装rewrite安装Apache时增加–enable-rewrite参数./configure --enable-rewrite编辑httpd.confvi /usr/local/apache2/conf/httpd.conf去掉 #LoadModule rewr...
2019-08-25 21:18:09
528
原创 CentOS7 yum安装Apache Httpd配置虚拟主机
软件环境系统:CentOS7Apache Httpd版本:2.4.6-89.el7.centos.1Apache Httpd安装方式:yum安装1. 复制虚拟主机配置文件cp /usr/share/doc/httpd-2.4.6/httpd-vhosts.conf /etc/httpd/conf.d/2. 编辑虚拟主机配置文件vi /etc/httpd/con...
2019-08-23 18:37:34
2340
原创 CentOS7源码安装Apache Httpd
软件环境系统:CentOS7Apache Httpd版本:2.4.411. 安装依赖包yum install apr-util-devel pcre-devel2. 下载Apache Httpd Serverwget https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.41.tar.gz3. ...
2019-08-23 13:30:36
488
原创 CentOS7配置vsftpd虚拟用户
软件环境系统:CentOS7安装模式:最小化安装1. 安装vsftpdyum install vsftpd -y2. 创建虚拟用户列表vi /etc/vsftpd/ftpusers.txt输入spy01123spy02123温馨提示:一行用户名一行密码3. 生成db文件db_load -T -t hash -f /etc/vsftpd/ftpusers.txt /...
2019-08-22 08:43:59
266
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人