zoukankan      html  css  js  c++  java
  • 7788

    mysql改密码(需要输入旧密码):   /usr/bin/mysqladmin -u root -p password root

    /usr/local/mysql/bin/mysqladmin -uroot password 新密码

    设置防火墙:  vim /etc/sysconfig/iptables 

                      开端口 

                      -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
                      -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

                      /etc/rc.d/init.d/iptables restart

    查看端口:   netstat -na | grep LISTEN

                     netstat -na | grep 3306

    自动启动的服务: chkconfig --add mysqld

                            chkconfig sendmail off

                            chkconfig --add postfix

                            chkconfig --list postfix

                            echo "/etc/rc.d/init.d/mysqld start" >> /etc/rc.local
    改ip :        vim /etc/sysconfig/network-scripts/ifcfg-eth0

                            NETMASK=255.255.255.0
                            IPADDR=192.168.1.119
                            GATEWAY=192.168.1.1

                      /etc/init.d/network restart

    setup 也可以设置ip防火墙等

    修改默认语言 :   vi /etc/sysconfig/i18n

                            查看  echo $LANG

  • 相关阅读:
    mpvue: stylus定义主题色
    mpvue: 单个页面自定义导航栏或隐藏
    mpvue: fsevents is not a constructor
    Nginx:taro h5 Nginx代理配置
    git: 替换remote origin
    taro3.x: h5地图兼容组件封装
    taro3.x: h5地图兼容
    taro3.x: 使用taro-router在H5浏览器返回报错
    taro3.x: tarojs-router
    java线程与线程安全的单例模式
  • 原文地址:https://www.cnblogs.com/abinxm/p/1448235.html
Copyright © 2011-2022 走看看