本文已参与「新人创作礼」活动,一起开启掘金创作之路。
www.cnblogs.com/abc36725612… blog.csdn.net/imilli/arti…
systemctl start smb nmb //启动服务
systemctl restart smb nmb // 重启服务
systemctl enable smb nmb //添加开机启动
firewall-cmd --permanent --add-service=samba && firewall-cmd --reload // 防火墙放行
/etc/samba/smb.conf 配置文件
[root@bogon ~]# cd /etc
[root@bogon etc]# cd samba
[root@bogon samba]# ls
lmhosts smb.conf smb.conf.example
[root@bogon samba]# cat smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[html]
server string = public
security = root
encrypt passwords =yes
smb passwd file = /etc/samba/smbpasswd
[code]
workgroup = root
netbios name =www
path = /home/html
browseable = yes
writeable = yes
为samba用户www设置一个密码: smbpasswd -a www
——————————————— 版权声明:本文为CSDN博主「imilli」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:blog.csdn.net/imilli/arti…
nginx配置文件说明
server {
listen 8001;
server_name localhost;
#普通文件目录指向
location / {
root /home/html/mytest;
index index.html index.htm phpinfo.php;
}
#代理php文件
location ~ \.php$ {
root /home/html/mytest;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME ***/home/html/mytest***$fastcgi_script_name;#注意倾斜加粗位置目录为php代码目录
include fastcgi_params;
}
}
小操作:
include web_conf/*.conf;
把各个网站的配置文件都封装到server {} 保存成web_conf文件夹下 test_*.conf
即可动态的维护web_conf下的*.conf内容
重启 service nginx restart 即可动态管理虚拟机
编译安装make出错:centos7编译php出错 :make: *** [ext/dom/node.lo] 错误 1
解决办法:需要打补丁 注意:请自行修改你安装的版本:
curl -o php-5.4.5.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
cd php-5.4.5
patch -p0 -b < ./php-5.4.5.patch
注意如果没有patch命令执行
yum install -y patch
然后再重新configure配置,重新make。
centos7编译php出错 :make: *** [ext/dom/node.lo] 错误 1
标签:image install lock 图片 php block 技术分享 12c make
原文地址:blog.51cto.com/11134648/21…