ReCentOs_7.2 with Redis
来源:互联网 发布:哭 知乎 编辑:程序博客网 时间:2024/06/05 04:48
CentOS7.2 初始配置及修改端口
升级yum yum update
安装vim yum install vim-enhanced
备份sshd配置文件 scp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
创建密匙 ssh-keygen
授权密匙 scp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
查阅并下载私匙文件 cat /root/.ssh/id_rsa
修改sshd配置文件 vim /etc/ssh/sshd_config(port xx/PubkeyAuthentication yes/PasswordAuthentication no)
重启SSH服务 systemctl restart sshd.service
添加SELinux ssh端口 semanage port -a -t ssh_port_t -p tcp xxxx
查看当前SElinux ssh端口 semanage port -l | grep ssh
重启SSH服务 systemctl restart sshd.service
修改文件夹权限 chmod 750 FILEL_NAME
安装redis——server
下载redis
wget http://download.redis.io/releases/redis-stable.tar.gz
tar zxvf redis-stable.tar.gz
yum install cpp
yum install binutils
yum install glibc
yum install glibc-kernheaders
yum install glibc-common
yum install glibc-devel
yum install gcc
yum install make
yum install gcc
yum install tcl
make MALLOC=libc
cd utils
ln -s /usr/local/redis/bin/redis-* /usr/local/bin/
sudo ./install_server.sh
sudo service redis_6379 start
cd ..
cp redis.conf /usr/local/bin
安装phpredis
wget https://github.com/phpredis/phpredis/archive/3.1.2.tar.gz
tar zxvf FIELL_NAME
-------安装xampp
/opt/lampp/bin/phpize # php安装后的路径
-------安装autoconf
./configure --with-php-config=/opt/lampp/bin/php-config
scp /opt/lampp/etc/php.ini /opt/lampp/etc/php.bak
vim /opt/lampp/etc/php.ini:
extension=redis.so
/opt/lampp/lampp restart
升级yum yum update
安装vim yum install vim-enhanced
备份sshd配置文件 scp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
创建密匙 ssh-keygen
授权密匙 scp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
查阅并下载私匙文件 cat /root/.ssh/id_rsa
修改sshd配置文件 vim /etc/ssh/sshd_config(port xx/PubkeyAuthentication yes/PasswordAuthentication no)
重启SSH服务 systemctl restart sshd.service
添加SELinux ssh端口 semanage port -a -t ssh_port_t -p tcp xxxx
查看当前SElinux ssh端口 semanage port -l | grep ssh
重启SSH服务 systemctl restart sshd.service
修改文件夹权限 chmod 750 FILEL_NAME
安装redis——server
下载redis
wget http://download.redis.io/releases/redis-stable.tar.gz
tar zxvf redis-stable.tar.gz
yum install cpp
yum install binutils
yum install glibc
yum install glibc-kernheaders
yum install glibc-common
yum install glibc-devel
yum install gcc
yum install make
yum install gcc
yum install tcl
make MALLOC=libc
cd utils
ln -s /usr/local/redis/bin/redis-* /usr/local/bin/
sudo ./install_server.sh
sudo service redis_6379 start
cd ..
cp redis.conf /usr/local/bin
安装phpredis
wget https://github.com/phpredis/phpredis/archive/3.1.2.tar.gz
tar zxvf FIELL_NAME
-------安装xampp
/opt/lampp/bin/phpize # php安装后的路径
-------安装autoconf
./configure --with-php-config=/opt/lampp/bin/php-config
scp /opt/lampp/etc/php.ini /opt/lampp/etc/php.bak
vim /opt/lampp/etc/php.ini:
extension=redis.so
/opt/lampp/lampp restart
阅读全文
1 0
- ReCentOs_7.2 with Redis
- Getting Started with Redis
- Redis sort with Jedis
- Redis with HA
- c# - Redis with RedisBoost
- Using Go with Redis
- Queuing tasks with Redis
- Simple Python Queue with Redis
- Caching with Spring Data Redis
- Using Redis with Node.js
- Guidelines for Redis clients with support for Redis Sentinel
- distributed locks with redis,分布式锁在redis中的实现
- Installing Redis on Ubuntu with APT
- nodejs redis with kue module init
- Connecting Magento with Redis by UNIX socket
- Caching a MongoDB Database with Redis
- Building Faster APIs with NodeJs and Redis
- Dynamic nginx upstreams with Lua and Redis
- fsockopen开打很慢的原因-完善DZ的dfopen函数
- Python将Mysql分表数据按小时增量装载到Hive示例
- Linux逻辑卷管理LVM详解
- 调试通用驱动程序
- 如何衡量angular工程师水平
- ReCentOs_7.2 with Redis
- 关于android设置dp与px
- Tolua使用笔记二:lua与C#的函数,变量交互方法
- vue 改端口问题
- Android防止内存泄漏的八种方法(下)
- 计算机网络部分的面试常考点,参考书籍:《计算机网络》第五版 谢希仁
- 点击空白处让弹窗隐藏
- JMeter录制Web脚本-简单示例(一)
- mysql 学习