zoukankan      html  css  js  c++  java
  • centos常用命令--备份

    端口打开

    命令如下:/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT #8080为指定端口

    /etc/rc.d/init.d/iptables save #将更改进行保存

    /etc/init.d/iptables restart #重启防火墙以便改动生效

    iptable重启

    service iptables restart  iptable重启

    添加自动启动项

    chkconfig mysqld on

    chkconfig mysqld off

    chkconfig –list

    如果某个服务尚未被添加到chkconfig列表中,则现需要使用–add参数将其添加进去:

    chkconfig –add postfix

    从系统启动项列表删除一个服务,使用–del选项从启动列表删除它:

    #chkconfig --del ip6tables

    查看httpd服务是否为自动启动:

    chkconfig –list httpd

    ftp服务器

    ftp文件夹:/etc/ftp

    用户以及密码在:/etc/vsftpd/vuser_passwd.db  可通过/etc/vsftpd/vuser_passwd.txt修改

    然后用:db_load -T -t hash -f /etc/vsftpd/vuser_passwd.txt /etc/vsftpd/vuser_passwd.db

    service vsftpd restart

    运行redmine

    ruby /var/www/redmine/script/server webrick -p 8000 -e production

    添加开机启动命令

    vi /etc/rc.d/rc.local

    ---恢复内容结束---

  • 相关阅读:
    MySql
    Docker
    达观数据
    Python面试题
    用Python构造ARP请求、扫描、欺骗
    git上传简单的命令行分析
    vue2自定义指令的作用
    自定义指令详解 vue
    文档打印 js
    通过Export2Zip实现表格内容下载成为excel文件
  • 原文地址:https://www.cnblogs.com/flypiggy/p/3210043.html
Copyright © 2011-2022 走看看