zoukankan      html  css  js  c++  java
  • samba Nginx

    1.samba
    2.nfs
    3.crond
    4.nginx
    
    ifconfig yum install net-tools -y
    ifconfig #查看所有已激活的网卡信息
    ifconfig eth0 #查看单独一块网卡的信息
    ip
    mtu网卡的最大传输单元
    临时配置
    ifconfig eth0 ip/24
    ifconfig eth0:0 ip/24
    回环网卡 为了测试用的
    永久配置
    /etc/sysconfig/network-scrips/eth0
    systemctl restart network
    
    dns
    /etc/resolv.conf #外部dns
    /etc/host #本地解析
    
    route add default gw ip/24 
    
    
    软件包管理
    
    rpm -ivh  安装
         
    rpm -e 卸载
    rpm -qi 查看rpm 包详细信息
    rpm -ql 查看rpm包里的文件 
    rpm -qf 查看某个命令是从哪个rpm包安装的
    rpm -ivh --force 强制安装
    rpm -e --nodeps 强制卸载
    
    yum -y install http* 安装
    yum erase http*  卸载
    yum -y groupinstall
    yum makecache
    yum clean all
    
    /etc/yum.repo.d/http.repo
    
    
    vim http.repo
    [http]
    name=http
    baseurl=file:////etc/createrepo
    gpgcheck=0
    enable=1
    
    
    
    
    源码包安装之前需要安装
    yum -i install gcc-* glibc-*
    
    
    
    
    samba
    1.准备ip
    iptable -F #清空防火墙
    systemctl restart firewall
    systemctl disable firewall
    systemctl status firewall
    
    setenforce
    /etc/sysconfig/selinux/config
    selinux=disabled
    
    2.安装软件包
    yum install samba -y
    3.修改配置文
    /etc/samba/smb.conf
    [pubilc]
    comment = public stuff
    path = /share
    public = yes
    writable =no 
    printable = no
    write list =alex,lili
    4.启动服务
    systemctl start smb
    arping 192.168.1.214 
    
    不设置系统密码
    useradd name
    smbpasswd -a name
    
    5测试
    映射网络驱动
    \服务端ip用户名 ---》家目录
    \服务端ippubulic --->共享目录
    
    
    
    
    清缓存
    
    net use 查看
    
    
    
    net use * /del #清除
    package-cleanup --cleandupes
    
    
    yum install epel-release install -y
    yum install pcre -y  rewrite依赖这个库
    yum install nginx -y
    yum install gcc-* glibc-* make libtool pcre ncurse-devel  -y
    
    
    ./configure --prefix=/usr/local/nginx  with-pcre=/usr/lib64
    ./configure --prefix=/usr/local/nginx  without-http_rewrite_module
    

      

  • 相关阅读:
    使用paramiko的问题记录
    python常见异常及解决方法
    linux ps -aux各列含义
    常用技能
    超时程序管理
    跨年的总结和展望
    java json和对象互转
    一些常用功能总结
    ResultSet转成java类对象
    python常用功能总结
  • 原文地址:https://www.cnblogs.com/morgana/p/6927175.html
Copyright © 2011-2022 走看看