vi /etc/ssh/ssh.config vi /etc/ssh/sshd.config 修改这两个文件,去掉"#port 22"前的“#”,并将22改为自定议端口,重启ssh(service ssh restart)即可 25、ubuntu中apt-get下载的安装包放置位置 /var/cache/apt/archives 26、图片格式转换png转gd2 apt-get install libgd-tool 例:pngtogd2 a.png a.gd2...
// 进入构造函数 public ClassPathXmlApplicationContext(String configLocation) throws BeansException { this(new String[] {configLocation}, true, null); } public ClassPathXmlApplicationContext( String[] configLocations, boolean refresh, @Nullable ApplicationContext parent) throws BeansException { super(par...
(FTPS) 删除文件时提示Operation not permitted WordPress网站出现Error establishing a database connection Nginx配置文件Rewrite语法 Warning: World-writable config file ‘/etc/my.cnf’ is ignored 大量的TIME_WAIT解决办法 解决debian TAB 键不能自动补全命令的原因 linux中把.c的文件编译成.so文件 Apache 2.4 ...
Force copy of iptables file to trigger iptables reload iptables_docker_copy_iptables_force:false iptables saved configuration location iptables_docker_iptables_config_save:/etc/sysconfig/iptables ipset saved configuration location iptables_docker_ipset_config_dir:/etc/sysconfig/ipset.d ...
ansible-playbook [core 2.16.11]config file = /etc/ansible/ansible.cfgconfigured module search path = ['/home/tobster/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']ansible python module location = /usr/lib/python3.12/site-packages/ansibleansible collection location = /home/tob...
You can edit the firewall config file as well. To do so, use your favorite file editor to edit the below file. I am using vim as my editor. vim /etc/arno-iptables-firewall/firewall.conf If you want to add more custom rules, please use the following command to edit the custom rule...
- install config file in /etc/sysconfig - exchange unload of ip_tables and ip_conntrack - fixed start function * Wed Jul 2 2003 Thomas Woerner <twoerner@redhat.com> 1.2.8-5 - new config option IPTABLES_SAVE_ON_RESTART - init script: new status, save and restart - fixes #4...
system-config-securitylevel or edit/etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. ...
Which would DROP all packets destined to the given IP. Useful to block access to whatnot. If you want to log the entry when the IP is blocked you would set the jump location to logdrop, instead of DROP. [edit]Deny access to a specific Subnet ...
To run SSH on a different port, open /etc/ssh/sshd_config file on your favorite editor and change the port 22 to a other port. Blocking any port Say we want to block port 135. We can do it by sudo iptables -A INPUT -p tcp --dport 135 -j DROP if you want to block your ...