
Linux
江南烟雨゛断桥殇╮
这个作者很懒,什么都没留下…
展开
-
500 OOPS: vsftpd: refusing to run with writable root inside chroot(). Please contact your web hostin
当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () 这个问题发生在最新的这是由于下面的更新造成的: - Add stronger checks for the configuration erro...转载 2018-10-11 11:17:34 · 271 阅读 · 0 评论 -
Redis启动警告解决
[gpp@goldpanpan src]$ 25342:C 14 Nov 11:08:48.118 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo25342:C 14 Nov 11:08:48.118 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=25342, ...原创 2018-11-14 11:33:21 · 4244 阅读 · 0 评论 -
CentOS 6.8下解决Redis make test错误:You need tcl 8.5 or newer in order to run the Redis test
hadoop@stormspark:~/workspace/redis2.6.13/src$ make testYou need tcl 8.5 or newer in order to run the Redis testmake: *** [test] Error 1wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar...原创 2018-11-14 11:07:18 · 707 阅读 · 0 评论 -
Tomcat集群(Nginx+Tomcat搭建集群)
Tomcat集群能带来什么 提高服务的性能,并发能力,以及高可用性 提供项目架构的横向扩展能力Tomcat集群实现原理通过Nginx负载均衡对多个Tomcat进行请求转发 Tomcat集群带来了什么新问题Session登录信息存储和读取的问题 服务器定时任务并发的问题 Tomcat单机部署多应用 修改/etc/profile,增加Tomcat环境变量...原创 2018-11-13 15:55:58 · 637 阅读 · 0 评论 -
CentOS 7安装Vsftpd
一、安装实操1、安装vsftpd(sudo权限根据个人情况)sudo yum -y install vsftpd2、创建用户可以先创建ftpfile文件夹,不创建的话-d会默认创建sudo useradd ftpuser -d /ftpfile -s /sbin/nologin3、修改ftpuser的密码sudo passwd ftpuser4、给ftpfi...原创 2018-10-10 23:17:49 · 495 阅读 · 0 评论 -
iptables 重启防火墙失败 service iptables restart
#sudo service iptables restartRedirecting to /bin/systemctl restart iptables.service systemctl restart iptables.service防火墙重启成功原创 2018-10-10 22:13:03 · 5794 阅读 · 0 评论 -
解决service iptables save出错
原因:CentOS 7.x开始,CentOS开始使用systemd服务来代替daemon,原来管理系统启动和管理系统服务的相关命令全部由systemctl命令来代替。service命令只保留下了极少部分使用,大部分命令都要改用systemctl使用。首先停止防火墙 1.systemctl stop firewalld 2.systemctl mask firewalld...原创 2018-10-10 22:01:35 · 3749 阅读 · 0 评论 -
CentOS 7安装Git
一、安装实操Git下载地址 http://learning.happymmall.com/git/git-v2.8.0.tar.gz1、下载Git后解压sudo tar -zxvf git-v2.8.0.tar.gz2、安装Git依赖sudo yum -y install zlib-devel openssl-devel cpio expat-devel g...原创 2018-10-12 15:56:58 · 138 阅读 · 0 评论 -
CentOS 7重启防火墙服务,出现Job for iptables.service failed because the control process exited with error code
sudo chkconfig network offsudo chkconfig network onsudo service NetworkManager stopsudo service NetworkManager start重新运行网络配置即可原创 2018-10-11 22:07:32 · 1743 阅读 · 0 评论 -
Linux下彻底卸载mysql
1、查找是否安装mysqlsudo rpm -qa|grep -i mysql 2、显示之前安装的mysql-community-common-5.7.23-1.el7.x86_64mysql-community-libs-5.7.23-1.el7.x86_64mysql-community-client-5.7.23-1.el7.x86_64mysql57-communit...原创 2018-10-11 21:44:55 · 1421 阅读 · 2 评论 -
CentOS 7安装mysql
一、安装实操安装前首先查看机器是否安装有mysql,如果没有的话开始安装sudo rpm -qa | grep mysql-server1、安装mysql服务,会发现没有可用的mysql包sudo yum -y install mysql-community-server2、下载mysql需要的文件sudo wget -i -c http://dev.mysql.co...原创 2018-10-11 21:37:44 · 132 阅读 · 0 评论 -
CentOS7下解决yum install -y mysql-server没有可用包的问题(No package mysql-server available.)
下载地址 http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm1、下载后执行安装命令sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm2、安装完成后ls -1 /etc/yum.repos.d/mysql-community*...原创 2018-10-11 15:48:36 · 3017 阅读 · 0 评论 -
CentOS yum安装小问题
sudo yum install mysql-serverFailed to set locale, defaulting to CLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileNo package mysql-server available.Error: Nothing to do...原创 2018-10-11 15:03:01 · 164 阅读 · 0 评论 -
CentOS 安装redis(分布式)
一、安装实操Redis下载地址 http://learning.happymmall.com/%E4%BA%8C%E6%9C%9F%E9%9B%86%E7%BE%A4%E5%8F%8A%E7%BC%93%E5%AD%98%E5%88%86%E5%B8%83%E5%BC%8FJava%E7%AB%AF/redis-2.8.0-linux-mac.tar.gz 1、下载Redis...原创 2018-10-11 14:48:07 · 326 阅读 · 0 评论 -
Nginx安装、配置
1、安装实操Nginx下载地址 http://learning.happymmall.com/nginx/linux-nginx-1.10.2.tar.gz2、安装Nginx依赖sudo yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 3、解压Nginxtar -zxvf lin...原创 2018-10-11 14:15:17 · 136 阅读 · 0 评论 -
CentOS 7 安装 Tomcat
一、安装实际步骤Tomcat下载地址:wget http://learning.happymmall.com/tomcat/apache-tomcat-7.0.73.tar.gz将下载下来的Tomcat解压到当前目录进入Tomcat下,配置Tomcat的编码将编码设置为UTF-8进入Tomca bin目录下启动Tomcat启动成功,访问8080端口。查看是否...原创 2018-10-10 21:27:49 · 112 阅读 · 0 评论 -
CentOS 7安装JDK
一、Jdk安装讲解安装系统环境为:CentOS 7.3 64位;JDK版本:7u80 64位查看本地的java版本: 卸载自带的Jdk: 通过wget将jdk下载到linux上: 进行安装: 默认是安装在/usr/java里面:配置环境变量:生效配置,并检查安装是否成功:...原创 2018-10-10 17:34:37 · 142 阅读 · 0 评论 -
远程连接Redis报错,(error) DENIED Redis is running in protected mode because protected mode is enabled, no
(error) DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are ...原创 2018-11-14 17:32:00 · 1075 阅读 · 0 评论