小编Leo*_*rak的帖子

在 Windows 中关闭代理的快速方法

每当我连接到公司 VPN 时,它总是设置一个代理服务器。公司 WiFi 需要此代理,但无法从 Internet 访问此代理。

这意味着每当我从家庭 WiFi 连接时,我无法打开除内部网络之外的任何页面。

解决方案是单击开始、控制面板、网络和 Internet、Internet 选项、连接、本地网络设置并关闭代理复选框。这个过程很烦人。

我想要一些 bat 脚本来关闭它。你可以帮帮我吗?

networking windows-7 proxy

6
推荐指数
1
解决办法
2万
查看次数

Nginx 创建由 root 而不是指定用户拥有的日志文件

我正在运行 CentOS 7.7,我想在自定义用户下运行 Nginx,并具有自定义 www 和日志位置。我已经使用了 SELinux,所以我启用了我的自定义目录:

\n\n
semanage permissive -a httpd_t # temporarily make SELinux permissive\nsemanage fcontext -a -t httpd_sys_content_t  '/opt/x/data/nginx(/.*)?'\nrestorecon -R -v /opt/x/data/nginx\nsemanage fcontext -a -t  httpd_log_t '/opt/x/log/nginx(/.*)?'\nrestorecon -R -v /opt/x/log/nginx\n
Run Code Online (Sandbox Code Playgroud)\n\n

这是我的 nginx.conf:

\n\n
user Xnginx Xgrp;\nworker_processes auto;\nerror_log /opt/x/log/nginx/error.log;\npid /run/nginx.pid;\n
Run Code Online (Sandbox Code Playgroud)\n\n

以及目录权限:

\n\n
ls -lZ /opt/X/log/\ndrwxrwxr-x. Xnginx Xgrp unconfined_u:object_r:httpd_log_t:s0 nginx\n
Run Code Online (Sandbox Code Playgroud)\n\n

我启动 Nginx

\n\n
systemctl start nginx\n
Run Code Online (Sandbox Code Playgroud)\n\n

它给出了

\n\n
[root@RE1 nginx]# systemctl status nginx\nnginx.service - The nginx HTTP and reverse proxy server\n  Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; …
Run Code Online (Sandbox Code Playgroud)

nginx centos-7

2
推荐指数
1
解决办法
4096
查看次数

标签 统计

centos-7 ×1

networking ×1

nginx ×1

proxy ×1

windows-7 ×1