使用IIS部署站点,报以下错误: Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers. 经排查,发现是引用第三方分页插件mvcpager.dll权限不足造成的,iis服务器设置的权限不足. 在本机通过以下地址:C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config 打开web.con…
转自:linux nginx配置新项目加域名 找到nginx的配置文件 nginx/nginx.conf 第一种方,法直接在nginx.com里面配置 user www www; worker_processes auto; error_log /home/wwwlogs/nginx_error.log crit; pid /usr/local/nginx/logs/nginx.pid; #Specifies the value for maximum file descriptors that…
编辑 /etc/network/interfaces 来设置 IP 和 DNS 解析服务器: # interfaces() ) and ifdown() auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.6 gateway 192.168.1.1 netmask 255.255.255.0 dns-nameservers 192.168.1.1 #network 192.168.1.…
设置静态IP root@xueji:~# vim /etc/network/interfaces # interfaces() ) and ifdown() auto lo iface lo inet loopback #这行下面添加 auto ens33 iface ens33 inet static address 192.168.244.10 netmask 255.255.255.0 gateway 192.168.244.2 DNS的设置及查看 root@xueji:~# vim /e…