- 博客(21)
- 收藏
- 关注
原创 Fedora34安装PostgreSQL
安装PostgreSQL dnf install -y postgresql-server postgresql-setup --initdb --unit postgresql systemctl enable postgresql systemctl start postgresql
2022-03-26 22:36:06
275
原创 C#学习笔记
EntityFramworkCore 1. 打开NuGet管理器:右键点击项目>管理NuGet程序包 2. 点击“浏览”,搜索“EntityFramworkCore、EntityFramworkCore-Tool、EntityFramworkCore-SqlServer”然后安装 3. 数据库操作命令:add-migration xxx, update-database ...
2021-05-29 22:39:39
149
原创 Apache配置
配置文件路径 yum安装 nano /etc/httpd/conf/httpd.conf DirectoryIndex 说明:配置目录默认页面 示例:DirectoryIndex index.html index.php SetHandler 说明:配置文件格式处理器 示例: <FilesMatch \.php$> SetHandler "proxy:fcgi://127.0.0.1:9056" </FilesMatch> ...
2021-05-24 00:14:56
176
原创 安装vsftpd
安装 yum install vsftpd -y 启动 systemctl restart vsftpd.service 添加用户 useradd ftpuser echo 123456|passwd --stdin ftpuser
2021-05-20 22:48:18
124
原创 Mysql
Grant # 授权root从远程主机登录 grant all on *.* to root@'%' identified by '123456';
2019-09-27 11:22:08
164
原创 安装Php-Redis扩展
OS:CentOS7 PHP:5.6 Php-Redis:5.0. Yum安装 Php安装方式为yum yum install php-pecl-redis systemctl restart httpd 源码安装 Php安装方式为源码 安装phpize yum install php-devel 安装php-redis wget http://pecl.php.net/get/red...
2019-09-07 23:15:22
184
原创 Redis配置
RDB半持久化 # 编辑redis.conf,配置以下几项 save 900 1 # 策略 dbfilename dump.rdb # 文件名 dir /var/lib/redis # 文件路径 AOF全持久化 # 编辑redis.conf,配置以下几项 appendonly yes # 开启AOF appendfilename "appendonly.aof" # 文件名 主从 #...
2019-09-07 19:23:43
124
原创 yum安装Redis
OS:CentOS7 Redis:3.2.12 安装 yum install redis 配置 vi /etc/redis.conf # 加入以下代码 daemonize yes bind 0.0.0.0 启动/停止 # 启动 systemctl start redis # 停止 systemctl stop redis 常用命令 # 登录redis redis-cli -...
2019-09-07 13:35:25
146
原创 源码安装Redis
OS:CentOS7 Redis:5.0.5 安装 wget http://download.redis.io/releases/redis-5.0.5.tar.gz tar -xvf redis-5.0.5.tar.gz cd redis-5.0.5 make make install PREFIX=/usr/local/redis # PREFIX要大写 配置 cp redis.conf ...
2019-09-07 12:44:50
141
原创 源码安装MysqlProxy
OS:CentOS7 MysqlProxy:0.8.5 MysqlProxy IP:192.168.1.12 MysqlMaster IP:192.168.1.13 MysqlSlave IP:192.168.1.14 Master和Slave共同用户:test 123456 Master和Slave增加共同用户 # Master执行以下sql grant all on *.* to te...
2019-09-06 23:53:18
260
原创 源码搭建LAMP
系统:CentOS7 Apache版本:2.4.41 Mysql版本:5.5.62 PHP版本:5.6 Apache安装 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
197
原创 Mysql配置主从
Mysql版本:5.5.6 Master配置 1. 编辑配置文件,重启Mysql,关闭防火墙 vi /etc/my.cnf 在[mysqld]下加入以下代码: server-id=1 log-bin=mysql-bin systemctl restart mariadb systemctl stop firewalld 2. Mysql控制台执行以下命令 # 创建同步用户 gra...
2019-08-30 20:10:02
147
原创 安装NFS
1. 安装NFS和依赖包 yum install nfs-utils rpcbind -y 2. 编辑配置文件 vi /etc/exports 加入以下代码: /var/nfs 192.168.1.0/24(rw,sync,no_root_squash) 3. 启动服务 systemctl start rpcbind systemctl start nfs systemctl stop fir...
2019-08-30 12:56:25
222
原创 CentOS7源码安装Mysql5.5
系统:CentOS7 Mysql版本:mysql-5.5.62 1. 安装依赖包 yum install cmake ncurses-devel gcc-c++ bison -y 2. 下载、解压、安装Mysql wget https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.62.tar.gz tar -xvf mysql...
2019-08-28 20:15:27
417
原创 源码安装包下载地址
1. Apache Httpd wget https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.41.tar.gz
2019-08-26 20:56:16
696
原创 CentOS7源码安装Apache Httpd配置rewrite
系统:CentOS7 Apache Httpd版本:2.4.41 Apache Httpd安装方式:源码安装 安装rewrite 安装Apache时增加–enable-rewrite参数 ./configure --enable-rewrite 编辑httpd.conf vi /usr/local/apache2/conf/httpd.conf 去掉 #LoadModule rewr...
2019-08-25 21:18:09
570
原创 CentOS7 yum安装Apache Httpd配置虚拟主机
软件环境 系统:CentOS7 Apache Httpd版本:2.4.6-89.el7.centos.1 Apache 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
2393
原创 CentOS7源码安装Apache Httpd
软件环境 系统:CentOS7 Apache Httpd版本:2.4.41 1. 安装依赖包 yum install apr-util-devel pcre-devel 2. 下载Apache Httpd Server wget https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.41.tar.gz 3. ...
2019-08-23 13:30:36
510
原创 CentOS7配置vsftpd虚拟用户
软件环境 系统:CentOS7 安装模式:最小化安装 1. 安装vsftpd yum install vsftpd -y 2. 创建虚拟用户列表 vi /etc/vsftpd/ftpusers.txt 输入 spy01 123 spy02 123 温馨提示:一行用户名一行密码 3. 生成db文件 db_load -T -t hash -f /etc/vsftpd/ftpusers.txt /...
2019-08-22 08:43:59
307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅