add all change in now.
This commit is contained in:
@@ -2,12 +2,16 @@
|
||||
ubuntu
|
||||
$) sudo bash
|
||||
$) apt-get update
|
||||
$) apt-get install dotnet-sdk-8.0
|
||||
$) apt-get install dotnet-runtime-8.0
|
||||
$) apt-get install aspnet-core-runtime-8.0
|
||||
$) apt-get install -y dotnet-sdk-9.0
|
||||
$) apt-get install -y aspnetcore-runtime-9.0
|
||||
$) apt-get install -y dotnet-runtime-9.0
|
||||
$) dotnet --info
|
||||
$) apt-get install nginx
|
||||
|
||||
windows
|
||||
net 9 bundle.
|
||||
Windows Hosting Bundle Installer!
|
||||
|
||||
Copy the Files to the Linux Server
|
||||
Next, we need to copy the deployment files to the Ubuntu server. Before we move the files,
|
||||
let’s create the destination folder on the server and set the permissions
|
||||
@@ -66,4 +70,38 @@ $ sudo nano /etc/nginx/sites-avaible/default
|
||||
|
||||
After adding the content, save it. Then let’s enable and start the service:
|
||||
sudo systemctl enable kestrel-app.service
|
||||
sudo systemctl start kestrel-app.service
|
||||
sudo systemctl start kestrel-app.service
|
||||
|
||||
postgresql.conf:
|
||||
|
||||
Edit postgresql.conf:
|
||||
Locate the postgresql.conf file, typically in /etc/postgresql/<version>/main/postgresql.conf.
|
||||
Change the listen_addresses parameter to '*' to allow connections from any IP address, or specify the IP address(es) you want to allow.
|
||||
```
|
||||
|
||||
listen_addresses = '*'
|
||||
|
||||
|
||||
Locate the postgresql.conf file within the container (e.g., /etc/postgresql/<version>/main/postgresql.conf).
|
||||
Modify listen_addresses:
|
||||
Change listen_addresses = 'localhost' to listen_addresses = '*' to allow connections from any IP address.
|
||||
Alternatively, specify the container's IP address.
|
||||
|
||||
host all all 0.0.0.0/0 md5
|
||||
pg_hba.conf
|
||||
|
||||
**Edit `pg_hba.conf`:**
|
||||
* Locate the `pg_hba.conf` file, typically in `/etc/postgresql/<version>/main/pg_hba.conf`.
|
||||
* Add a line to allow connections from your desired network or specific IP addresses. For example, to allow connections from any IP address on the network using MD5 authentication:
|
||||
* ```
|
||||
host all all 0.0.0.0/0 md5
|
||||
|
||||
|
||||
setup password for postgresql
|
||||
sudo -u postgres psql
|
||||
postgres=#
|
||||
then type \password postgres
|
||||
|
||||
docker run -p 5432:5432 -e POSTGRES_PASSWORD=123456789 \
|
||||
-d postgres:9.3.6 \
|
||||
-c config_file=/path/to/postgresql.conf
|
||||
Reference in New Issue
Block a user