当前位置:网站首页>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
边栏推荐
- Those years can not do math problems, using pyhon only takes 1 minute?
- If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
- ele之Table表格的封装
- Target narak
- leangoo脑图-共享式多人协作思维导图工具分享
- Centos7 install MySQL 8 0
- Chapter V project quality management of information system project manager summary
- OCR recognition PDF file
- [unity3d] rolling barrage effect in live broadcasting room
- Codeforces round 784 (Div. 4) (a - H)
猜你喜欢
Kubernetes - Introduction to actual combat
Linux redis - redis database caching service
ROP Emporium x86_64 7~8题
Intelligent agricultural management model
C language 171 Number of recent palindromes
接口请求时间太长,jstack观察锁持有情况
Those years can not do math problems, using pyhon only takes 1 minute?
高效音乐格式转换工具Music Converter Pro
ROP Emporium x86_ 64 7 ~ 8 questions
Using go language to build web server
随机推荐
Linux Redis——Redis 数据库缓存服务
Looking for a job, writing a resume to an interview, this set of information is enough!
JZ35 replication of complex linked list
Log4j知识点记录
Kubernetes - Introduction to actual combat
Cuisine leetcode
Source code and some understanding of employee management system based on polymorphism
Hack the box optimum
JDBC JDBC
How to solve the complexity of project document management?
Learn regular expression options, assertions
JZ22 鏈錶中倒數最後k個結點
Rhcsa day 4 operation
MySQL complex query uses temporary table / with as (similar to table variable)
重大危险源企业如何保障年底前完成双预防机制数字化建设任务
魔王冷饭||#078 魔王答上海、南京行情;沟通指导;得国和打杀筛选;赚钱的目的;改变别人看法
期中汇总(概论+应用层+运输层)
php+mysql對下拉框搜索的內容修改
Codeforces Round #784 (Div. 4) (A - H)题解
基于多态的职工管理系统源码与一些理解