After installing nginx on the Oracle VPS under Ubuntu, you will find that the default port 80 cannot be connected from the static ip, which is mainly blocked by two different levels of firewalls: VM Instance <==[ Ubuntu firewall]==> Virtual cloud Network <==[ Oracle firewall]==> Browser Oracle firewall Log in to the management interface https://cloud.oracle.com/ Open Virtual Colud Networks under Networking. After you enter all the way, there will be a new Ingress Rule place. Use this to open the port, you can set multiple ports at once, here is set 0.0.0.0/0, any source can access tcp: 80. Ubuntu firewall The ubuntu image provided by Oracle has also been used as a firewall, mainly to defend against virtual area network attacks and get through manually. Change to the root account: sudo -i Check the network card name: ip addr show Open port 80, the network card name in this example is ens3: sudo iptables -I INPUT 5 -i ens3 -p tcp --dport 80 -m state --state NEW,ESTABLIS...
installation curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add – echo “deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org- 4.4.list sudo apt update sudo apt install mongodb-org Start service Start MongoDB. sudo systemctl start mongod.service Check if it is active. sudo systemctl status mongod It starts automatically after booting. sudo systemctl enable mongod Check the connection, pay attention to whether it shows ok:1. mongo –eval'db.runCommand({ connectionStatus: 1 })' basic configuration Connect. mongo --host 127.0.0.1:27017 Set up the first administrator account, with the highest authority account, and then use it to set up other accounts. use admin; db.createUser( { user: “develop”, pwd: “1qaz@WSX#EDC”, roles: [{role: “userAdminAnyDatabase”, db: “admin”}] } ); exit; Open MongoDB authentication login. sudo vi /etc/mongod.conf Add the following sections: s...
Why learn Grovvy The official recommended language of Gradle is Groovy, which is a jvm language. If you want to perform plug-in modules, hot repairs, complex construction systems, etc., you need a little understanding of Groovy. You don't need to learn the details of Groovvy. Generally, the benefits are too great. Low, like bloggers only use Gradle to build SpringBoot, and the main project language is not Groovy. There are quite a few Gradle users who have no basic concepts at all. Whenever they encounter a need or problem, they need to find it online. This is a misunderstanding. Gradle is not just a configuration script, I personally think that behind it is a combination of two languages: Groovy Language + Gradle DSL The DSL part can also be expanded. If you are using the Android ecosystem, there will also be Android DSL, a total of three. The full name of DSL is Domain Specific Language, that is, "domain specific language", which means that this language is not univer...
Comments
Post a Comment