zoukankan      html  css  js  c++  java
  • centos命令

    1.切换到root账户安装程序

    su root

    2可以使用echo $?检查命令是否执行成功,成功为0

    3关闭防火墙

    /etc/init.d/iptables stop
    #start 开启
    #restart 重启

    永久性关闭防火墙chkconfig –level 35 iptables off

    Centos7中的防火墙调整为firewalld,试一下systemctl stop firewalld关闭防火墙

    5 开启80端口

    iptables -I INPUT -p TCP --dport 80 -j ACCEPT  

    查看端口使用情况

    # lsof -i:3306

     e重启mysql

    service mysqld restart;

    6.查看mariadb状态

    service mariadb status

    systemctl status mariadb.service

    journalctl -xe

    给程序某个目录权限

     <script src="https://files.cnblogs.com/files/xiaohuochai/catalog.js"></script>
    [root@bbs download]# chown apache:apache -R ./upload 
    [root@bbs upload]# chmod -R 777 config
    [root@bbs upload]# chmod -R 777 data
    [root@bbs upload]# chmod -R 777 uc_client
    [root@bbs upload]# chmod -R 777 uc_server
  • 相关阅读:
    JSChart_页面图形报表
    hdu 2602(dp)
    hdu 1518(dfs)
    hdu 1716(dfs)
    hdu 1002大数(Java)
    SPOJ 375. Query on a tree (树链剖分)
    poj 1091 跳蚤
    HDU 4048 Zhuge Liang's Stone Sentinel Maze
    HDU Coprime
    HDU Machine scheduling
  • 原文地址:https://www.cnblogs.com/HouseNumber1703/p/6129627.html
Copyright © 2011-2022 走看看