活到老学到老  

记录遇到问题的点点滴滴。

0

SummaryThis post describes how to set up your Red Hat or Centos 7 server to be a yum repository for both the local server and also serve other servers on the network via...

7年前发布  · 892 次阅读
0

今天安装vsftp服务器,在修改了 chroot_local_user 属性以后,发现进行客户端访问的时候会报错:500 OOPS: vsftpd: refusing to run with writable root inside chroot()到网上查了资料,得到解决问题方法如下:"如果启用chroot,必须保证ftp根目录不可写,...

7年前发布  · 1073 次阅读
0

This article describes how to create system users in vstfpd and chroot them (isolate or “jail” them to their home directory) if necessary.Add a system userCreate a new us...

7年前发布  · 1044 次阅读
0

Thanks to Wandisco, which is maintaining the rpm packages for latest Subversion version. This article will help you to install subversion 1.9 ( svn client ) on CentOS/RHE...

7年前发布  · 1861 次阅读
1

环境说明:两台局域网内的Linux主机,本环境的系统为centos 5.3 X86_64控制主机 为:192.168.10.149被控制主机为:192.168.10.150一,在控制主机上安装远程开机需要的 软件[root@tomcat2 ~]#yum -y install wol或者安装rpm包 http://pkgs.repoforg...

7年前发布  · 1817 次阅读
  linux  openwrt  centos  wol  ethtool  wake 
0

问题起因在访问https的网站时,报出Peer's Certificate has expired的错误。如下:[root@localhost ~]# curl https://www.baidu.com curl: (60) Peer's Certificate has expired. More details here: http:...

7年前发布  · 1716 次阅读
0

如果我们在Linux 系统上安装了某个软件,我们可以通过如下的三种方式来确定。 一.        Which 命令Shell 的which 命令可以找出相关命令是否已经在搜索路径中。 如: [root@localhost ~]# which gcc /usr/bin/gcc 二.        Whereis 命令Whereis 命令...

7年前发布  · 975 次阅读
  which 
0

### Install ####yum -y install gcc gcc-c++ libstdc++-devel tcl wget http://download.redis.io/releases/redis-3.2.4.tar.gz tar xzf redis-3.2.4.tar.gz cd redis-3.2.4 make ma...

7年前发布  · 1424 次阅读
  gcc  redis  tcl 
0

在linux系统下、history命令会保存多少条命令呢?曾在一本书上说,如果注销系统,那么会将所有的历史命令都定入到~/.bash_history,但只保留1000条命令(这个是由默认的shell变量所设置了的)但是为什么我们执行history命令后会出现大于1000条的历史记录呢,其实当我们仔细一看只是序列大于1000、记录的条数还是...

7年前发布  · 1846 次阅读
  history 
0

今天在公司发布新版本时,发布脚本突然报Read-only file system的错误,之前一直还用的好好的…登录到远程服务器上,发现只要涉及到修改/保存条目等需要写磁盘操作的命令都无法使用(如tar、cp、mv、rm、chmod、chown、wget下载等指令),总是提示Read-only file system,也就是说系统是只读的,...

7年前发布  · 2349 次阅读
  fstab 
0

[caibo@localhost /]$ firewall-cmd --zone=public --add-port=3306/tcp --permanent success [caibo@localhost /]$ firewall-cmd --reloadsystemctl stop firewalld.service #停止 sys...

7年前发布  · 1269 次阅读
  mysql  Centos7 
0

CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下1、直接关闭防火墙systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动2、设置 iptables ser...

7年前发布  · 1287 次阅读
  firewall  Centos7 
0

配置用户的公钥登陆时,配置完authorized_keys居然一直不生效,于是google之,发现原来是因为.ssh目录和下面文件的权限问题导致的,因为目录的权限已经超过了sshd的要求权限。如果希望ssh公钥生效需满足至少下面两个条件:1) .ssh目录的权限必须是700 2) .ssh/authorized_keys文件权限必须是60...

7年前发布  · 2246 次阅读
0

新硬盘分区完成后使用partprobe将新的分区表读入内存,如果提示"command not found"则安装partd rpm包[root@server1 ~]# partprobe -bash: partprobe: command not found [root@server1 ~]# yum -y install parted...

7年前发布  · 1754 次阅读
  partprobe 
0

主机自带硬盘超过300GB,目前只划分使用了3个主分区,不到70GB,如 下:[root@db2 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 29G 3.7G 24G 14% / /dev/sda2 29G 22G 5.2G 81% /oracle...

7年前发布  · 1230 次阅读
  linux  fdisk  partprobe 
0

使用ulimit -a可以查看当前系统的所有限制值,使用ulimit -n 可以查看当前的最大打开文件数。 新装的linux默认只有1024,当作负载较大的服务器时,很容易遇到error: too many open files。因此,需要将其改大。使用 ulimit -n 65535 可即时修改,但重启后就无效了。(注ulimit -S...

7年前发布  · 1874 次阅读
  linux  ulimit 
0

查看日志,有一个[warn]: 3660#0: 20000 worker_connections are more than open file resource limit: 1024 !!原来安装好nginx之后,默认最大的并发数为1024,如果你的网站访问量过大,已经远远超过1024这个并发数,那你就要修改worker_connec...

1

[root@coolkiss ~]# dump -0u -j -f /backups/myproject.dump /srv/myproject/ DUMP: You can't update the dumpdates file when dumping a subdirectory DUMP: The ENTIRE dum...

7年前发布  · 2023 次阅读
  dump 
0

对于系统而言,我们可以有很多种办法去备份(还原)系统或文件,之所以要去做备份,就是为了在系统或文件遭到损害时,能及时恢复,把损失减小到最小。当然,对于企业服务器而言,备份的重要性是举足轻重。咱们今天就详细讨论一下LINUX中如何用dump和restore实现备份和还原。一,dump的原理,优点及限制dump和restore默认已经安装在R...

7年前发布  · 1384 次阅读
  dump  restore