当前位置:网站首页>Configuring Apache Web services for servers such as Tianyi cloud
Configuring Apache Web services for servers such as Tianyi cloud
2022-04-23 02:51:00 【_ Hello Spring】
Tianyi cloud and other server configurations Apache Web service
System : ubuntu 16.04
1 install Apache
sudo apt-get install apache2
2 Firewall operation
// Enable ufw
ufw enable
// Ban ufw
ufw disable
// View the list of firewall status and rules
ufw status
// Reset firewall
ufw reset
// List the currently integrated application names
ufw app list
// Allow this service
ufw allow <name>
// Delete rule with status code
ufw delete number
// Specify specific rules to delete
ufw delete allow 80/tcp
// Turn on / Ban
sudo ufw allow|deny [service]
// Open or close a port
sudo ufw allow smtp // Allow all external IP Visit the 25/tcp (smtp) port
sudo ufw allow 22/tcp // Allow all external IP Visit the 22/tcp (ssh) port
sudo ufw allow 53 // Allow external access 53 port (tcp/udp)
sudo ufw allow from 192.168.1.100 // Allow this IP Access all native ports
sudo ufw allow proto udp 192.168.0.1 port 53 to 192.168.0.2 port 53
sudo ufw deny smtp // No external access smtp service
sudo ufw delete allow smtp // Delete a rule created above
3 Configuration modification Apache Default port ( Not recommended 80 port , Some servers do not allow )
sudo vim /etc/apache2/ports.conf
sudo vim /etc/apache2/sites-available/000-default.conf
4 restart apache2 service
service apache2 restart
Configure security groups ( Add rules )
Input server extranet ip:9080 You can visit
版权声明
本文为[_ Hello Spring]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220718113763.html
边栏推荐
- MySQL复杂查询使用临时表/with as(类似表变量)
- MySQL function syntax
- ele之Table表格的封装
- 5W of knowledge points
- Airtrack cracking wireless network password (Dictionary running method)
- Flink learning (XI) watermark
- Chapter V project quality management of information system project manager summary
- Essential qualities of advanced programmers
- Use of go language web Middleware
- Centos7 install MySQL 8 0
猜你喜欢
JVM runtime data area (I)
Actual combat of industrial defect detection project (IV) -- ceramic defect detection based on hrnet
Liunx foundation - zabbix5 0 monitoring system installation and deployment
国产轻量级看板式Scrum敏捷项目管理工具
接口请求时间太长,jstack观察锁持有情况
Preliminary understanding of stack and queue
1215_ Hello world used by scons
JVM class loader
基于ele封装下拉菜单等组件
Windows MySQL 8 zip installation
随机推荐
Interim summary (Introduction + application layer + transportation layer)
The interface request takes too long. Jstack observes the lock holding
leangoo脑图-共享式多人协作思维导图工具分享
Source code and some understanding of employee management system based on polymorphism
Mosaic Routing: implement / home / news
Rhcsa day 1 operation
Suggestion: block reference sorting is in the order of keywords
学习正则表达式选项、断言
php+mysql对下拉框搜索的内容修改
ROP Emporium x86_ 64 7 ~ 8 questions
Essential qualities of advanced programmers
Flink stream processing engine system learning (II)
Centos7 install MySQL 8 0
Shell script learning notes -- shell operation on files sed
Get together to watch (detailed version) eat a few cents a day
《信息系统项目管理师总结》第五章 项目质量管理
JZ22 鏈錶中倒數最後k個結點
Winsock programming interface experiment: Ping
Huawei machine test question -- deformation of hj53 Yang Hui triangle
Day 4 of learning rhcsa