@name 更改tomcat端口 @author lkq @param port: string<端口号>
(self, port)
| 1590 | return self.set_site_port(get.port, "", get.domain.strip()) |
| 1591 | |
| 1592 | def TomcatSetPort(self, port): |
| 1593 | ''' |
| 1594 | @name 更改tomcat端口 |
| 1595 | @author lkq |
| 1596 | @param port: string<端口号> |
| 1597 | ''' |
| 1598 | for i in self.__CONNECTROR: |
| 1599 | if 'protocol' in i.attrib and 'port' in i.attrib: |
| 1600 | if i.attrib['protocol'] == 'HTTP/1.1': |
| 1601 | i.attrib['port'] = port |
| 1602 | self.save_tomcat() |
| 1603 | if self.get_port() == int(port): |
| 1604 | return True |
| 1605 | else: |
| 1606 | return False |
| 1607 | |
| 1608 | # 获取指定虚拟主机 |
| 1609 | def Set_Domain_path(self, domain, docBase): |
no test coverage detected