NetBlog主题

CentOS8 设置.net core开机自动启动
Linux

CentOS8 设置.net core开机自动启动

1971

/etc/systemd/system 下创建 test001.service文件:进入/etc/systemd/system vi test001.service 内容是以下代码/usr/src/testDemo/为网站根目录, WebApplication1.dll为主程序 ,/usr/share/dotnet/dotnet为运行时启动程序Centos查看dotnet安装目录[root@192 lqwvje]# whic…

在Linux(CentOS8)上发布.net core网站
Linux

在Linux(CentOS8)上发布.net core网站

1844

1.安装.net coresudo dnf install aspnetcore-runtime-5.02.查看.net core版本dotnet --info3.把.net core网站文件上传到Centos84.进入网站根据目录运行 (临时运行)dotnet 运行的主程序(如WebApplication1.dll) --urls="http://*:5000"5.打开对外开放端口(进入下面网…

CentOS8安装Nginx并添加多个反向代理服务端
Linux

CentOS8安装Nginx并添加多个反向代理服务端

2191

1、安装依赖包 [root@localhost /]# dnf -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-develgcc:它可以编译 C、C++、Ada、Object C和Java等语言。pcre pcre-devel:Pcre全称(Perl Compatible Regular Expressions),是一个Perl库,包括 perl兼容的正则…

CentOS8打开对外开放端口
Linux

CentOS8打开对外开放端口

8553

1:查看firewall防火墙状态firewall-cmd --state或者systemctl status firewalld2:打开防火墙systemctl start firewalld3:关闭防火墙ystemctl stop firewalld4:重启防火墙firewall-cmd --reload或者systemctl reload firewalld5:开机自启动防火墙systemctl enable…

Linux centos重启、关机、取消命令
Linux

Linux centos重启、关机、取消命令

3528

Linux centos重启命令:reboot 普通重启shutdown -r now 立刻重启(root用户使用)shutdown -r 10 过10分钟自动重启(root用户使用)shutdown -r 20:35 在时间为20:35时候重启(root用户使用)如果是通过shutdown命令设置重启的话,可以用shutdown -c命令取消重启Linux centos关机…