• 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

  • 相关阅读:
    <mvc:annotation-driven>新增标签
    关于Spring中的<context:annotation-config/>配置
    <mvc:default-servlet-handler/>的作用
    各种WEB服务器自带的默认Servlet名称
    常用邮件协议
    vue-cli 脚手架项目简介(一)
    CSS3的transition和transform
    Spring配置文件<context:property-placeholder>标签使用漫谈
    使用Spring JDBCTemplate简化JDBC的操作
    技术探索不易
  • 原文地址:https://www.cnblogs.com/abinxm/p/1448235.html
Copyright © 2020-2023  润新知