首页
关于
壁纸
直播
留言
友链
统计
Search
1
《三国志英杰传》攻略
6,130 阅读
2
Emby客户端IOS破解
5,999 阅读
3
白嫖Emby
5,981 阅读
4
《吞食天地1》金手指代码
5,281 阅读
5
破解emby-server
4,240 阅读
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
登录
Search
标签搜索
ubuntu
mysql
openwrt
zerotier
springboot
centos
openvpn
jdk
吞食天地2
synology
spring
idea
windows11
吞食天地1
transmission
google-play
Japanese
xcode
群晖
kiftd
MoonjerX
累计撰写
375
篇文章
累计收到
464
条评论
首页
栏目
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
页面
关于
壁纸
直播
留言
友链
统计
搜索到
125
篇与
server
的结果
2023-05-04
ubuntu中80端口被apache2服务占用导致nginx无法启动
一次运维中,卸载了原先的nginx服务,改用docker运行宝塔面板,在宝塔中安装nginx,并使用host网络。但是卸载宿主机中的nginx服务后,启动宝塔容器却发现nginx无法启动。使用netstat|grep 80或者lsof -i:80命令都无法查询到占用80端口的服务。后发现直接访问宿主机ip地址可以打开一个网页,如上图。但是找不到该占用的程序。最终只能通过whereis apache2找到所有apache2目录然后sudo rm -rf /xx/xx/apache2删除相关的所有目录。重启系统后,docker版宝塔正常运行nginx
2023年05月04日
128 阅读
0 评论
0 点赞
2023-03-16
nginx宝塔面板下的配置
一、nginx.conf配置fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 64k; fastcgi_buffers 4 64k; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_http_version 1.1; gzip_comp_level 2; gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml; gzip_vary on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\.";二、编译配置./configure宝塔面板所有编译配置./configure \ --user=www \ --group=www \ --prefix=/www/server/nginx \ --add-module=srclib/ngx_devel_kit \ --add-module=srclib/lua_nginx_module \ --add-module=srclib/ngx_cache_purge \ --add-module=srclib/nginx-sticky-module \ --with-openssl=srclib/openssl \ --with-pcre=srclib/pcre-8.43 \ --with-http_v2_module \ --with-stream \ --with-stream_ssl_module \ --with-stream_ssl_preread_module \ --with-http_stub_status_module \ --with-http_ssl_module \ --with-http_image_filter_module \ --with-http_gzip_static_module \ --with-http_gunzip_module \ --with-ipv6 \ --with-http_sub_module \ --with-http_flv_module \ --with-http_addition_module \ --with-http_realip_module \ --with-http_mp4_module \ --with-ld-opt=-Wl,-E \ --with-cc-opt=-Wno-error \ --with-http_dav_module \ --add-module=srclib/nginx-dav-ext-module普通安装下需要的常用编译配置./configure \ --with-http_v2_module \ --with-stream \ --with-stream_ssl_module \ --with-stream_ssl_preread_module \ --with-http_stub_status_module \ --with-http_ssl_module \ --with-http_gzip_static_module \ --with-http_gunzip_module \ --with-http_sub_module \ --with-http_flv_module \ --with-http_addition_module \ --with-http_realip_module \ --with-http_mp4_module \ --with-ld-opt=-Wl,-E \ --with-cc-opt=-Wno-error \ --with-http_dav_module三、server配置server { listen 80; listen 443 ssl http2; server_name www.starguar.com; index index.php index.html index.htm default.php default.htm default.html; root /home/ecs-user/programs/digipay/front/web-official; location ~ \.php$ { fastcgi_pass unix:/run/php/php7.4-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi.conf; } #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 #error_page 404/404.html; #HTTP_TO_HTTPS_START if ($server_port !~ 443){ rewrite ^(/.*)$ https://$host$1 permanent; } #HTTP_TO_HTTPS_END ssl_certificate cert/www.starguar.com/fullchain.pem; ssl_certificate_key cert/www.starguar.com/privkey.pem; ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; add_header Strict-Transport-Security "max-age=31536000"; error_page 497 https://$host$request_uri; #SSL-END access_log logs/web-official.log; error_log logs/web-official-error.log; }
2023年03月16日
146 阅读
0 评论
0 点赞
2023-03-16
the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf
一、开始Nginx的SSL模块这是由于在安装nginx时,自定义编译配置没有添加ssl模块。打开nginx源码安装包目录,执行编译命令 ./configure 时要带上ssl模块。1.1 Nginx如果未开启SSL模块,配置Https时提示错误 原因也很简单,nginx缺少 http_ssl_module 模块,编译安装的时候带上 --with-http_ssl_module 配置就行了,但是现在的情况是我的nginx已经安装过了,怎么添加模块,其实也很简单,往下看: 做个说明:我的nginx的安装目录是 /usr/local/nginx 这个目录,我的源码包在 /usr/local/src/nginx-1.6.2 目录nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:371.2 Nginx开启SSL模块查看nginx原有的模块/usr/local/nginx/sbin/nginx -V在configure arguments:后面显示的原有的configure参数如下:--prefix=/usr/local/nginx --with-http_stub_status_module那么我们的新配置信息就应该这样写./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module运行上面的命令即可,等配置完。配置完成后,运行命令 make 执行编译。这里不要进行 make install ,否则就是覆盖安装。可以先备份原nginx再替换。cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak然后将刚刚编译好的nginx覆盖掉原有的nginx(这个时候nginx要停止状态)cp ./objs/nginx /usr/local/nginx/sbin/然后启动nginx,仍可以通过命令查看是否已经加入成功/usr/local/nginx/sbin/nginx -V 二、Nginx 配置Http和Https共存server { listen 80 default backlog=2048; listen 443 ssl; server_name wosign.com; root /var/www/html; ssl_certificate /usr/local/Tengine/sslcrt/ wosign.com.crt; ssl_certificate_key /usr/local/Tengine/sslcrt/ wosign.com .Key; }把ssl on;这行去掉,ssl写在443端口后面。这样http和https的链接都可以用三、Nginx 配置SSL安全证书重启避免输入密码可以用私钥来做这件事。生成一个解密的key文件,替代原来key文件。openssl rsa -in server.key -out server.key.unsecure四、Nginx SSL性能调优ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m;
2023年03月16日
233 阅读
0 评论
0 点赞
2023-03-16
nginx启用域名访问,禁止ip直接访问
server { listen 80; server_name www.test.com; //这里写你的域名 //加上如下一段规则,www.test.com换成你想设定的域名 if ($host != 'www.test.com'){ return 403; } }
2023年03月16日
89 阅读
0 评论
0 点赞
2023-01-12
Linux+Nginx+PHP
配置php.ini首先定位配置文件php.ini 的位置。php --ini |grep Loaded编辑fix_pathinfo的设置内容。在这个文件中,找到设置cgi.fix_pathinfo的参数。 这将用分号(;)注释掉,默认设置为“1”。这是一个非常不安全的设置,因为它告诉PHP尝试执行最近的文件,如果找不到请求的PHP文件,它可以找到它。 这可以允许用户以一种允许他们执行不应允许执行的脚本的方式制作PHP请求。取消注释并将其设置为“0”,如下所示:cgi.fix_pathinfo=0配置nginx的PHP解析nginx.conf 文件通常在“/etc/nginx”目录下。通常有下面的描述。user nginx;...http{...include /etc/nginx/conf.d/*.conf;}注意,这里用户用从nginx改为www-data。user www-data www-data;#fastcgi_pass localhost:9000 #改成 fastcgi_pass unix:/run/php/php7.2-fpm.sock; #默认安装是sock方式 #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; #改成 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
2023年01月12日
88 阅读
0 评论
0 点赞
1
...
3
4
5
...
25
您的IP: