分类目录:Linux

以下是分类 Linux 下的所有文章

关于nginx启动报错:Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.

今天在执行 service nginx restart命令出现下面错误:Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. [vagrant@localhost ~]$ sudo service nginx restart Redirecting to /bin/sy……

Linux下的压缩解压缩命令

之前写过一篇《linux下打包压缩和解压缩文件夹命令》,主要针对.tar和.tar.gz压缩格式进行讲解,但发现linux中的压缩和解压缩格式很多,所以又写了这一篇,对linux中的大部分压缩和解压缩命令做一下汇总。 Linux下的压缩解压缩命令 压缩: //将目录filename打包成file.tar tar –cvf file.tar filename //将目录filename打……

svn查看日志(show log)显示时间为1970和show log no date的解决方法

我们在之前通过《在linux中搭建SVN服务器》搭建好SVN服务器后,有时候会发现一些问题,下面列举一下。 当你的SVN出现以下的问题: 1、查看日志(show log)显示时间为1970 2、修改文件后show log无法显示日志,上面的时间会自动在2016年和1970年间跳,而且设置不了时间 3、show log no date 可以尝试对服务器SVN做以下修改……

在linux中搭建SVN服务器

一、安装svn(yum安装方式) [root@localhost ~]# yum install subversion -y 二、创建SVN目录(在/home/svn) [root@localhost ~]# mkdir -p /home/svn 三、创建版本库(项目pro1) [root@localhost ~]# svnadmin create /home/svn/pro1 四、配置用户 [root@localhost ~]# cd /home/svn/pro1 1、编辑passwd添加用户,在[……

linux中查看端口占用情况

在linux中查看端口占用情况有两种方式: 1、lsof -i:端口号 lsof -i:端口号,用于查看某一端口的占用情况,比如查看22号端口使用情况,lsof -i:22 2、netstat -tunlp|grep 端口号 netstat -tunlp|grep 端口号,用于查看指定端口号的进程情况,如查看22端口的情况,netstat -tunlp|grep 22

解决服务器操作Redis出现Redis (error) NOAUTH Authentication required.

有时候我们在服务器终端连接redis服务器操作时会发现报错: # redis-cli 127.0.0.1:6379> keys * (error) NOAUTH Authentication required. 出现这样的问题,是因为redis设置了密码,所有会导致认证问题,解决的方法肯定就是:输入密码! 127.0.0.1:6379> auth “yourpassword” 例如密码是‘123456’,当出现认……

Redis设置密码和配置可远程访问

我们在服务器安装完Redis后,有时可能需要开启对redis的远程访问,而redis默认只允许本地访问,要使redis可以远程访问可以修改redis.conf配置文件,Redis配置密码和配置可远程访问。 Redis设置密码: 1、# vim /etc/redis.conf 2、找到# requirepass foobared 去掉前面的注释#,并把foobared 替换为你自己的密码 Redis配……