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

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

  • 相关阅读:
    Java在ACM中的应用
    acm->stl
    残缺棋盘--状压DP
    EOJ Monthly 2019.3 A
    【CF1141E】Superhero Battle
    AtCoder Grant Contest 10.F 博弈
    莫比乌斯反演总结
    P2257 YY的GCD
    BZOJ1011 莫比乌斯反演(基础题
    HDU1695 莫比乌斯反演
  • 原文地址:https://www.cnblogs.com/flypiggy/p/3210043.html
Copyright © 2011-2022 走看看